News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Custom Field "image" for category page

Started by Елeна, March 10, 2019, 21:38:07 PM

Previous topic - Next topic

Елeна

Hello.
VirtueMart 3.4.2 / Joomla! 3.8.12 / protostar/ site


Tell me how to implement correctly:
In the category all products are the same, and one is special. It is necessary to highlight it by labeling the picture
Thanks

Jörgen

Assign special ccs rule to the image in product details ?

Or

Assign the product as "on featured" and customize the view in your template files ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Елeна

Thanks for participating
QuoteAssign special ccs rule to the image in product details ?
The codes I found on the Internet do not work with VirtueMart3
...\templates\protostar\html\com_virtuemart\sublayouts\products
In this file, you must insert the code that displays a custom field.
If there is a worker - tell me

QuoteAssign the product as "on featured" and customize the view in your template files ?
Additional plugin required. I only have one product that needs a label.
Thanks for your help

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Елeна

plugin  "BIT-Virtuemart-Product-Badges-3.0.2"  eat
I do not want to install for the sake of one product.

solution for VirtueMart2
<?php echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$product,'position'=>'normal'));?>

need code for VirtueMart3

Thanks for participating

Studio 42

try to enable customfields display in category in the Virtuemart config
or add a class in the product sublayout per product the code should be
<div class="vm-product-media-container">
to
<div class="vm-product-media-container<?php echo ' productcontainer-'.$product->virtuemart_product_id; ?>">
so you can set css per product
Of course if you have plenty of products, it's not the right way.