cercamon Posted November 13, 2014 Posted November 13, 2014 (edited) Hi, I'm wondering if there's a list of variables or shortcodes that we can use in product description field. I'm aware that we can call images using a shortcode format like [img-1742-left-large_default], but I wonder if there are any other variables that we can use, like the product name or any other data. Thanks for your assistance! Edited November 13, 2014 by cercamon (see edit history) Share this post Link to post Share on other sites More sharing options...
tuk66 Posted November 13, 2014 Posted November 13, 2014 It is not possible. You have to create data for a template and then show it - templates are Smarty templates. Share this post Link to post Share on other sites More sharing options...
cercamon Posted November 14, 2014 Posted November 14, 2014 Thanks for your reply. Could you elaborate on how to create data for a template so we can recall it inside the product description as a shortcode? 1 Share this post Link to post Share on other sites More sharing options...
tuk66 Posted November 14, 2014 Posted November 14, 2014 Learn from code. Data are created in controllers - /controllers/front/* - and injected to templates through: $this->context->smarty->assign method. Share this post Link to post Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now