Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Remove attributes with multiple values from Specification Tab?

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 11-01-2014, 05:45 AM
  Dr. Bogger's Avatar 
Dr. Bogger Dr. Bogger is offline
 

Member
  
Join Date: Oct 2014
Location: Saratoga Springs, NY
Posts: 16
 

Default Remove attributes with multiple values from Specification Tab?

Hi Everyone!

How would I go about editing the tabs on the product page, so that it doesn't display attributes that contain multiple values on the "Specification" Tab?

I like to add Attributes for people to select options, such as to allow them to select a "Color", however, I don't want those options to display under the Specification Tab, as it just adds too much clutter.

=================

Also, if ALL the attributes for a product are "multiple", then don't display the Specification Tab at all.

How would I go about doing this?
__________________
X-Cart Version: 5.2.3
Reply With Quote
  #2  
Old 11-03-2014, 03:30 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Remove attributes with multiple values from Specification Tab?

Bogger, I would like to know how to do this as well. My problem is that we have almost 10 Attributes or Product Variants per product. IMO the Specs Tab is useless anyway, I'd much rather understand how to turn it off.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #3  
Old 11-03-2014, 04:34 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Remove attributes with multiple values from Specification Tab?

Hi guys!

Do I understand you correctly that you simply want to hide all attributes that have multiple values from displaying in the Specification tab?

Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #4  
Old 11-03-2014, 04:48 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Remove attributes with multiple values from Specification Tab?

Personally, I'd like to get rid of the Specifications Tab all together. If all it does is list the Product options over again that are right above it, I see no value in it cluttering up the customer experience. I think Bogger might be looking for a more specific option.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #5  
Old 11-03-2014, 07:16 AM
  Dr. Bogger's Avatar 
Dr. Bogger Dr. Bogger is offline
 

Member
  
Join Date: Oct 2014
Location: Saratoga Springs, NY
Posts: 16
 

Default Re: Remove attributes with multiple values from Specification Tab?

Either method will work for me, however, the specifications tab might be useful down the road if you ever wanted to use the "Product Filter" module, so that was why I was looking to remove just the attributes that have "multiple" values, which would still allow for future plans to use other modules.

Attributes with single values are not gonna show up as a "Select Box/Option" anyways, so it's pointless to remove the tab all together, as it would be hidden automatically if there are no "single value" attributes.

Tony, You are understanding me correctly. Is there a way I could do this?
__________________
X-Cart Version: 5.2.3
Reply With Quote
  #6  
Old 11-03-2014, 07:19 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Remove attributes with multiple values from Specification Tab?

I'll agree with that, if there's some way to hide all or Multiples, maybe that's the better road, instead of removing it all together.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #7  
Old 11-03-2014, 08:43 AM
  Dr. Bogger's Avatar 
Dr. Bogger Dr. Bogger is offline
 

Member
  
Join Date: Oct 2014
Location: Saratoga Springs, NY
Posts: 16
 

Default Re: Remove attributes with multiple values from Specification Tab?

Tony, any ideas?
__________________
X-Cart Version: 5.2.3
Reply With Quote
  #8  
Old 11-07-2014, 08:24 AM
  Dr. Bogger's Avatar 
Dr. Bogger Dr. Bogger is offline
 

Member
  
Join Date: Oct 2014
Location: Saratoga Springs, NY
Posts: 16
 

Default Re: Remove attributes with multiple values from Specification Tab?

Does anyone know how to do this?
__________________
X-Cart Version: 5.2.3
Reply With Quote
  #9  
Old 11-10-2014, 11:16 AM
  Dr. Bogger's Avatar 
Dr. Bogger Dr. Bogger is offline
 

Member
  
Join Date: Oct 2014
Location: Saratoga Springs, NY
Posts: 16
 

Default Re: Remove attributes with multiple values from Specification Tab?

Somebody? Anybody?
__________________
X-Cart Version: 5.2.3
Reply With Quote
  #10  
Old 11-11-2014, 07:05 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Remove attributes with multiple values from Specification Tab?

Hi guys!

Sorry for my late reply.

OK, let us start with a simple solution: removal of entire Specification tab. You can apply it as follows:
1) Create a simple module: http://kb.x-cart.com/display/XDD/Step+1+-+creating+simplest+module
2) In this module decorate the defineTabs() method of the \XLite\View\Product\Details\Customer\Page\APage class and define it like this:

PHP Code:
protected function defineTabs()
    {
        
$list = array();

        
$this->defineDescriptionTab($list);

        return 
$list;
    } 

Articles that will help you are here:
http://kb.x-cart.com/display/XDD/X-Cart+classes+structure+and+namespaces
http://kb.x-cart.com/display/XDD/Step+3+-+applying+logic+changes

Please, let me know if it helps.

Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:29 AM.

   

 
X-Cart forums © 2001-2020