- Posts: 1
- Thank you received: 0
Liink a category to a cart
4 years 5 months ago #341625
by sasarella
Liink a category to a cart was created by sasarella
-- Joomla version -- : 3.10.9
-- PHP version -- : 7.3
Hi!
I have some products (all the same) that have to stay in all the category.
I try to understand if I can link each category to a specified cart.
For example:
- Category A > Select products > add to Cart A
After:
- Category F > Select products > add to Cart F
Is it possible?
Or which setting I have to do for have the same result?
Thanks a lot!
-- PHP version -- : 7.3
Hi!
I have some products (all the same) that have to stay in all the category.
I try to understand if I can link each category to a specified cart.
For example:
- Category A > Select products > add to Cart A
After:
- Category F > Select products > add to Cart F
Is it possible?
Or which setting I have to do for have the same result?
Thanks a lot!
Please Log in or Create an account to join the conversation.
4 years 5 months ago #341633
by nicolas
Replied by nicolas on topic Liink a category to a cart
Hi,
There is no option to do that. The cart is common to all the products.
It's possible to have several carts but there is not a ready made mechanism where you can tell the system to switch the cart based on the category.
With a custom plugin developed for that it should be possible though.
But maybe there is another solution to what you're trying to do ? Could you explain why you need to do that ? What should happen after a product has added products to a cart ? Won't he purchase the products in it ? In that case, instead of adding the second set of products in a new cart, why not block the user from adding products from another category in the cart ? Might that be a possibility ?
There is no option to do that. The cart is common to all the products.
It's possible to have several carts but there is not a ready made mechanism where you can tell the system to switch the cart based on the category.
With a custom plugin developed for that it should be possible though.
But maybe there is another solution to what you're trying to do ? Could you explain why you need to do that ? What should happen after a product has added products to a cart ? Won't he purchase the products in it ? In that case, instead of adding the second set of products in a new cart, why not block the user from adding products from another category in the cart ? Might that be a possibility ?
Please Log in or Create an account to join the conversation.
Time to create page: 0.045 seconds