laserking123 Posted January 18, 2014 Share Posted January 18, 2014 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 More sharing options...
limon994 Posted January 19, 2014 Share Posted January 19, 2014 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 More sharing options...
laserking123 Posted January 19, 2014 Author Share Posted January 19, 2014 Heey, no i want the price to change to example ¨free¨ when the price of the product is 0. i managed to do that by editing product.tpl and product-listing.tpl but i don't know what to edit to show the text ¨free¨instead of the price 0. Link to comment Share on other sites More sharing options...
limon994 Posted January 19, 2014 Share Posted January 19, 2014 Hello, Have you edited the order-detail.tpl file? I think after editing this you will solve your problem in checkout process. But You still need to change some other places also, homefeatured , blockproductsnew etc. modules. Thanks, Link to comment Share on other sites More sharing options...
laserking123 Posted January 19, 2014 Author Share Posted January 19, 2014 I think its in the shopping-cart.tpl. But i dont know what to type and where ? Link to comment Share on other sites More sharing options...
vekia Posted January 19, 2014 Share Posted January 19, 2014 shopping-cart-product-line.tpl use this variable: $product.price something like {if $product.price==0}{l s='free'}{else}{convertPrice price=$product.price}{/if} remember about price with tax / without tax option. 1 Link to comment Share on other sites More sharing options...
laserking123 Posted January 19, 2014 Author Share Posted January 19, 2014 Can you provide me with more details. Which and where should that code be placed, Link to comment Share on other sites More sharing options...
vekia Posted January 19, 2014 Share Posted January 19, 2014 instead of {convertPrice price=$product.price} or {convertPrice price=$product.price_wt} in shopping-cart-product-line.tpl - it's a part of your theme directory. Link to comment Share on other sites More sharing options...
laserking123 Posted January 19, 2014 Author Share Posted January 19, 2014 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 More sharing options...
vekia Posted January 20, 2014 Share Posted January 20, 2014 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} 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now