Jump to content

Order now button take to homepage


Recommended Posts

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 ?

Link to comment
Share on other sites

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&amp;
Custom template Order now button: <a class="orderbtn" href="{$smarty.server.PHP_SELF}?a=add&amp;

I think smarty server is not working. Looking forward to your reply.

Link to comment
Share on other sites

  • 2 years later...

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 by gameznet
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated