View Single Post
  #278  
Old 06-05-2012, 08:12 AM
 
jazzmang jazzmang is offline
 

Member
  
Join Date: Mar 2012
Posts: 12
 

Default Re: X-Cart Ability Template v4.4.x

Quote:
Originally Posted by elmirage001
I see this too in my set up with product above and tabs below. Also if you select a tab that is available for one product and then select a product that does not have that tab option then you see the available tabs with nothing displayed below the tabs. Hopefully Phil will have an easy fix.

I found a quick fix to this.

The cookie active_ptab was set to expire at 30 days. I set the cookie to expire immediately and it more or less works.

This change is on line 176 of common.js, simple change {expires 30} to {expires 0}.

Note I'm not 100% sure of all the unintended consequences of this but it works as far as I can tell. Not sure why you'd need 30 days on remembering an active tab, much less more than possibly a few seconds. Perhaps PhilJ can enlighten us or let us know if this will cause other issues.

But as far as I can tell, this at least makes the tabs usable with the related and upsell/other products.
__________________
Version 4.5.0 with Ability Template v1.052 (modified)
LAWP - PHP 5.3.29 (patched) - MySQL - 5.0.96 Community - suPHP
Reply With Quote