Jump to content

Replace $0 with Call For Price


lexijade

Recommended Posts

  • 3 weeks later...

It would be in one or more files in the skins/foundation/templates folder, such as in content.product.php.

Search for e.g.:

{$PRODUCT.price}

And replace with e.g.:

{if $PRODUCT.price == 0}Call for price{else}{$PRODUCT.price}{/if}

Note that the price field at this point is typically formatted to e.g. '$5.00' and may change with selected currency, so you may be better off manipulating this at the server level.

Either way, you run the risk of unintended consequences, so be sure to thoroughly test any changes you make before putting them live.

I would also recommend using some sort of version control software, such as Git, to help you track your changes. This way you not only have a history of changes you've made that you can easily reapply when updating, but you also have that same history available to cross reference when debugging any mess you happen to create by editing the files - it's saved me a lot of time on many occasions. ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...