X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   DIY Tabbed Content Menu for Product Page (https://forum.x-cart.com/showthread.php?t=11094)

Jerrad 01-03-2005 12:16 AM

Thanks alot soleaq - that works great!!
Not bad for a "newb"... :wink:

Any ideas yet how to deal with the IF statements?
I think it's very important that the tabs without content
don't show so that customers don't click on empty tabs.

Thanks again for sharing your code!

markwhoo 01-03-2005 12:52 AM

PhilJ,

I have a question for you or anyone sle posting in this thread.

I am trying to implement a copy of Boomers Product Enquiry and his send to friend add ons into this script.

Boomer has these scripts set up in stages so that the fiorst stage is the base email setting, the second would show what the email will appear as and the third is letting customer know if the email was sent successfully.

For some reason, when I add these into the tab script, it jumps straight to the sent notification of the add on as if it was already completed with info added etc.

Any idea what I may be doing wrong here?

I love the tab script, it works great. Problem is after I add the two email scripts.

I know this can be done, I have seen it in action, just don't know the scripts well enough to know what I am missing here.


Thanks to all that may help. 8O

PhilJ 01-03-2005 03:50 AM

markwhoo, I wouldn't advise using those mods within the tabs mod. The 'send to friend' in v4 should work fine in the tabs. I can help you with the 'enquire about this product'. PM if interested.

soleag 01-03-2005 06:33 PM

Quote:

Originally Posted by Jerrad
Thanks alot soleaq - that works great!!
Not bad for a "newb"... :wink:

Any ideas yet how to deal with the IF statements?
I think it's very important that the tabs without content
don't show so that customers don't click on empty tabs.

Thanks again for sharing your code!


Thanks for the kind words! Thanks PhilJ for the original code!

Just a note, someone sent me a message asking how to turn the "persistence" on the tabs off.

In tabs.js, find the line below and change "true" to "false"

Code:

//Dynamicdrive.com persistence feature add-on
/////////////////////////////////////////////

var enablepersistence=true //true to enable persistence, false to turn off (or simply remove this entire script block).


This will turn persistence off, so when your customer hits a new product page, the default tab you selected at the top of the tabs.js file will show.

I have it set so the "Overview" tab always shows first.

bluecat 01-03-2005 11:36 PM

This might sound silly, but will it hurt search engine ranking because the recommended product list for example is hidden? Thanks.

markwhoo 01-04-2005 12:16 AM

Quote:

Originally Posted by bluecat
This might sound silly, but will it hurt search engine ranking because the recommended product list for example is hidden? Thanks.


Actually I do not think so.

This mod will work in php base AND it is functional as HTML, so it will just be another link as it already is on the main page.

Just looks cleaner is all. Pages will load faster, switching between tabs is lightening fast.

great addition I think

ghhoz 01-04-2005 05:15 AM

Thanks for sharing a great mod. Works fine for me

Cheers

bluecat 01-04-2005 07:43 AM

Quote:

Originally Posted by markwhoo
Quote:

Originally Posted by bluecat
This might sound silly, but will it hurt search engine ranking because the recommended product list for example is hidden? Thanks.


Actually I do not think so.

This mod will work in php base AND it is functional as HTML, so it will just be another link as it already is on the main page.

Just looks cleaner is all. Pages will load faster, switching between tabs is lightening fast.

great addition I think


Thank you. :)

dalmuti 01-04-2005 08:52 AM

Quick Question about adding product descriptions.

All my descriptions are set in the "short description".

Instead of using this:

Quote:

{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{ /if}

Would it be this:
{if $product.descr ne ""}{$product.descr}{else}{/if}

I would like to add the short description to the product summary tab.....anyone give me a hint. I am just learning.

Thanks,

Louise

PhilJ 01-04-2005 09:00 AM

Code:

{$product.descr}

will suffice :)


All times are GMT -8. The time now is 03:10 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.