View Single Post
  #15  
Old 09-24-2012, 10:48 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default Re: Is it possible to have your own tabs

@Pyro - look how simple it is based on Toora Designs's example.

You can create as much tabs as you want using this code

PHP Code:
$product_tabs[] = array(
        
'title'  => 'tab_name_you_see_in_frontend'// you can define a language label for this
        
'tpl'    => 'skin_path/template_for_this_tab.tpl',
        
'anchor' => 'tab_anchor_name'
); 

You can re-arrange the tabs moving the code up and down with cut&paste. All tabs must be created before this code

PHP Code:
if (!empty($product_tabs)) {
    
$smarty->assign('product_tabs'$product_tabs);
    if (
$config['Appearance']['display_product_tabs'] == 'Y') {
        
$smarty->assign('show_as_tabs'true);
    }


Pyro, do it yourself to see how easy it is. For sure in 2 months you will come here with a brand new solution for creating and re-arranging tabs in admin (content, position), with enable/disable, of course new/remove tabs should use jQuery
__________________
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
Reply With Quote