View Single Post
  #1  
Old 04-11-2014, 06:46 AM
 
Mark N Mark N is offline
 

Senior Member
  
Join Date: Sep 2011
Posts: 121
 

Default Related Products - List View?

Using the example given by Tony on the webinar yesterday (thanks for that Tony!), trying to change the default view for related products from grid to list view. Here's what I have done:

Created in my own theme XLite\Module\Alinc\AlincTheme\View\ItemsList\Upsel lingProducts\UpsellingProducts.php with the following code:

PHP Code:
<?php

namespace XLite\Module\Alinc\AlincTheme\View\ItemsList\UpsellingProducts;

/**
 * Abstract widget
 */

abstract class UpsellingProducts extends XLite\Module\XC\Upselling\View\ItemsList\UpsellingProducts implements \XLite\Base\IDecorator
{
    protected function 
defineWidgetParams()
    {
        
parent::defineWidgetParams();

        
$this->widgetParams[static::PARAM_DISPLAY_MODE] = new \XLite\Model\WidgetParam\Set('Display mode', static::DISPLAY_MODE_TABLEtrue, array());
    }
}

That said, it doesn't seem to be working. Am I going about this all wrong?

-Mark
__________________
X-Cart Gold Plus 4.6.5
Mods - WebsiteCM Dynamic Product Tabs, Smack Digital CDSEO Pro, AlteredCart Smart Search, AlteredCart One Page Checkout, Cart Works Power Filter, Firetank Software Feed Manager
Reply With Quote