Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ajax Tabs (sleektabs Class)


Recommended Posts

Hi all,

 

I found a nice php class that creates ajax tabs. The author calls it Sleektabs.

 

Preview it here

 

Download it here

 

I would like to add this to product_info.php.

 

I'm no expert at coding but close to getting this to work. Here is what I did.

 

1) added sleektabs.php to the includes/classes folder.

 

2)Then in file application_top.php I added this:

 

// include Sleektabs class

require_once(DIR_WS_CLASSES . 'sleektabs.php');

 

 

3) The next step is to add the code from index.php into product_info.php. This is where I am a little rusty. It works except the tabs say Loading… and do not load, so surely i've messed something up.

 

If someone would like to help me on this and / or make a contribution, that would be great. Give all credit to author of course! This could add alot of information to product_info or any other page in an easy way. What would be even better is if the tabs could be data driven. That might be a stretch though.

 

Thanks to anyone who would like to help!

 

Steve

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...