VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: fabioweb on September 30, 2017, 21:58:35 PM

Title: Custom Fields template
Post by: fabioweb on September 30, 2017, 21:58:35 PM
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
Title: Re: Custom Fields template
Post by: GJC Web Design on September 30, 2017, 23:46:24 PM
make an over ride

templates\xxxxxxx\html\com_virtuemart\sublayouts\customfields.php
Title: Re: Custom Fields template
Post by: fabioweb on October 01, 2017, 00:34:50 AM
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