![]() |
[Product Page] Tab for Short Description/Detailed Description
I wanted to add a tab in product page. It is called Description. If Short description or Detailed description variables are not empty to show one of them or both (if available) inside this tab.
I did this task easy: 1) I edit include/product_tabs.php as following: after (line 50 v4.5.5 Gold+): PHP Code:
I added: PHP Code:
2) I created a smarty template inside /common_files/customer/main/product_descr.tpl with the following content: PHP Code:
but ... QUESTION: I would like to ask an expert if I have already Short Description and Full Description available as PHP variables inside product_tabs.php file, and not using $GLOBALS (as I did above). Just a simple array $product['fulldescr']. Without adding no other statements! |
All times are GMT -8. The time now is 06:08 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.