wbs1969 Posted February 11, 2016 Share Posted February 11, 2016 I have just done a test run with a brand new installation of my cart and everything is working fine, except that the confirmation email does not show any values for the products, shipping, etc. Can anyone point me in the right direction to fix this? Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 11, 2016 Share Posted February 11, 2016 Welcome wbs1969! Glad to see you made it to the forums. The $x.xx is what CubeCart shows for prices when the admin has set the store to "Hide prices until logged in". However, there was a bug (which was fixed, if I recall) that caused this masking to apply to the emails when the email was sent out. Please confirm the exact version of CubeCart you are using: admin, Dashboard, Store Info tab. Quote Link to comment Share on other sites More sharing options...
wbs1969 Posted February 11, 2016 Author Share Posted February 11, 2016 Thanks for the quick reply! Yes, I had set the store to "Hide prices until logged in" because this cart is intended for wholesale accounts (separate from retail sales) and I didn't want everyone seeing pricing. I am using version 6.0.10 Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 11, 2016 Share Posted February 11, 2016 Ok, I will see what the status of the bug report is. Quote Link to comment Share on other sites More sharing options...
wbs1969 Posted February 11, 2016 Author Share Posted February 11, 2016 Thanks! Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 11, 2016 Share Posted February 11, 2016 In analyzing this, I have to ask: How does a customer place an order when prices are hidden? (If this a case where the admin is administratively moving an order from Pending to Processing, the masking of prices would not happen.) I have found the programming logic error, but how CubeCart gets into this situation is not clear. Could it be that the customer logged out fast enough so that CubeCart switched from having this customer logged in to not having this customer logged in before CubeCart had a chance to move the order to Processing? I can see that happening if the customer comes back from paying by PayPal (for example), quickly logs out, and then PayPal sends the IPN to CubeCart which moves the order to Processing. Actually, the IPN call has its own CubeCart session, so this may not have anything to do with whether the customer is logged in. More shortly. Quote Link to comment Share on other sites More sharing options...
wbs1969 Posted February 11, 2016 Author Share Posted February 11, 2016 The prices are only hidden until they log in. With my test, I went to the website. The prices are $x.xx I create an account and log in and I can see prices. SO I did a test purchase and everything worked as it should, but the confirmation email that I receive on the backend and the customer receives did not have any prices, just $x.xx I would imagine most businesses would want a detailed receipt for book keeping LOL! I actually just had my first real order come through (same problem). I guess I wanted to see if it was as easy as flipping a switch to fix. If not, I can turn the prices back on so its not hidden. Not a BIG deal, I would just prefer it to work like it should. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 11, 2016 Share Posted February 11, 2016 You made a test purchase as a logged in customer. What gateway did you use to pay for this test purchase? Quote Link to comment Share on other sites More sharing options...
wbs1969 Posted February 11, 2016 Author Share Posted February 11, 2016 Yes, I created a "local" customer and one on the other side of the country so I could make sure that shipping was working properly, etc. I used Paypal and the screen shot above is what the confirmation email looked like. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 11, 2016 Share Posted February 11, 2016 I have replicated this situation and will have a solution shortly. Quote Link to comment Share on other sites More sharing options...
wbs1969 Posted February 11, 2016 Author Share Posted February 11, 2016 Thanks for all your help! Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 11, 2016 Share Posted February 11, 2016 If you are comfortable with making edits to the code, please do this: In /classes/order.class.php, near line 204, find: public function getOrderDetails($order_id) { $order_summary = $this->getSummary($order_id); Add on the blank line that follows: $hide_prices = $GLOBALS['session']->has('hide_prices') ? $GLOBALS['session']->get('hide_prices') : false; $GLOBALS['session']->set('hide_prices', false); About 70 lines later, find: foreach ($GLOBALS['hooks']->load('class.order.get_order_details') as $hook) include $hook; $this->_email_details = $values; return $this->_email_details; Change to: foreach ($GLOBALS['hooks']->load('class.order.get_order_details') as $hook) include $hook; $GLOBALS['session']->set('hide_prices', $hide_prices); $this->_email_details = $values; return $this->_email_details; Please test. Quote Link to comment Share on other sites More sharing options...
wbs1969 Posted February 11, 2016 Author Share Posted February 11, 2016 That did the trick! Tested and works perfectly. Thank you so much! Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 11, 2016 Share Posted March 11, 2016 Thanks both. This issue has been patched now for 6.0.11. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.