View Single Post
  #10  
Old 12-18-2011, 01:01 PM
 
weckie weckie is offline
 

eXpert
  
Join Date: Feb 2005
Location: Netherlands
Posts: 220
 

Default Re: put content of Extra Field into the <head> ?

Maybe little explanation WHY?

I need it cuz i am using extra fields just to have a possibility to automise a product price per unit.

example: i sell a box with 24 jars, set a prices for that, than want to display the UNIT price also.
In the product page it works perfect with this code:

Code:
{foreach from=$extra_fields item=v} {if $v.active eq "Y" and $v.field_value} {if $v.field eq "AANTAL PER VE"} {math equation="x / y" x=$product.taxed_price y=$v.field_value assign="perstuk"} {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.list_price} {/if}{/if} {/foreach} {if $v.field_value} <h3> {$lng.lbl_market_price}:{* {currency value=$product.list_price} *}{currency value=$perstuk} </h3> {/if}


In the extra field i put the amount of units in the box, then a little math: price divided bij amount of units. outcome = $perstuk.
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote