Jump to content

Prevent direct access to cart.php


Serenade

Recommended Posts

I'm looking for a way to prevent direct access to the cart.php file. I use a custom signup page that basically has custom cart links to automatically add all the different configurations and template settings. If I could get cart.php to redirect to my domain.com/signup link when there's nothing past cart.php/ I think that would be ideal.

 

Any thoughts or ideas?

Link to comment
Share on other sites

so you need to redirect access to /cart.php to /somethingelse.php all the time, or only if the Shopping cart is empty?

 

Basically only if it's not accessed through a custom link. All the links on my custom signup page are formatted like this:

 

https://domain.com/cart?a=add&pid=1&carttpl=template1&billingcycle=quarterly&skipconfig=1&cc=1

 

So I suppose yes, redirect if the cart is empty would make sense.

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