| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
#1
|
|||||||
|
|||||||
Tabbed Product Menu
Hello,
I'm using the Ultimate Tabbed Product Menu from Xcartmods.co.uk (http://www.xcartmods.co.uk/x-cart-ultimate-tabbed-product-menu/). It is working great. But I would like to add some logic to how the tabs are displayed. If a tab does not contain any data I would like it to not show up. I have an order of how I'd like my tabs to show: Product Specs (an Extra Field), Related Products, Reccomended Products, Reviews, Send to Friend, and Request Info. Product Specs, Related Products, and Reccomended products have the potential of being empy. If there is no data in Product Specs, I'd like that tab not to show, and the Related Products tab to show up instead, and so on. I have attempted this with some if statements but it doesn't seem to be working for me. (here is an example of how it is currently showing up: http://development.partssystems.com/truck-parts/nylon-corrugated-tubingsplit-loom.html) If anyone can give me some tips on the code I'd be most appreciative. Code:
|
|||||||
#2
|
|||||||
|
|||||||
Re: Tabbed Product Menu
Your dev site isn't showing up for me, drop me a line and I'll try and help.
__________________
xcartmods.co.uk |
|||||||
#3
|
|||||||
|
|||||||
Re: Tabbed Product Menu
Maybe this will help you... note the div id="tcontent1", tcontent2, etc...
Quote:
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Tabbed Product Menu
I have created extra tabs and need to know specifically how to display an extra field in each tab, not all the extra fields at once.
Any help greatly appreciated.
__________________
"The more you know - the less you pay" Various websites using 4.66 Pro & 5 |
|||||||||
#5
|
|||||||
|
|||||||
Re: Tabbed Product Menu
So far I have gotten a great response from xcartmodscouk. I display an extra field in one of my tabs. The extra fields are numbered, so you need to call out the correct one. To add my specifications extra field I used this: {$extra_fields[0].field_value}. Hope that helps.
|
|||||||
#6
|
|||||||||
|
|||||||||
Re: Tabbed Product Menu
Thanks Liz, you are my new best friend
To clarify for others the following goes in the second half of the tabs.tpl file: Please note that your first extra field would have [0] in it, here [2] is my third extra field. <div id="tcontent12" class="tabcontent"> {$extra_fields[2].field_value} </div> Easy when you know how but frustrating when you don't.
__________________
"The more you know - the less you pay" Various websites using 4.66 Pro & 5 |
|||||||||
#7
|
|||||||
|
|||||||
Re: Tabbed Product Menu
I'm trying to just get the Tabbed Product Menu installed correctly but my attempts have not been successful. Could someone assist me with the installation of the menu? Much obliged.
__________________
x-cart-4.1.2 Linux / PHP / mySQL Chicago, IL USA |
|||||||
#8
|
|||||||
|
|||||||
Re: Tabbed Product Menu
I'm also using Phils Product Tabbed Menu (Great Mod!) and I was wondering if it is possible to place the Product Short Desc, Options, and Add to Cart button in a tab and have the tabs sit nice next to the item picture.
Anyone know if this can be done, here is a picture to try and clarify more: http://www.readytocover.com/tabbed.jpg
__________________
x-cart 4.1.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|