Hello, Guest |
| Register
Remember me Forgot password ?
Site Map Site Map Contact us Contact us
PrestaShop e-commerce software
  557 users online

 
Post Reply
New Topic
[Solved] Product price

offline
Posted: 29 July 2010 07:30 PM   [ Ignore ]
Apprentice
RankRank

Messages :

  • total: 22
  • last 7 days: 0
Joined: 2010-07-18

Hello, I would like to implement a logic in my pages of products when the product price is equal to 0 (== 0) would not show the price, and when it is greater than 0 (> 0) show the price normally ..
Anyone have one suggestion?

Image Attachments
imagem11.JPGimagem111.JPG
 
offline
Posted: 30 July 2010 02:26 AM   [ Ignore ]   [ # 1 ]
Apprentice
RankRank

Messages :

  • total: 22
  • last 7 days: 0
Joined: 2010-07-18

anyone can help?
Please

 
offline
Posted: 30 July 2010 05:52 AM   [ Ignore ]   [ # 2 ]
Apprentice
RankRank

Messages :

  • total: 22
  • last 7 days: 0
Joined: 2010-07-18

I need this help, please anyone have one suggestion?

 
offline
Posted: 30 July 2010 09:47 PM   [ Ignore ]   [ # 3 ]
Moderator
RankRankRankRankRank
Avatar

Messages :

  • total: 2120
  • last 7 days: 31
Joined: 2009-02-11

Edit /themes/prestashop/product.tpl

Look for

<class="price">
and replace it with
<class="price" {if $product->getPrice(true$smarty.const.NULL2) == 0}style="display:none"{/if}>

 Signature 

http://www.Presto-Changeo.com Prestashop Modules and Modifications (Live support available)
Modules:
Authorize.net| Fedex | Attribute Wizard Pro| Filter By| Website Translator| Private Shop
Free Modules: Facebook Like | Location & Currency Detection | Sitemap | Rotating Fading Text |
Mods: Tax on a separate line | Textarea on product page.
For the latest updates and coupons, follow http://twitter.com/prestochangeo1
For hired work, email tomerg3@yahhoo

 
offline
Posted: 30 July 2010 11:05 PM   [ Ignore ]   [ # 4 ]
Apprentice
RankRank

Messages :

  • total: 22
  • last 7 days: 0
Joined: 2010-07-18

Thanks, this work good..
I try to put same code in product-list.tpl but this fail, this deleted all information, including the button to see the product..
Can help me in code for product-list.tpl?

Image Attachments
imagem222.JPGimagem22.JPG
 
offline
Posted: 01 August 2010 07:32 AM   [ Ignore ]   [ # 5 ]
Moderator
RankRankRankRankRank
Avatar

Messages :

  • total: 2120
  • last 7 days: 31
Joined: 2009-02-11

Instead of
$product->getPrice(true, $smarty.const.NULL, 2)
Use
$product.price

 Signature 

http://www.Presto-Changeo.com Prestashop Modules and Modifications (Live support available)
Modules:
Authorize.net| Fedex | Attribute Wizard Pro| Filter By| Website Translator| Private Shop
Free Modules: Facebook Like | Location & Currency Detection | Sitemap | Rotating Fading Text |
Mods: Tax on a separate line | Textarea on product page.
For the latest updates and coupons, follow http://twitter.com/prestochangeo1
For hired work, email tomerg3@yahhoo

 
offline
Posted: 10 August 2010 03:35 AM   [ Ignore ]   [ # 6 ]
Apprentice
RankRank

Messages :

  • total: 22
  • last 7 days: 0
Joined: 2010-07-18

i try to insert this code but dont have work..
anyone can help to insert this logic here in product-list.tpl

<div>             
         <
span class="price" style="display: inline;">  {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc} {/if} </span><br />    
         <
span class="availability">{if ($product.allow_oosp OR $product.quantity 0)}{l s='Available'}{else}{l s='Available'}{/if}</span>
</
div>

 
offline
Posted: 11 August 2010 02:19 AM   [ Ignore ]   [ # 7 ]
Apprentice
RankRank

Messages :

  • total: 22
  • last 7 days: 0
Joined: 2010-07-18

i need help please, you can help me?

 
offline
Posted: 11 August 2010 07:46 AM   [ Ignore ]   [ # 8 ]
Moderator
RankRankRankRankRank
Avatar

Messages :

  • total: 2120
  • last 7 days: 31
Joined: 2009-02-11

<span class="price" style="display: {if $product.price > 0}inline{else}none{/if};">

 Signature 

http://www.Presto-Changeo.com Prestashop Modules and Modifications (Live support available)
Modules:
Authorize.net| Fedex | Attribute Wizard Pro| Filter By| Website Translator| Private Shop
Free Modules: Facebook Like | Location & Currency Detection | Sitemap | Rotating Fading Text |
Mods: Tax on a separate line | Textarea on product page.
For the latest updates and coupons, follow http://twitter.com/prestochangeo1
For hired work, email tomerg3@yahhoo

 
offline
Posted: 12 August 2010 04:08 AM   [ Ignore ]   [ # 9 ]
Apprentice
RankRank

Messages :

  • total: 22
  • last 7 days: 0
Joined: 2010-07-18

Thanks, this work good..
;D
i will change title for solved..

 
 
 
Fast Reply
New Topic