Jump to content

Add link contact form to block CMS


Recommended Posts

because there is direct way to add this from back office.

here is way to add it directly to the CMS block theme file.

follow the instructions below to override the theme file and add your link (keep original one not changed)

 

1. create a folder following folder if it does not exists

YourStoreRoot/themes/YourStoreTheme/modules/blockcms

 

2. Copy the following theme file from original cms folder to the one we prepared at above 1.

 

YourStoreRoot/modules/blockcms/blockcms.tpl

 

3. Edit the new copied file

YourStoreRoot/themes/YourStoreTheme/modules/blockcms/blockcms.tpl

 

adding following line to the first block of code in the theme file.

 

<li><a href="{$link->getPageLink('contact-form.php')}" title="{l s='Contact Us' mod='blockcms'}">{l s='Contact US' mod='blockcms'}</a></li>

 

I have attached the changed file (which is from 1.4.3), in case you don't know how to do this.

 

please rename the file. I added .txt extension because the forum not allow to attach tpl file.

blockcms.tpl.txt

  • Like 1
Link to comment
Share on other sites

because there is direct way to add this from back office.

here is way to add it directly to the CMS block theme file.

follow the instructions below to override the theme file and add your link (keep original one not changed)

 

1. create a folder following folder if it does not exists

YourStoreRoot/themes/YourStoreTheme/modules/blockcms

 

2. Copy the following theme file from original cms folder to the one we prepared at above 1.

 

YourStoreRoot/modules/blockcms/blockcms.tpl

 

3. Edit the new copied file

YourStoreRoot/themes/YourStoreTheme/modules/blockcms/blockcms.tpl

 

adding following line to the first block of code in the theme file.

 

<li><a href="{$link->getPageLink('contact-form.php')}" title="{l s='Contact Us' mod='blockcms'}">{l s='Contact US' mod='blockcms'}</a></li>

 

I have attached the changed file (which is from 1.4.3), in case you don't know how to do this.

 

please rename the file. I added .txt extension because the forum not allow to attach tpl file.

Awesome. It works perfectly well, you're a master.

 

Thank you very much for your help.

Link to comment
Share on other sites

  • 4 months later...
  • 1 year later...
×
×
  • Create New...