Jump to content

Redirect cart.php to main website!


sonuyos

Recommended Posts

Hey guys,

 

I want to redirect my cart.php to my website...

 

example my website is https://mydomain.com and whmcs is in https://mydomain.com/billing

 

I want users to order from my website only... not to see cart or able to select in cart...direct order...I have seen some people doing it...please help, thank you :)

 

TLDR : want to redirect /billing/cart.php to / and still clients be able to order certain stuff!!

Link to comment
Share on other sites

  • 4 weeks later...

You would need to edit the TPL files in the WHMCS orderform template you are using.

 

The products.tpl file is the one that controls the display of your products on the WHMCS cart.php page. So you could remove all code from that TPL file and replace it with this:

 

<meta http-equiv="refresh" content="0;url=http://mydomain.com/products/" />

 

This would ensure that the only way to view your products in on your websites product page (e.g. http://mydomain.com/products/ )

 

 

Then if you want to allow your users to view the contents of their cart in WHMCS (so that they can checkout/order), you would need to direct them to this link:

 

https://mydomain.com/billing/cart.php?a=view

 

If you don't have a products page (e.g. if you are using direct product links on a range of pages), you could use this code instead:

 

<meta http-equiv="refresh" content="0;url=https://mydomain.com/billing/cart.php?a=view" />

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