View Single Post
  #14  
Old 05-29-2015, 05:03 PM
 
Phil Richman Phil Richman is offline
 

Advanced Member
  
Join Date: May 2012
Posts: 94
 

Default Re: New Field in product page

Tony,

Thank you very much for your help. Your fix worked perfect. I decided that I also wanted to display the sku field in this template. So I modified my .tpl to


{**
* @ListChild (list="product.details.page.info", weight="50")
*}
<li class="product-availability">
<span class="product-availability-name">{t(#Availability:#)}</span>
<span class="product-availability-value">{product.getProductAvailability()}</span>
</li>
<li class="product-availability">
<span class="product-availability-name">{t(#SKU:#)}</span>
<span class="product-availability-value">{product.getSKU()}</span>
</li>


This works except for items that have variants. It shows the base sku and not the variant sku. How can I modify this so that it will reflect the sku of the selected variant?
__________________
Ver 5.2.6
Reply With Quote