is it possible remove cart or how to solve my issue?

  • Posts: 201
  • Thank you received: 7
5 years 4 months ago #309136

hi
i have some product in my site and i want these low in selling that:
1-each product can't buy more than 1 time.(i use limitation value forever is 1 and it is ok and set quantity per order to 1)
2-i don't want any cart system or basket. i want simply customer can buy product without cart system because maybe sometime one customer go to middle of buy steps and want exit my page. and then come back to buy that but beacause i remove any cart menu and module, he can not do anything to remove product that is exist in his cart from previous discontinue buy steps. and he give error that you can add more to your cart.
is there any suggestion to solve this?
my problem in brief: i don't want use cart to add product, also each product can buy only one time for each user forever. in this way if he add product to his cart via incomplete steps,how can remove that? or how can bypass cart?or each you say...

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 years 4 months ago #309150

Hi,

You need to add a hidden input field in the form of the add to cart button with the name "add" and the value "0". That way, the add to cart will make it so that the product quantity in the cart is 1. So if the quantity is already 1 in the cart, the system won't display an error. It will succeed and go to the checkout as if there was 0 quantity of the product in the cart before.
The exact location where to add that hidden input depends on how you configured your store so I can't say precisely without information information.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum