Jump to content

HELP to change the price zero (0.00) to ¨custom price¨ in checkout


Recommended Posts

Hiii, ;)

 

I have managed to change the price in prestashop to ´custom price¨ when the product price is zero. I did this in the themes product.tpl and product-list.tpl file. 

 

BUT when i add it to cart, (i use quick order) it still show zero, 0.00 in the checkout.

 

I dont know what to edit and where. Maybe its in the order-opc.tpl????

 

Or cart-summary.js? 

 

Can someone help me. 

 

 

Link to comment
Share on other sites

Hello,

 

Do you mean "custom attribute price"? Because If your product price is zero then your custom specific price will not be function able. You can try custom attribute price. To this you put your price zero and add combination with prices.

 

Thanks,

Link to comment
Share on other sites

I have this code, 

 

 {else}
 {if isset($product.is_discounted) && $product.is_discounted}<span style="text-decoration:line-through;">{convertPrice price=$product.price_without_specific_price}</span><br />{/if}
{if !$priceDisplay}{convertPrice price=$product.price_wt}{else}{convertPrice price=$product.price}{/if} 
{/if}    </span>   
 
I tried to put it in, but then it showed me a blank page.
 
Think i did something wrong. Can you tell the exact way. 
Link to comment
Share on other sites

hmm but you wanted something different.

you want to display FREE instead of 0.00

 

so you have to use:

{if $product.price==0}{l s='free'}{else}{convertPrice price=$product.price}{/if}

or for price with tax:

{if $product.price==0}{l s='free'}{else}{convertPrice price=$product.price_wt}{/if}
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...