Jump to content

Adding text to different multishops


Recommended Posts

Hi!

 

I want to change the text in a payment module depending on what shop it is.

 

I got this code in a tpl file:

 

 

{if $sveainvoice}
<p class="payment_module">
<a href="{$link->getModuleLink('sveawebpay', 'invoicepayment')}" style="height:100%;" title="{l s='Pay with Sveawebpay Invoice' mod='sveawebpay'}">
<img src="{$module_template_dir}img/invoice.png" style="float:left;" alt="{l s='Pay with Sveawebpay Invoice' mod='sveawebpay'}" />
<strong>{l s='Pay with Sveawebpay Invoice' mod='sveawebpay'}</strong>
<br />{l s='Payment instructions' mod='sveawebpay'}
<br style="clear:both;" />
        </a>
</p>
{/if}
 
and i want something like this, but i cant get the code to work:
 
{if $sveainvoice AND $id_shop=1}
<p class="payment_module">
<a href="{$link->getModuleLink('sveawebpay', 'invoicepayment')}" style="height:100%;" title="{l s='Pay with Sveawebpay Invoice' mod='sveawebpay'}">
<img src="{$module_template_dir}img/invoice.png" style="float:left;" alt="{l s='Pay with Sveawebpay Invoice' mod='sveawebpay'}" />
<strong>{l s='Pay with Sveawebpay Invoice' mod='sveawebpay'}</strong>
<br />{l s='Payment instructions' mod='sveawebpay'}
<br style="clear:both;" />
        </a>
</p>
{/if}

 

{if $sveainvoice AND $id_shop=3}
<p class="payment_module">
<a href="{$link->getModuleLink('sveawebpay', 'invoicepayment')}" style="height:100%;" title="{l s='Pay with Sveawebpay Invoice' mod='sveawebpay'}">
<img src="{$module_template_dir}img/invoice.png" style="float:left;" alt="{l s='Different text' mod='sveawebpay'}" />
<strong>{l s='Pay with Sveawebpay Invoice' mod='sveawebpay'}</strong>
<br />{l s='Payment instructions' mod='sveawebpay'}
<br style="clear:both;" />
        </a>
</p>
{/if}
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...