Originally Posted by
DivaVocals
OR...
You can do something much simpler by simply going to "My Store" in the Admin > Configuration menu.. Edit the "Store Address and Phone", and that way you don't have to edit ANY files.. (and YES, you can add some HTML if you wish)
Yes that is very true and I have already done that when I setup the site, what is not displayed on the contact us pages are the Name of the shop and the telephone number.
The bit that Trinity14 put I have had a re-think. I do not want to just write HTML coding I would like to code it up the same way as the address is
Code:
<?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?>
<address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
<?php } ?>
but for the store name. That way I can use it for my other stores and update to this plugin for everybody else to use.
So if I do something like
Code:
<?php if (CONTACT_US_STORE_NAME== '1') { ?>
<address><?php echo nl2br(STORE_NAME); ?></address>
<?php } ?>
Would that work? and is there any other coding I need to put anywhere else?
Bookmarks