Skip to content

Use widget to add dynamic text inside the short description tab based on text attribut of product?

I’m looking to have dynamic text that changes based on the store view and the product for seo reason. Below i’ve used a simple exemple of a dynamic country name :

1 – On the attribut configuration page :

  • Create text attribut called “seo-word-country”.

side attribut

2 – On the product configuration page :

  • On store-view “Belgium”, i add the word “Belgium” in the attribut text field.
  • On store-view “Germany” this would be “Germany”…etc

side product

  • In the short description i add the following text : This product can be shipped to your country “widget-seo-word-country” !.

side description

3 – On the front-end product page :

  • The client and Google crawlers sees the following text on the belgium site : this product can be shipped to your country Belgium !

side frontend

The idear is to have only one default text in short and long description tab which changes on the front-end based on the store-view and the product page.

Big thanks in advance for your help.

Regards,
Marc