View Single Post
  #9  
Old 05-08-2014, 04:52 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

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

Default Re: Custom Product Tabs

Hi Mark!

Sorry for not responding here for a long time. Happy to hear that you achieved success with this mod!

Quote:
Originally Posted by Mark N
How can I pull the attribute value in the tpl so I can use HTML in the field? I tried using {a.value:htmlspecialchars}, {a.value:h} and [a.value:loadHTML} but none of these work.

Actually, {a.value:h} should be working. Could you please try it one more time and let me know if the problem is still there?

Quote:
Right now the extended specs and where used attributes still show up on the standard "Specification" tab, how can I suppress this?

In this case, you need to add the getAttributesWidgets() function into your View/Product/Details/Customer/Page/APage.php script inside the module and then delete needed attributes in this method.

It will be something like this:
PHP Code:
protected function getAttributesWidgets()
    {
        
$widgets parent::getAttributesWidgets();

        foreach (
$widgets as $widget) { 

            foreach (
$widget->getAttrList() as $attribute) { 
                
// defining what should be left in the $attributeWidgets
                // storing result in $result var
            
}
        }

        
$this->attributesWidgets $result;

        return 
$this->attributesWidgets;
    } 

and that is it, after that it should be working as you need.
Reply With Quote