View Single Post
  #16  
Old 08-28-2014, 04:30 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: Product Grid Layout

Maybe we have the blind helping the blind here. I just tried adding the Our Price statement with this code:
Code:
{* vim: set ts=2 sw=2 sts=2 et: *} {** * Item price * * @author Qualiteam software Ltd <info@x-cart.com> * @copyright Copyright (c) 2011-2013 Qualiteam software Ltd <info@x-cart.com>. All rights reserved * @license http://www.x-cart.com/license-agreement.html X-Cart 5 License Agreement * @link http://www.x-cart.com/ * * @ListChild (list="itemsList.product.grid.customer.info", weight="25") *} {t(#Our Price#)}:
I am using Custom Skin module, and I created this template in skins\default\en\modules\XC\CustomSkin\items_list\ product\grid.product.our-price.tpl

It showed up just where I expected it to, because of @ListChild (list="itemsList.product.grid.customer.info", weight="25")

Then I created skins\default\en\modules\XC\CustomSkin\items_list\ product\grid.product.market-price.tpl

with this code:
Code:
{* vim: set ts=2 sw=2 sts=2 et: *} {** * Item price * * @author Qualiteam software Ltd <info@x-cart.com> * @copyright Copyright (c) 2011-2013 Qualiteam software Ltd <info@x-cart.com>. All rights reserved * @license http://www.x-cart.com/license-agreement.html X-Cart 5 License Agreement * @link http://www.x-cart.com/ * * @ListChild (list="itemsList.product.grid.customer.info", weight="35") *} {if:product.getMarketPrice()} {t(#Market price#)}: <span class="value">{formatPrice(product.getMarketPrice(),null,1)}</span> {end:}
__________________
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