View Single Post
  #2  
Old 09-24-2011, 09:23 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Show price per foot

It sounds like you would have to do some simple math on {$product.taxed_price} in cutomer/main/product_details.tpl.

Go in there and establish another row to display the price per foot. I'm assuming that you have the price per picket established and working, just leave that and divide by 12 next to it to show price per foot. like {$product.taxed_price/12}.

I haven't tested this, but I think you would need to also:
round($somevar,2) to get the decimal place right.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote