News:

Support the VirtueMart project and become a member

Main Menu

Custom Fields template

Started by fabioweb, September 30, 2017, 21:58:35 PM

Previous topic - Next topic

fabioweb

Hello,
i have a product with attribute color with two values "Green" and "Red"
This is the rendered code:


<div class="product-field product-field-type-S">
<span class="product-fields-title-wrapper">
<span class="product-fields-title">
<strong>Color</strong></span>
</span>
<div class="product-field-display">Green</div>
</div>

<div class="product-field product-field-type-S">
  <div class="product-field-display">Red</div>
</div>


but i need something like this:

<div class="product-field product-field-type-S">
<span class="product-fields-title-wrapper">
<span class="product-fields-title">
<strong>Color</strong>
</span>
</span>
  <div class="product-field-display">Green</div>
  <div class="product-field-display">Red</div>
</div>


Is this possible?

Thank you

GJC Web Design

make an over ride

templates\xxxxxxx\html\com_virtuemart\sublayouts\customfields.php
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

fabioweb

Okay but i need that product field display value (Green, Red) which are both child of the same product field parent (Color)
will be rendered inside the same main container "product-field product-field-type-S"

Is this possible with override?

Regards