VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: cvrak on February 09, 2017, 16:58:22 PM

Title: Custom fields in category view
Post by: cvrak on February 09, 2017, 16:58:22 PM
Hi,

I've set some products with custon fields about different sizes.
Custom fields are shown in Category view, and I have a question:
Is it possible when we choose a custom field, NOT to navigate to product details page, but to stay in category view changing the price accordingly?


Thanks
Chris
Title: Re: Custom fields in category view
Post by: jenkinhill on February 09, 2017, 17:19:52 PM
That already can be done in the current version with default templates as long as child variants are not used.  eg see http://demo.virtuemart.net/wear  and change the customs in the skirt or zipper pullover. The prices change and the product can be added direct to cart.

The demo uses VM 3.0.18.7  on Joomla 3.6.5
Title: Re: Custom fields in category view
Post by: cvrak on February 09, 2017, 17:33:22 PM
Hi Jenkinhill,

I've set templates to default, as you can see in the screenshot.
I got the error message when I've tried to save "Select the default template for your Shop" --> default.
The problem remains.

Vm 3.0.18
Joomla 3.6.5

Any ideas?
Thanks
Chris
Title: Re: Custom fields in category view
Post by: cvrak on February 10, 2017, 09:40:07 AM
Hi,

There was a mistake with default template for all languages, I've corrected and I don't get the error message.
I also set "Use ajax in browse view" --> Yes and it's working.

I've noticed something: When I choose a custom variant, a blank area is added between the title and the sales price. I've attached two photos to see what I mean.

Checking with Firebug, I've found that there is "p.product_s_desc" element displayed.
What is this? How can I remove it?

Thanks
Chris
Title: Re: Custom fields in category view
Post by: jenkinhill on February 10, 2017, 10:43:38 AM
That's for the product short description. If you don't use it then hide with css.  p.product_s_desc  { display:none; }
Title: Re: Custom fields in category view
Post by: cvrak on February 10, 2017, 10:58:16 AM
Thanks a lot Jenkinhill!!