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?
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?
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.
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!
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> ?
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> ?
$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.
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!
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.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.
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?
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!
Who is online
Users browsing this forum: No registered users and 95 guests