First i would like to congratulate for very nice product . It is simple and useful. I am newbie to opencart. I need help to customize this application.
My requirement is "while browsing through products at the end there are tabs named,
Description,Additional Images,Reviews, Related Products ". How can i add an extra tab to existing tabs.
example: i would like to add "specification" tab, and i would like to add .it should appear at the bottom
Thanking you,
afsar
Why don't you look into the code? It's easy to modify anyway. Just duplicate an existing tab code. But you need some effort for the tab content, since you would need to edit product controller, product model as well as the backend for spec entry.
Cheers!
Voca/Kym -Hi Afsar
Did you achieve your spec tab, Im working on that at the moment and would be happy to share if you (or anyone) want.
Regards
Kym
I am just starting to dig into the Opencart code on my first implementation for a store front. I am very interested in having you share what you have done for setting up a Specifications tab on the product page. I would like very much for it to have the same functionality as the Description tab. I know that I could eventually get it done by digging into the code on my own, but I would like to leverage what you have learned since you are offering!
Thanks!
Start by copying an existing tab and changing its name.
You may also need to edit:
/catalog/model/catalog/product.php
/catalog/controller/product/product.php
/catalog/language/english/product/product.php (and this file for other languages you may have installed)
OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Check out: All my extensions | My FREE extensions
Do you have a contact email address for bull5-i? Please PM me it so I can get the additional tabs problem sorted also.jcgadgets wrote:Hi everyone,
I PM'd member bull5-i and ended up paying $10 via PayPal for this. It works flawlessly, has a backend admin section for easy editing using the ckeditor, etc. I'd recommend it!
Thank you,
Jared
Thanks
OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Check out: All my extensions | My FREE extensions
1. Go to /catalog/model/catalog/product.php and find <a tab="#tab_description">... to till the line we have to duplicate.
2. then Go to /catalog/controller/product/product.php and find ....
3. then go to /catalog/language/english/product/product.php and find ... to till the line we have to duplicate.
This way it would be extremely easy for us. Please!
Thanks in advance and best regards
Tissy
Logo Printed / Embroidered T-Shirts
Polo Shirts, Sweatshirts & Hoodies
http://www.tmart.in
small (just names)change at it works as charm.
5 min even for a girl;)
Best regards / Tissy
Logo Printed / Embroidered T-Shirts
Polo Shirts, Sweatshirts & Hoodies
http://www.tmart.in
Line 233-235 should be
Code: Select all
<?php if ($products) { ?>
<a href="#tab-related"><?php echo $tab_related; ?> (<?php echo count($products); ?>)</a>
<?php } ?>
Code: Select all
<a href="#tab-extra"><?php echo $tab_extra; ?></a>
Line 40 should be
Code: Select all
$_['tab_review'] = 'Reviews (%s)';
Code: Select all
$_['tab_extra'] = 'My cute tab';
Line 176 should be
Code: Select all
$this->data['tab_related'] = $this->language->get('tab_related');
Code: Select all
$this->data['tab_extra'] = $this->language->get('tab_extra');
This should create your tab called "My cute tab". Obviously, it would be empty. I don't know what you want to put in there, but you should be able to add content based on your needs by editing the aforementioned files.
Hope this helps.
OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Check out: All my extensions | My FREE extensions
i did what you said, but how should i edit the content inside? can i create in the admin - product same field as the description that i can be able to edit it for any product?sooskriszta wrote:Open /catalog/view/theme/default/product/product.tpl
Line 233-235 should beAfter this, addCode: Select all
<?php if ($products) { ?> <a href="#tab-related"><?php echo $tab_related; ?> (<?php echo count($products); ?>)</a> <?php } ?>
Open /catalog/language/english/product/product.phpCode: Select all
<a href="#tab-extra"><?php echo $tab_extra; ?></a>
Line 40 should beAfter this, addCode: Select all
$_['tab_review'] = 'Reviews (%s)';
Open /catalog/controller/product/product.phpCode: Select all
$_['tab_extra'] = 'My cute tab';
Line 176 should beAfter this, addCode: Select all
$this->data['tab_related'] = $this->language->get('tab_related');
Save and upload all edited files.Code: Select all
$this->data['tab_extra'] = $this->language->get('tab_extra');
This should create your tab called "My cute tab". Obviously, it would be empty. I don't know what you want to put in there, but you should be able to add content based on your needs by editing the aforementioned files.
Hope this helps.
thanks!
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Attachments
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 49 guests