- Posts: 73
- Thank you received: 0
Error Message at End of Checkout
- shamrockshirts
-
Topic Author
- Offline
Notice: ob_end_clean() [ref.outcontrol]: failed to delete buffer. No buffer to delete. in /clientdata/apache-www/s/h/shamrockshirts.com.au/www/2013/libraries/joomla/application/component/helper.php on line 385
Could you please tell me how to fix it? Site is going live in less than 12 hours.
Thanks in advance.
Please Log in or Create an account to join the conversation.
It's a joomla notice. And it's just a notice, not an error.
If you are going live, the best thing to do is to remove PHP notice, like all production sites do.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
- shamrockshirts
-
Topic Author
- Offline
- Posts: 73
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- shamrockshirts
-
Topic Author
- Offline
- Posts: 73
- Thank you received: 0
As you can see from the screenshot attached, when a customer has gone through checkout (using the credit card, or paypal payment pro method) they are presented with a blank screen.
The "Thank you for your purchase" text is up in the top left corner of the screen, and there is nothing in the space where it should be. My customers are going to assume their order didn't work, this is going to cause great confusion.
My site is now LIVE so I need to fix this urgently. Your help would be appreciated.
Please Log in or Create an account to join the conversation.
- shamrockshirts
-
Topic Author
- Offline
- Posts: 73
- Thank you received: 0
Please Log in or Create an account to join the conversation.
That's not an error of HikaShop. That "thank you" message is displayed through Joomla/your template. And it's actually your template which is made to display messages there without any styling.
Usually, templates display messages in the middle of the page with some styling like on our contact page for example:
www.hikashop.com/en/support/contact-us.html
So the problem is actually that the template is missing the CSS for messages and that the position of messages should be in the middle. You should contact your template provider for that.
As a quick work around, you can edit the file "after_end" for your template via the menu Display->Views of HikaShop and instead of the code:
$app = JFactory::getApplication();
$app->enqueueMessage( JText::_('THANK_YOU_FOR_PURCHASE') );
you can use:
echo JText::_('THANK_YOU_FOR_PURCHASE');
Please Log in or Create an account to join the conversation.
- shamrockshirts
-
Topic Author
- Offline
- Posts: 73
- Thank you received: 0
I also don't understand why it's a problem with the template, when it's only with the one type of payment method that this happens. Surely if it was a css problem it would be consistent across all 3 payment methods? The other two methods display the message correctly.
Please Log in or Create an account to join the conversation.
- shamrockshirts
-
Topic Author
- Offline
- Posts: 73
- Thank you received: 0
Please Log in or Create an account to join the conversation.
So, the method I already gave to circumvent the problem is the correct one. If you don't see any change, it highly likely that you're not editing the view file for the correct template. If you're editing the view file for another template than the one you're using on your frontend, you won't see any difference.
Please Log in or Create an account to join the conversation.
- shamrockshirts
-
Topic Author
- Offline
- Posts: 73
- Thank you received: 0
It has made no difference. The thank you message still does not display properly.
Please Log in or Create an account to join the conversation.
- shamrockshirts
-
Topic Author
- Offline
- Posts: 73
- Thank you received: 0
Please Log in or Create an account to join the conversation.
$app =& JFactory::getApplication();
if($order->order_payment_method!='paypal'){
$app->redirect(' www.shamrockshirts.com.au/index.php/thanks ');
}
For the PayPal plugin, you will need to edit the after_end.php file and use that code:
$app =& JFactory::getApplication();
$app->redirect(' www.shamrockshirts.com.au/index.php/thanks ');
Please Log in or Create an account to join the conversation.
- shamrockshirts
-
Topic Author
- Offline
- Posts: 73
- Thank you received: 0
The only small issue I have is when paying by paypal, it doesn't automatically redirect back to the thank you page. You have to click on the Return to Shamrock Shirts link first. Can I change something so this happens automatically?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- shamrockshirts
-
Topic Author
- Offline
- Posts: 73
- Thank you received: 0
Please Log in or Create an account to join the conversation.
It's PayPal which handles the return to the website and thus that's something to set in your PayPal account, not in HikaShop:
www.paypal.com/cgi-bin/webscr?cmd=p/mer/...turn_summary-outside
Please Log in or Create an account to join the conversation.