| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to add tabs to product page? | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I would like to add " detailed description " of a product to the product tabs so that i show the customers short description next to the product picture and they see full description below at the tabs section is this possible? tia burak
__________________
X-Cart Gold 4.4.1 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Yes that is possible but you will have to edit the php and template files responsible for the tabs to achieve this
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() what kinds of php and template files have to be edited ?
__________________
X-cart Gold 4.4.1 Linux |
|||||||
#4
|
|||||||||
|
|||||||||
![]() include/product_tabs.php is the php file
you may or may not need to skin/common_files/customer/tabs.tpl
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||
|
|||||||
![]() i dont have any knowladge of php right at the moment so in order to insert the "detailed description" of a product to product tabs, i need to first create a moduie from the admin panel and write a script to the product_tabs.php file ?
__________________
X-Cart Gold 4.4.1 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() You can either modify the php file so you don't have to modify the template or you can modify the template only which will require you to have smarty, html and css knowledge (no php knowledge). If you don't know any of them I would success to you to hire a professional to help you.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#7
|
|||||||
|
|||||||
![]() Hi, I would like to do the same, as OP, create an additional tab called Detailed Description. Then then fill that tab with text.
I have looked at the include/product_tabs.php and skin/common_files/customer/tabs.tpl I know html, css, javascript, but I don't know PHP but do roughly understand whats going on in the product_tabs.php. @cflsystems you mentioned that you could use html and css to add a tab, my question is wouldn't that be hard coding it? What file would I use to hardcode this new tab? Thanks! |
|||||||
#8
|
|||||||||
|
|||||||||
![]() Yes you hard coded in skin/customer/ui_tabs.tpl.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#9
|
|||||||
|
|||||||
![]() Oh ok great thanks, I actually figure it out.
I used this product_tabs.php. I then created my own template file. I know this is just a jerry-rigged way of doing it, but it does work. Can you help me with the first line of code? PHP Code:
As you can see I just copied the send to friend code and replaced a few things, most importantly I change Enabled == 'N', because I will not enable this. PHP Code:
To see the final outcome, have a look at this one particular product. http://www.sunraysales.com/xcart/product.php?productid=11382&cat=174&page=1 PS: I have over 11,000 products, so the extra product details have only been applied to the first 500 products. Please let me know what you think? Thanks. |
|||||||
#10
|
|||||||
|
|||||||
![]() link is not working, i would like to see an example
__________________
X-Cart Gold 4.4.1 |
|||||||
|
|||
X-Cart forums © 2001-2020
|