X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Remove attributes with multiple values from Specification Tab? (https://forum.x-cart.com/showthread.php?t=70396)

Dr. Bogger 11-01-2014 05:45 AM

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?

minfinger 11-03-2014 03:30 AM

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.

tony_sologubov 11-03-2014 04:34 AM

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.

minfinger 11-03-2014 04:48 AM

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.

Dr. Bogger 11-03-2014 07:16 AM

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?

minfinger 11-03-2014 07:19 AM

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.

Dr. Bogger 11-03-2014 08:43 AM

Re: Remove attributes with multiple values from Specification Tab?
 
Tony, any ideas?

Dr. Bogger 11-07-2014 08:24 AM

Re: Remove attributes with multiple values from Specification Tab?
 
Does anyone know how to do this?

Dr. Bogger 11-10-2014 11:16 AM

Re: Remove attributes with multiple values from Specification Tab?
 
Somebody? Anybody?

tony_sologubov 11-11-2014 07:05 AM

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.


All times are GMT -8. The time now is 03:45 PM.

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