| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
[Product Page] Tab for Short Description/Detailed Description | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
[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!
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
|
|||
X-Cart forums © 2001-2020
|