View Single Post
  #69  
Old 02-16-2015, 06:19 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

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

Default Re: All Products on front page, similar to featured products

As a first step, do the following:
1) Remove the <X-Cart>/classes/XLite/Module/Tony/ProductsDemo/View/ItemsList/Product/Customer/ACustomer.php file as it does not do anything and it has Parse errors
2) Inside the \XLite\Module\Tony\ProductsDemo\View\ItemsList\Pro duct\Customer\AllProducts class replace this piece of code:
PHP Code:
protected static function getWidgetTarget()
    {
        return 
'all_products';
    } 
with the next one:
PHP Code:
protected static function getWidgetTarget()
    {
        return 
'main';
    } 

After that your products will be displayed on home page, while they will still have pagination and sorting options.

Please, let me know if it works as expected to you.

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