Post by OptimusM » Sat Mar 19, 2011 9:33 pm

Is it possible to add an extra tab on the Product page. Next to the Description tab, I would like there to be a specifications tab.

I succeeded in doing this by adding the line:
<a tab="#tab_description">Specifications</a>

But because of #tab_description, it shows the description page. I would there to be a separe page where I Can add Technichal specifications. Is it possible to acieve this?

New member

Posts

Joined
Thu Mar 03, 2011 8:15 pm

Post by SapporoGuy » Sun Mar 20, 2011 12:40 am

yes it is possible.

The # sign is used in CSS for id and in Jquery to find where to do it's magic.

You could do:
tab_specifications

Then copy, edit and paste the areas that refer to tab_description.

You will also need to edit your template to reflect which data goes into the specifications area.

930sc ... because it is fun!


User avatar
Active Member

Posts

Joined
Mon Nov 01, 2010 7:29 pm

Post by OptimusM » Sun Mar 20, 2011 2:53 am

But how do I manage if I want different information in this extra tab, depending on the product? I've managed to add the extra tab and information in it. But it's the same information for all products.

I added the following <div id="tab_specs" class="tab_page">My product specs here</div> in the template file.

But how do I manage if I want this: <div id="tab_specs" class="tab_page"><?php echo $specs; ?></div> ?

New member

Posts

Joined
Thu Mar 03, 2011 8:15 pm

Post by SapporoGuy » Sun Mar 20, 2011 3:52 am

$specs needs to be defined in the controller.

You will probably need to edit about 6 files to do this.
In the admin add the necessary input boxes (for example copy, edit, paste the description variable)
then in the catalog (shop) side need to the same.

It's basic php but if search for description you'll see how things are working.
Takes about 30 minutes plus if you are familiar with the system. More if you are new to how opencart works.

Also, if you add new variables (columns) into the database you need to remember that when an upgrade comes out, you'l have to do the work again. To avoid this situation, using vqmod will help.

930sc ... because it is fun!


User avatar
Active Member

Posts

Joined
Mon Nov 01, 2010 7:29 pm

Post by OptimusM » Sun Mar 20, 2011 4:07 am

SapporoGuy wrote:$specs needs to be defined in the controller.

You will probably need to edit about 6 files to do this.
In the admin add the necessary input boxes (for example copy, edit, paste the description variable)
then in the catalog (shop) side need to the same.

It's basic php but if search for description you'll see how things are working.
Takes about 30 minutes plus if you are familiar with the system. More if you are new to how opencart works.

Also, if you add new variables (columns) into the database you need to remember that when an upgrade comes out, you'l have to do the work again. To avoid this situation, using vqmod will help.
Thanks for the help. I think I can do it, if you just can tell me which six files I have to edit? I've looked and can't find the exact files.

New member

Posts

Joined
Thu Mar 03, 2011 8:15 pm

Post by SapporoGuy » Sun Mar 20, 2011 4:15 am

admin/controller/product
admin/module/product
admin/language/**/product
admin/view/template/product

Repeat the above for the catalog side

What were you looking for?

930sc ... because it is fun!


User avatar
Active Member

Posts

Joined
Mon Nov 01, 2010 7:29 pm
Who is online

Users browsing this forum: No registered users and 88 guests