Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Duplicate price with custom skin modification

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 09-24-2014, 07:15 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Post Duplicate price with custom skin modification

I am attempting to hide the price, if the product is not available. This works as I upload the following file with this content;

"custom_skin/default/en/items_list/product/parts/common.product-price.tpl"

Code:
<widget IF="product.isAvailable()" class="\XLite\View\Price" product="{product}" displayOnlyPrice="true" />

I mentioned this worked, but this is until I perform a rebuild cache for some reason. After this time it will still hide the price for products not available, however it will display two prices in the thumbnails and product page. It could be some oversight I am missing. Please advise.
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #2  
Old 09-24-2014, 07:26 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: Duplicate price with custom skin modification

Richard,
Can you post the entire contents of your common.product-price.tpl file?
__________________
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
  #3  
Old 09-24-2014, 07:48 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: Duplicate price with custom skin modification

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="30") * @ListChild (list="itemsList.product.small_thumbnails.customer.details", weight="25") * @ListChild (list="itemsList.product.list.customer.info", weight="40") * @ListChild (list="itemsList.product.table.customer.columns", weight="40") * @ListChild (list="productBlock.info", weight="300") *} <widget IF="product.isAvailable()" class="\XLite\View\Price" product="{product}" displayOnlyPrice="true" />
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #4  
Old 09-24-2014, 07:55 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: Duplicate price with custom skin modification

Richard,
Try removing the @ListChild directives from the comments. Just remove the entire lines, all 5 of them. Then rebuild cache and see what you get. I think the original template is assigning itself to the lists, and then your modified template is reassigning it.
__________________
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

The following user thanks totaltec for this useful post:
RichieRich (09-24-2014)
  #5  
Old 09-24-2014, 08:43 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: Duplicate price with custom skin modification

That worked, thanks a lot Mike
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:39 PM.

   

 
X-Cart forums © 2001-2020