- Posts: 157
- Thank you received: 8
Template breaks after order is complete
This is a pretty active e-commerce website and it is currently broken.
Does anyone have any ideas what is happening in this case?
Please Log in or Create an account to join the conversation.
Anyone have any ideas what could be causing this issue? I am completely stumped.
Please Log in or Create an account to join the conversation.
I was doing my tests purchases with a coupon code so I didn't actually spend money. I tried not doing that. Same issue. We are using AWOCoupon Pro in conjunction with HikaShop. I disabled that. Same issue.
It is definitely tied to the user session, post purchase. Everything is fine for a logged in user post purchase. The whole template formatting goes nuts post purchase, then returns to normal when the user is logged out.
Please does anyone have any thoughts or ideas. I don't know what else to try. I am at a total loss here.
Please Log in or Create an account to join the conversation.
What do you mean by messed up? Could you please post a screenshot of the given page as well as a link to your site so we can test it?
This information could help us to understand the issue.
Please Log in or Create an account to join the conversation.
Any clues?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
If you already tried to turn on the debug mode, could you take a look at your error log to see if you have any php errors.
This bug is really strange, I really don't see how Hikashop could affect your template this way.
Please Log in or Create an account to join the conversation.
Things like:
[25-Jul-2013 20:13:46 UTC] PHP Warning: Attempt to assign property of non-object in /home/bestpub/public_html/administrator/components/com_hikashop/classes/currency.php on line 1833
[25-Jul-2013 20:13:46 UTC] PHP Warning: Attempt to assign property of non-object in /home/bestpub/public_html/administrator/components/com_hikashop/classes/currency.php on line 1834
[25-Jul-2013 21:55:42 UTC] PHP Warning: Division by zero in /home/bestpub/public_html/administrator/components/com_awocoupon/helpers/estore/hikashop/couponhandler.php on line 399
[25-Jul-2013 21:55:46 UTC] PHP Warning: Division by zero in /home/bestpub/public_html/administrator/components/com_awocoupon/helpers/estore/hikashop/couponhandler.php on line 399
[25-Jul-2013 21:55:46 UTC] PHP Warning: Division by zero in /home/bestpub/public_html/administrator/components/com_awocoupon/helpers/estore/hikashop/couponhandler.php on line 399
[25-Jul-2013 21:55:46 UTC] PHP Warning: Division by zero in /home/bestpub/public_html/administrator/components/com_awocoupon/helpers/estore/hikashop/couponhandler.php on line 399
[25-Jul-2013 21:55:50 UTC] PHP Warning: Division by zero in /home/bestpub/public_html/administrator/components/com_awocoupon/helpers/estore/hikashop/couponhandler.php on line 399
[25-Jul-2013 23:12:23 UTC] PHP Fatal error: Class 'hikashopShippingPlugin' not found in /home/bestpub/public_html/plugins/hikashopshipping/usps/usps.php on line 12
[25-Jul-2013 23:12:31 UTC] PHP Fatal error: Class 'hikashopShippingPlugin' not found in /home/bestpub/public_html/plugins/hikashopshipping/usps/usps.php on line 12
[25-Jul-2013 23:12:35 UTC] PHP Fatal error: Class 'hikashopShippingPlugin' not found in /home/bestpub/public_html/plugins/hikashopshipping/usps/usps.php on line 12
[25-Jul-2013 23:12:40 UTC] PHP Fatal error: Class 'hikashopShippingPlugin' not found in /home/bestpub/public_html/plugins/hikashopshipping/usps/usps.php on line 12
[25-Jul-2013 23:12:42 UTC] PHP Fatal error: Class 'hikashopShippingPlugin' not found in /home/bestpub/public_html/plugins/hikashopshipping/usps/usps.php on line 12
[25-Jul-2013 23:13:44 UTC] PHP Fatal error: Class 'hikashopShippingPlugin' not found in /home/bestpub/public_html/plugins/hikashopshipping/usps/usps.php on line 12
Most of them are repeats of the first two lines.
Please Log in or Create an account to join the conversation.
Thank you for everything.
Please Log in or Create an account to join the conversation.
From what I can see, the issue is indeed that the CSS/JS of the template is missing from the page after the checkout.
It is added by the template itself after HikaShop processing so I don't see why HikaShop would create such problem since HikaShop doesn't intervene after the template.
What's even more strange is that no one else has the issue so it's not something directly in HikaShop.
It looks more like some kind of conflict.
So the tests you did to switch template etc are a good start. Maybe trying with unpublishing system plugins ? They are the only thing run after the template which could potentially remove the CSS/JS of the template.
Also make sure that the problem doesn't come from the return url parameter of your payment plugin. If that url goes to a menu where a non existing template is assigned to, it could potentially create such issue (the template might not find its settings anymore).
Please Log in or Create an account to join the conversation.
I just completed a lot more testing, trying to narrow down this issue. A couple days ago, I already tried disabling plugins that were "special" or not common, in trying to see if I could find a conflict. I didn't find one. I just did an exhaustive test though, disabling any plugin that isn't a standard Joomla plugin.
Once I disabled any of those, the checkout process was working fine. So I starting enabling them one by one. The plugin that broke the website was a simple one that just inserts Google Analytics code for me. I found an upgrade to the plugin, installed that and found it didn't help.
So I went the manual route and added the standard Google Analytics code the the template files myself. Done that tons of times in the past. Even doing it that way, the checkout still breaks the website.
So I tried disabling the HikaShop Google Analytics plugin. That did the trick. The checkout process works perfect now.
Did you folks change something in the HikaShop Google Analytics plugin? Anything that could be causing this?
Please Log in or Create an account to join the conversation.
We actually added additional code to fix another conflict with Google Analytics code :
www.hikashop.com/en/forum/4-how-to/82698...conflict.html#106086
That's probably what led to the issue on your website.
Please change the line:
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.