Shoppica 2 Tabs

This topic has been marked as not resolved.

Hi TB,

How does yout Tabs work please as in the product.tpl file for template you have:


        <?php
        $tabs_num = 1;
        if ($attribute_groups) $tabs_num++;
        if ($review_status) $tabs_num++;
        if ($images && $tbData->common['product_gallery_position'] == 'tab') $tabs_num++;
        ?>

As i added the extra product tabs i did and i have worked out i need to add extra code to the above code so worked for example:

if ($product_tabs_2) $tabs_num++;

But when i add say more than 1 tab to the same product it goes on the next line? so is there some sort of code that needs to be changed to allow more tabs on one line? i thought it was a matter of changing the $tabs_num = 1; to say 2 or something but it never worked lol.

You can see a demo of what i mean here :)

http://www.bluegeeks.co.uk/shoppica2/index.php?route=product/product&product_id=42

Kind Regards,
Aaron

February 18, 2013 at 1:21 am #18959
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
February 20, 2013 at 12:27 pm #19079

Hi so basically where it has:

$tabs_num = 1; i change it to look like this:

$tabs_num = 1 + count($product_tabs_2); and if i need to add any others to it i would put:

$tabs_num = 1 + count($product_tabs_2,product_tabs_3);

Thanks
Aaron

February 20, 2013 at 12:41 pm #19083
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
February 21, 2013 at 6:07 pm #19189

Hi,

If i was to send you my FTP login details could you take a look at the Vqmod :) which is installed to do this or you can view the Vqmod i have attached below :)

Kind Regards,
Aaron

  • This reply was modified 4089 days ago by  aaron1988.
February 21, 2013 at 6:21 pm #19192

Hi TB,

Please find attached ZIP file of the XML if you do need FTP do please let me know

Thanks
Aaron

February 22, 2013 at 3:12 pm #19249
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
February 26, 2013 at 11:11 am #19477

Hi if you look here:

http://www.bluegeeks.co.uk/shoppica2/index.php?route=product/product&product_id=43

I added your code so now the code looks like this:

[code]
common['product_gallery_position'] == 'tab') $tabs_num++;
?>
[/code]

But still if i add more than one tab to a product it goes underneath :(

Thanks
Aaron

March 5, 2013 at 1:24 am #19802
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.