Letsrock Posted November 30, 2012 Share Posted November 30, 2012 Hello, is it possible to use php code in product description in v1.5? Link to comment Share on other sites More sharing options...
SteffenL Posted November 30, 2012 Share Posted November 30, 2012 Hello, I assume that the normal way would be to edit the controller (ProductController.php), then assign variables for Smarty to pass to the template (product.tpl). You must also edit code anywhere else the long and short descriptions are used. Here's an example In ProductController.php, inside initContent(), look for: $this->context->smarty->assign(array( Add this: 'productDescriptionShort' => 'This is the short description: '.$this->product->description_short In product.tpl, look for: {$product->description_short} Change into this: {$productDescriptionShort} Result Link to comment Share on other sites More sharing options...
Recommended Posts