Shortcode tags can be used to create dynamic links to content, for example, categories, manufacturers, and products, without having to hardcode the link in a content creation tool.
The problem with hard-coded links is that translation tools do not know what the exact URL of the target page is in the target language, which can result in 404 errors on multilingual pages. This is because the translated link does not point to the correct path in that language. Especially for stores that support multiple (even dozens) languages, manually updating and managing links is very laborious, as the content of each link would have to be reviewed in each target language during the translation phase.
Thanks to the new feature, the merchant only needs to add the type and ID of the shortcode tag to the content that is the translation source, and the backend system will automatically create the link correctly in the translations. This eliminates the problem of a hard-coded link that could break in the translation. Using this feature also does not slow down the site at all due to the software architecture used by AI Commerce .
Please note, however, that for performance reasons, the use of shortcodes is limited to working only with exactly spelled tags. This means that if the shortcode has extra spaces or other special characters, it will not work. So always check that the shortcode is spelled exactly as shown in the examples provided.
Example of using a shortcode (not recommended to copy as is):
[link type="category" id="52"]This may contain link text[/link]
The example above shows how a shortcode can point to a category by ID. You can also create links to other content, such as manufacturers or products, in a similar way, just by changing the type value and the identifier.
Remember to always ensure the correct syntax of the shortcode and any markup in the content in different languages. This is how AI Commerce 's new shortcode support helps keep links intact and SEO working on international pages.