View Single Post
  #8  
Old 04-14-2014, 06:17 AM
 
Mark N Mark N is offline
 

Senior Member
  
Join Date: Sep 2011
Posts: 121
 

Default Re: Related Products - List View?

Mike,

Ok, so I can say that in my tests at least the module is being copied properly, but not to where you are looking - it is in var/run/classes/Xline/Module/Alinc/AlincTheme/View/ItemsList/UpsellingProducts/UpsellingProducts.php

that said, it's not running it, at least as far as I can tell. The copy as it appears in the var/run shows up as:

PHP Code:
<?php

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

/**
 * Abstract widget
 */
abstract class UpsellingProducts extends \XLite\Module\XC\Upselling\View\ItemsList\UpsellingProductsAbstract 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());
    }
}

And it is in fact turning it into UpsellingProductsAbstract when it compiles.

Not sure why your code isn't making it at least that far,maybe an error in your Main.php? Attaching mine here.

And like yourself I couldn't find anyone who has made a module that extends another module, although obviously there will be cases where people want to do exactly that.
Attached Files
File Type: php Main.php (2.4 KB, 144 views)
__________________
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