SaveChanges Posted October 6, 2020 Share Posted October 6, 2020 Hello Everyone! I have just auto updated whmcs 7.x to 8. Everything looks perfect but one major issue that iam facing is that when we click on order now button of any product it will redirect to this path(whmcs/index.php?a=add&pid=18) instead of (whmcs/cart.php?a=add&pid=18). I have tried it with my custom theme and with six theme as well. Looking for a solution. Anyone ? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Product Manager WHMCS John Posted October 8, 2020 WHMCS Product Manager Share Posted October 8, 2020 Hi @SaveChanges, Do you have any custom mod_rewrite rules in .htaccess files in or above the WHMCS directory? If so, try temporarily removing them to see if the issue is resolved. 0 Quote Link to comment Share on other sites More sharing options...
SaveChanges Posted October 9, 2020 Author Share Posted October 9, 2020 Thank you for your reply, @WHMCS John. I have checked and removed it but issue is same. As i am using custom order template, if i use default template it works fine. I can see following difference for the path of order now button on both template. Default template Order now button: <a href="{$WEB_ROOT}/cart.php?a=add&Custom template Order now button: <a class="orderbtn" href="{$smarty.server.PHP_SELF}?a=add& I think smarty server is not working. Looking forward to your reply. 0 Quote Link to comment Share on other sites More sharing options...
DaltDigital Posted October 11, 2020 Share Posted October 11, 2020 I have just updated to 8.0 as well and I am getting the same issue! Every time you click 'Order Now' it just takes me back to the homepage and nothing is in the cart!?! 0 Quote Link to comment Share on other sites More sharing options...
Gabriel Douglas Posted October 15, 2020 Share Posted October 15, 2020 Hello, I am currently facing the same problem. So if anyone out their has a fix that would be nice. @Whmcsjohn I removed the .htaccess on the on the parent page(above) and it did nothing. Then I removed the .htaccess file from WHMCS itself and it broke. 0 Quote Link to comment Share on other sites More sharing options...
Gabriel Douglas Posted October 15, 2020 Share Posted October 15, 2020 Sorry for replying. I found the fix. Change the order form to "Standard Cart" for the fix. WHMCS 8 order-forms themes are different. 2 Quote Link to comment Share on other sites More sharing options...
gameznet Posted December 9, 2022 Share Posted December 9, 2022 (edited) Thank you so much Gabriel, this issue was driving me insane but your fix has resolved the issue for me also. It was occurring on my already existing template after I finally updated to 8.0 (didn't notice until I was alerted by a customer) Nothing would correct it, it was redirecting to the homepage on all hosting links and changing templates or resetting .htacess, Friendly URLs ect did nothing in all templates the product order link was in the style of /index.php?a=add&pid=5 and took the user back to the homepage. Changing to the "Standard Cart" seems to reset the URL's so they start working like this: /store/hosting/standard-hosting instead of this: /index.php?a=add&pid=5 after this "Standard Cart Fix" I can now change to any other Order Template and they have all started working correctly again it is defiantly a bug that needs correcting. Thanks Gabriel 🙂 now I just need to figure out why only "Six" or "Twenty One" system themes work and I'll be happy again😞 Edited December 9, 2022 by gameznet 0 Quote Link to comment Share on other sites More sharing options...
Ronyan Posted October 23, 2024 Share Posted October 23, 2024 Hello, You need to define the Slugs in the Product's Group. ( my case ) https://docs.whmcs.com/troubleshooting/troubleshoot-the-client-area/order-now-refreshes-the-page/ 0 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.