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

  • Posts: 210
  • 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: 83811
  • Thank you received: 13571
  • 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: 210
  • Thank you received: 7
3 weeks 2 days 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: 83811
  • Thank you received: 13571
  • MODERATOR
3 weeks 2 days 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.

  • Posts: 210
  • Thank you received: 7
6 days 22 hours ago #367111

Hi
1-
i create my own custom joomla component to buy a plan from doctor . can you advise me to how to remove add to cart button step from :
component/hikashop/product/cid-123
and directly add to cart and redirect to checkout?
if you want understand what i say, please go to:
erammoshaver.ir/profile/947
username: 09014851330
pass: 123123
and test to purchase process.
my example video:
limewire.com/d/kb8So#vVK5gGpRLv

Last edit: 6 days 22 hours ago by sadaf3d.

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

  • Posts: 83811
  • Thank you received: 13571
  • MODERATOR
6 days 18 hours ago #367113

Hi,

You want to redirect to the add to cart URL of the product instead of its product details page URL.
You can find the add to cart URL of the product in the popup appearing when you click on the "Add to cart HTML link" button while you're editing the product in the backend.
You can even pass custom item field data to the add to cart process if you need to store information together with the product in the cart / order :
www.hikashop.com/support/forum/2-general...-product-fields.html

The following user(s) said Thank You: sadaf3d

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

Time to create page: 0.063 seconds
Powered by Kunena Forum