VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: rushabhmadhu on January 16, 2017, 09:50:53 AM

Title: Regarding price change based on Custom attribute
Post by: rushabhmadhu on January 16, 2017, 09:50:53 AM
Hello

Hi we can change the price of product based on attribute(Custom field).
Here is my URL : http://dev.innvonix.in/enlight/enlight-product/artwork (Please click on any product you will get popup to select product attribute)

Here we have override the layout of Virtuemart, now i want to change the price Electrified, Lamp size.

In above URL price is shown by below overriden code
<div class="product-field product-field-type-S">
   <span class="product-fields-title-wrapper"><strong>Price: <?php echo $product->allPrices[0]['product_price']; ?> <?php  ?></strong></span>
</div>

please guide us what i can do to resolve this issue.
Title: Re: Regarding price change based on Custom attribute
Post by: Studio 42 on January 17, 2017, 17:42:46 PM
The first option is working. So if you set prices for eahc options, this sould work too.