VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: AzMandius on April 06, 2022, 00:13:29 AM

Title: Both product quantity options are added to cart
Post by: AzMandius on April 06, 2022, 00:13:29 AM
Hello,
VirtueMart 3.8.x
Joomla! 3.9.x

Shop has product with 20 and 60 capsules options, created via Cart Variant field
(https://az0000000.nimbusweb.me/box/attachment/6754735/akvtoh2idawxvmg4rv0t/z09BfxeeDKZrTLQF/screenshot-npcriz-sklad.ru-2022.04.06-00_46_04.png)

Customer can select 20 or 60 capsules on product detail page (https://npcriz-sklad.ru/katalog/naturalnye-peptidy/tsitomaksy/vse-tsitomksy/gotratiks-tovar)
(https://az0000000.nimbusweb.me/box/attachment/6754767/h64iuvazazs24kcpnphw/AQ2eMNik1oNriAw8/screenshot-npcriz-sklad.ru-2022.04.06-01_07_02.png)

But on product category page there is no option to select 20 or 60 capsules, only Add to Cart button (https://npcriz-sklad.ru/katalog/naturalnye-peptidy/tsitomaksy/vse-tsitomksy)
(https://az0000000.nimbusweb.me/box/attachment/6754765/bnuc78ydgxlgfhyiohud/mCmfQJEBM8eYMUJi/screenshot-npcriz-sklad.ru-2022.04.06-01_05_33.png)

So the problem is that on click the Add to Cart button both 20 and 60 capsules are added to cart
(https://az0000000.nimbusweb.me/box/attachment/6754769/cfy7c9eu5k7nwnp6dr0r/Ne3fie89QxS6InAN/screenshot-npcriz-sklad.ru-2022.04.06-01_09_04.png)

How can this issue be solved?

Thank you.
Title: Re: Both product quantity options are added to cart
Post by: pinochico on April 06, 2022, 02:02:58 AM
On the demo: http://demo.virtuemart.net

I see dropdown with two prices on the category view.

Then go to demo, login to admin and setup product and his customfiled right as demo.
Title: Re: Both product quantity options are added to cart
Post by: AzMandius on April 06, 2022, 08:49:53 AM
My template does not support showing product Cart Variant option in category mode, even on demo (https://demo.virtuemarttemplates.net/joomla3/sensitive/online-store/clothing/ladies.html), this is the main issue i guess, so are you sure your solution will help?
Thanks!
Title: Re: Both product quantity options are added to cart
Post by: pinochico on April 06, 2022, 09:08:11 AM
I do not understand :)

The basic idea of displaying products in a category on the e-shop is to display only the Detail button.
I don't want to bother with customer psychology right now, why it's better, but I fully support it.
Only on the product detail can I find out what the size of the t-shirt is and what size is suitable for me, because I will find a table of sizes here.
I will definitely not find it in the category, nor is it appropriate.

However, if you still think you want to see variations on the category, then YES, the template must support it.

If it does not support it, the correct question is not on this forum, but on the template developer, why not created it and how to do it.

If it is not able, then you can ask here on the forum or download the full demo and browse the PHP sublayout product, which is loaded into the view category, so that you view the same as on demo.virtuemart.net

But maybe you expect exactly PHP code how to achieve this?
Title: Re: Both product quantity options are added to cart
Post by: AzMandius on April 13, 2022, 22:15:12 PM
Template author admitted this is a bug. They are going to release an update. Thanks!