PrestaShop Forums: [Solved] Product price - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


[Solved] Product price


[Solved] Product price

#1 tiagosilva

    PrestaShop Newbie

  • 18 Jul 2010
  • Members
  • Pip
  • 14 posts

Posted 29 July 2010 - 04:30 PM

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?

Attached File(s)



#2 tiagosilva

    PrestaShop Newbie

  • 18 Jul 2010
  • Members
  • Pip
  • 14 posts

Posted 29 July 2010 - 11:26 PM

anyone can help?
Please

#3 tiagosilva

    PrestaShop Newbie

  • 18 Jul 2010
  • Members
  • Pip
  • 14 posts

Posted 30 July 2010 - 02:52 AM

I need this help, please anyone have one suggestion?

#4 tomerg3

    PrestaShop Superstar

  • 10 Feb 2009
  • US Moderators
  • 5142 posts
  • Location:New York City

Posted 30 July 2010 - 06:47 PM

Edit /themes/prestashop/product.tpl

Look for



and replace it with

getPrice(true, $smarty.const.NULL, 2) == 0}style="display:none"{/if}>


http://www.Presto-Changeo.com Prestashop Modules and Website Development
Modules: Attribute Wizard Pro | Ajax Filter | Website Translator | Facebook Comments | Mass Combination Editor | Database Export | Private Shop |Product List Attributes | OSC to PS Migration | ZenCart to PS | Cre-loaded to PS | Authorize.net | Sagepay | Fedex | UPS | USPS | Canada Post | Australia Post
Free Modules: Facebook Like | Google +1 | Rotating Fading Text | Quantity Discounts | Order IP Log
For the latest modules, updates and monthly discount coupons, follow Twitter or Facebook

Featured Module: Automatic Prestashop Backup - Backup your files and database on Amazon S3 Cloud server, locally, and via email for 3 layers of protection against data loss or server crash!

#5 tiagosilva

    PrestaShop Newbie

  • 18 Jul 2010
  • Members
  • Pip
  • 14 posts

Posted 30 July 2010 - 08:05 PM

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?

Attached File(s)



#6 tomerg3

    PrestaShop Superstar

  • 10 Feb 2009
  • US Moderators
  • 5142 posts
  • Location:New York City

Posted 01 August 2010 - 04:32 AM

Instead of
$product->getPrice(true, $smarty.const.NULL, 2)
Use
$product.price
http://www.Presto-Changeo.com Prestashop Modules and Website Development
Modules: Attribute Wizard Pro | Ajax Filter | Website Translator | Facebook Comments | Mass Combination Editor | Database Export | Private Shop |Product List Attributes | OSC to PS Migration | ZenCart to PS | Cre-loaded to PS | Authorize.net | Sagepay | Fedex | UPS | USPS | Canada Post | Australia Post
Free Modules: Facebook Like | Google +1 | Rotating Fading Text | Quantity Discounts | Order IP Log
For the latest modules, updates and monthly discount coupons, follow Twitter or Facebook

Featured Module: Automatic Prestashop Backup - Backup your files and database on Amazon S3 Cloud server, locally, and via email for 3 layers of protection against data loss or server crash!

#7 tiagosilva

    PrestaShop Newbie

  • 18 Jul 2010
  • Members
  • Pip
  • 14 posts

Posted 10 August 2010 - 12:35 AM

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


{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc} {/if}
{if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Available'}{/if}


#8 tiagosilva

    PrestaShop Newbie

  • 18 Jul 2010
  • Members
  • Pip
  • 14 posts

Posted 10 August 2010 - 11:19 PM

i need help please, you can help me?

#9 tomerg3

    PrestaShop Superstar

  • 10 Feb 2009
  • US Moderators
  • 5142 posts
  • Location:New York City

Posted 11 August 2010 - 04:46 AM




http://www.Presto-Changeo.com Prestashop Modules and Website Development
Modules: Attribute Wizard Pro | Ajax Filter | Website Translator | Facebook Comments | Mass Combination Editor | Database Export | Private Shop |Product List Attributes | OSC to PS Migration | ZenCart to PS | Cre-loaded to PS | Authorize.net | Sagepay | Fedex | UPS | USPS | Canada Post | Australia Post
Free Modules: Facebook Like | Google +1 | Rotating Fading Text | Quantity Discounts | Order IP Log
For the latest modules, updates and monthly discount coupons, follow Twitter or Facebook

Featured Module: Automatic Prestashop Backup - Backup your files and database on Amazon S3 Cloud server, locally, and via email for 3 layers of protection against data loss or server crash!

#10 tiagosilva

    PrestaShop Newbie

  • 18 Jul 2010
  • Members
  • Pip
  • 14 posts

Posted 12 August 2010 - 01:08 AM

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users