Jump to content

Detect Cart


Recommended Posts

Dear Forum,
I am building my first presta shop site here. http://www.crystalwish.co.uk it is going well so far I am planning to go from 3 columns to 2 columns to free up some space and I will need to remove right hand the cart block. I have a going to have a hyper link that has a check out link to order.php?step1 else where in the header to replace the "check out button" i will lose when removing my cart block.

I would however like to only display this hyper link if the cart is not empty. I am thinking the best way to do this would be a small javascript routine that will check if the cart is empty and hide the link if it is empty. Does this seem the most sensible method? If so do I need to read a cookie or something to test the cart is empty or not?

Thank you for reading this

David

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...