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

  • Posts: 204
  • Thank you received: 7
5 years 9 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: 83674
  • Thank you received: 13545
  • MODERATOR
5 years 9 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.

  • Posts: 204
  • Thank you received: 7
3 days 4 hours ago #366885

hi
1-is it possible disable cart system in hikashop?
means i want user only click on the product and redirect to checkout directly.
2-if 1 in not possible, is it possible auto remove cart when a user add a new product?
note: I want to sell consultation appointments through Hikashop. Everyone comes and buys just one appointment. Sometimes a person goes halfway through the appointment purchase process and their card is full and they have to empty their card from the previous purchase for the next time. I want to facilitate this process.

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

  • Posts: 83674
  • Thank you received: 13545
  • MODERATOR
2 days 15 hours ago #366886

Hi,

1. Enter the add to cart URL of the product in the "canonical URL" of the product, and activate the "force canonical URL on listings" setting of the HikaShop configuration.
This way, the link to the product page on the products listings will become the add to cart URL, which will redirect to the checkout with the product in the cart.

2. Clearing the cart before adding a product to it is not possible with the options available. It could be possible with the development of a plugin which would plugin itself to the add to cart process with our cart API:
www.hikashop.com/support/documentation/6...umentation.html#cart

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

Time to create page: 0.055 seconds
Powered by Kunena Forum