Jump to content

[NOT A BUG] carttpl=ajaxcart no matter what I select


Recommended Posts

In the Setup -> General Settings -> Ordering -> Default Order Form Template

 

It doesn't matter what I select, I always get &carttpl=ajaxcart

 

And I also get all of the other options (products that weren't selected showing up). If I am using a direct product link, I expected the other options not to show. I really don't have customers choose products from WHMCS, rather from my site (much neater).

Link to comment
Share on other sites

In the Setup -> General Settings -> Ordering -> Default Order Form Template

 

It doesn't matter what I select, I always get &carttpl=ajaxcart

 

And I also get all of the other options (products that weren't selected showing up). If I am using a direct product link, I expected the other options not to show. I really don't have customers choose products from WHMCS, rather from my site (much neater).

 

This has happened to me - seems to be caching issue - try clearing your cache aswell as deleting the files within the _templates folder.

Link to comment
Share on other sites

  • WHMCS CEO

So just to confirm, you have used the cart template variable in the URL to force a specific template, eg. cart.php?carttpl=ajaxcart , and then after that you have tried changing the default? That indeed wouldn't take effect until you started a new browser session, as the template you forced is going to be remember for the duration of your current session. Using another cart.php?carttpl=xxxxx url should change it though.

 

Matt

Link to comment
Share on other sites

  • WHMCS CEO

No, your link there is to the ajax order form. Not the shopping cart. Note the /order/ directory. So that is forcing the ajax cart via the url. Now that's set in your session you would have to close your browser and re-open and then go to the URL https://www.cyberneticos.com/clientes/cart.php?a=add&pid=1 (direct order link) and that would use your default cart template, or you could use https://www.cyberneticos.com/clientes/cart.php?pid=1&carttpl=slider or https://www.cyberneticos.com/clientes/cart.php?a=add&pid=1&carttpl=slider to force the slider.

 

Matt

Link to comment
Share on other sites

So just to confirm, you have used the cart template variable in the URL to force a specific template, eg. cart.php?carttpl=ajaxcart , and then after that you have tried changing the default? That indeed wouldn't take effect until you started a new browser session, as the template you forced is going to be remember for the duration of your current session. Using another cart.php?carttpl=xxxxx url should change it though.

 

Matt

 

I am also facing this problem !!

 

It seems that a file from whmcs redirects to order folder that come with latest package that also has a redirect link to this link so it goes in a "loop" its a seriously problem and we had to take our site down as well!!

Link to comment
Share on other sites

  • 2 weeks later...

same problem here also, whatever is selected as the default cart in the admin area, we only get the ajax form too....

 

we are using eg domain/billing/cart.php?a=add&pid=1 as the direct links for a product

 

whatever is set as default in the whmcs admin area, eg at the moment its Verticalsteps we still get the ajax form, have also cleaned cache and templates_c

 

ticket id 570742 is in for this.

Link to comment
Share on other sites

I don't think that's what Anthony was describing before. If you can send me the steps to reproduce I'll take a look, but cart ordering links are working fine for sure.

 

Matt

 

Right, my issue was becuase in effect, I was using hardlinks to the ajax cart in the first place, and adding template parameters incorreclty. Everything is working as expected (it's not a Bug as far as I know).

Link to comment
Share on other sites

  • 2 weeks later...
same problem here also, whatever is selected as the default cart in the admin area, we only get the ajax form too....

 

we are using eg domain/billing/cart.php?a=add&pid=1 as the direct links for a product

 

whatever is set as default in the whmcs admin area, eg at the moment its Verticalsteps we still get the ajax form, have also cleaned cache and templates_c

 

ticket id 570742 is in for this.

 

hello just change on WHMCS path/order/index.php

 

Line:

....
  header("Location: ../cart.php?pid=".(int)$pid."&carttpl=ajaxcart");
...

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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