Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Mail Snippets Social Links Rate Topic   - - - - -

 
  • mumbomedia
  • Advanced Member
  • Members
  • Join Date: 13-Jan 17
  • 66 posts

Posted 24 February 2019 - 02:25 PM #1

Is it possible to have the icons in the email footer snippet link to the facebook/twitter websites for the store they belong to?

By default the facebook icon just links to facebook.com.  How to link it for store1 to facebook.com/store1  and for store2 to facebook.com/store2

 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19051 posts

Posted 25 February 2019 - 07:29 AM #2

You can add condition by company_id

{% if company_data.company_id == 123 %}
... code for company with ID = 123....
{% else %}
... code for other store-fronts....
{% endif %}

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • mumbomedia
  • Advanced Member
  • Members
  • Join Date: 13-Jan 17
  • 66 posts

Posted 25 February 2019 - 09:22 AM #3

Having some issues with this.

I think it should be something like this, but that's not working.

 

<td>
 {% if company_data.company_id = 10 %}
<a href="https://www.facebook.com/store1/"><imgwidth="20" height="20" src="design/themes/responsive/mail/media/images/social/facebook.png"></a>
{% else %}
<a href="https://www.facebook.com/store2/"><imgwidth="20" height="20" src="design/themes/responsive/mail/media/images/social/facebook.png"></a>
{% endif %}
 </td>


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19051 posts

Posted 25 February 2019 - 01:57 PM #4

Try to use double "=" symbol in the condition


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.