View Single Post
  #1  
Old 07-29-2015, 06:29 AM
  GlasPak's Avatar 
GlasPak GlasPak is offline
 

eXpert
  
Join Date: May 2015
Posts: 241
 

Default Is there a way to get a specific attribute value?

So I want to grab an attribute I created "Pieces Per Case" and add it to

default/en/common/price_parts/price.tpl

How do I specifically get the value of the attribute to modify

Code:
<li><span class="price product-price">{formatPrice(getListPrice(),null,1):h}</span><span> per case</span></li>

I would like the end result to be

<li><span class="price product-price">{formatPrice(getListPrice(),null,1):h}</span><span> per case (##AttributeValue## Pieces Per Case</span></li>

Edit: It looks like the attribute is

<select class="form-control" name="attribute_values[50]" data-attribute-id="50">
<option selected="selected" value="371">12</option>
<option value="372">36 (+$42.00)</option>
<option value="540">100 (+$125.00)</option>
</select>

Also I really wish i could change the +$42.00 and +125.00 to just be the price of those values... if default is $30.00 which it just said 36 ($72.00) and 100 ($150.00)... A lot of customers have said the + is confusing.
__________________
Business License
https://glaspak.com
GoDaddy VPS - Apache with WHM
2GB ECC DDR3 1600MHz
2x Intel E5-2630L v2 Hex Core 2.4/2.8ghz
15 MB proc cache
60 GB 10k RPM hdd
PHP 7.0.15
MariaDB 10.1.21 with InnoDB engine
Reply With Quote