bykrmom Posted July 23, 2009 Share Posted July 23, 2009 Hi all,I searched the forum for an answer to this question before posting this query, but I couldn't find anything. It's either because I can't figure out how to phraze a search properly or nothing yet exists to answer my need. I did try, however.My issue: I have changed the '$price' in validate.php to include text, so I could possibly use "Call for Pricing" in the price area for a product. I realized the change works well for the input in back office, but that all I can fit in the field is "Call". That will still work for me.Unfortunately, when Prestashop calculates the "Final retail price:" for display, it comes up with $0.00 instead of the text.Has anyone else encountered a need for text in the price field, and if so, how did you solve it?Thank you for any inputAngie Link to comment Share on other sites More sharing options...
Tobias Posted October 27, 2009 Share Posted October 27, 2009 Hi there!Im having the same problem and since this is an "old" post, i hope you maybe have figured it out?Please do write here or PM me if so.Thank you.Tobias Link to comment Share on other sites More sharing options...
bykrmom Posted October 29, 2009 Author Share Posted October 29, 2009 Hello Tobias,Unfortunately, no one has answered the question or offered solutions. Not suprising, but a tad dissapointing.If I should find a way to accomplish this, I'll let you know. Right now I'm focusing on a print catalog for the company and haven't had time to do anymore tweaking to the PS software in a month or soAngie. Link to comment Share on other sites More sharing options...
vzero Posted October 30, 2009 Share Posted October 30, 2009 Hi,I had a similar problem and fixed it in my product.tpl file and product-list.tpl file.on product.tpl file I added{if $product->price eq '0'} {l s='Call for Pricing and Availabilty'} {else} {convertPrice price=$product->getPrice(true, NULL, 2)}{/if}where{convertPrice price=$product->getPrice(true, NULL, 2)}used to be in What this does is sees if the product price is equal to 0 if it is then it outputs Call for pricing and availabilty, if not then it outputs the price.I also had to change product.tplwhere it was {convertPrice price=$product.price} inside the price spani put {if $product.price eq '0'} {l s=' '} {else} {convertPrice price=$product.price} {/if}This checks to see if the product price is 0 again and if it is it outputs nothing, didnt want it on that page. if it is higher than 0 then output the price.you can see live examples herehttp://www.nomas-nyc.com/12-rumblevision-artThanksnathan Link to comment Share on other sites More sharing options...
Tobias Posted November 13, 2009 Share Posted November 13, 2009 Hey vzero!Thanks for the reply although i tried your solution but cant get it to work at all... can you post the exact code you replaced it would be great (although i think i did i right first, but you can never be too sure )Thanks Link to comment Share on other sites More sharing options...
Tobias Posted November 13, 2009 Share Posted November 13, 2009 Found a solution that works now, although more work then you posted unfortunatly. :/ http://www.prestashop.com/forums/viewthread/2795/modules___development/call_for_pricing Link to comment Share on other sites More sharing options...
Recommended Posts