Product Slider best_buy issue

Hi,
 
when i select the best_buy option i always get the lates products.
Can you please check this.

Regards
Armindo

  1. Hi,i did more checking on this, and it seems that only simple products are being displayed.The store as a lot of configurable products, so this should be also included in the best_buy feature.Regards

15 answers

Profile photo of Mall Staff 184060.00 $tone December 17, 2014
Public

Hi
I have created a backup and edited the file at /app/code/local/joomlArt/JmProducts/Helper/Data.php
To show a static Block with Best buy products, let’s use bellow code:

{{block type="joomlart_jmproducts/list" name="home.jmproducts.list" title="Novos Produtos <span>Melhores Ofertas</span>" template="joomlart/jmproducts/list.phtml" mode="best_buy"}}

Do it & let me know how it goes.

#1
Profile photo of Armindo Primariu 160.00 $tone December 17, 2014
Public

Hi,
 
when i try to use that i get an error message.
Using “latest” works fine, but with best_buy it not work.

The best_buy is the most ordered products or are some specific products?
Regards

#2
Profile photo of Mall Staff 184060.00 $tone December 18, 2014
Public

@Armindo Primariu: The best_buy is the hot sale products.

when i try to use that i get an error message.

There are any products have Custom Theme configured in back-end, To resolve this issue, please find & re-update the products with custom design in your back-end. I see your website load magento default theme when config Jm Products with best_buy mode.
Regards,
Mall

#3
Profile photo of Lara 4810.00 $tone December 19, 2014
Public

Hi Armindo,
We found that your product has a custom layout, this leads to the loading error. Please review the custom layout of product at your end first.
Regards,
Lara

#5
Profile photo of Armindo Primariu 160.00 $tone December 19, 2014
Public

Hi,
 
what do you mean with custom layout ? (i didn’t change nothing in the product layout in the backend)
Can you please make the changes in one product so i can see what needs to be done.
Regards

#6
Profile photo of Mall Staff 184060.00 $tone December 22, 2014
Public

@Armindo Pereira:
 
The culprit is that you’re using Magento 1.7 and “Use Flat Catalog Product’ mode was enabled in back-end of your site.  I have create a backup & edited the file at /app/code/local/joomlArt/JmProducts/Helper/Data.php The issue was resolved.
To show Best Buy Products in JmProducts you can use bellow code:

{{block type="joomlart_jmproducts/list" name="home.jmproducts.list" title="Novos Produtos Melhores Ofertas" template="joomlart/jmproducts/list.phtml" mode="best_buy"}}

I have edited the Block with identifier = “position-5” in your site as an example.
If possible, you should consider to upgrade to newer version of Magento for your site

Have a look & let me know if you need further help.

#8
Profile photo of Armindo Primariu 160.00 $tone December 22, 2014
Public

Hi,
 
it seems to be partially solved, since the best_buy isn’t showing the bestseller products, at least according to the orders and backend statistics.
Please check it
Regards
Armindo

#9
Profile photo of Mall Staff 184060.00 $tone December 23, 2014
Public

@Armindo Primariu: I can not log into back-end of your site now. As i said, the Best Buy mode was working fine in Jm Products in your site. please check it again.
Also, I see you are using Magento 1.7 you should upgrade the Magento core in your site to latest version.

#10
Profile photo of Armindo Primariu 160.00 $tone December 23, 2014
Public

Hi,
i did more checking on this, and it seems that only simple products are being displayed.The store as a lot of configurable products, so this should be also included in the best_buy feature.
 
Regards

#12
Profile photo of Mall Staff 184060.00 $tone December 24, 2014
Public

@Armindo Primariu:

There is a difference between the best seller products (reports) and the ones that are showed in the page,

Please note that, the Best Buy mode in Jm Products extension only shows Products in Front-End with attribute “Visibility” = “Catalog” or “Visibility” = “Catalog, Search” and with attribute Status = “Enabled”. This is a rule in Jm Products extension.
The Best Seller Block in Dashboard in Back-end only shows top 5 products with ordered qty descending & with all Visibility values & all Status values.
 
 

#13
Profile photo of Armindo Primariu 160.00 $tone December 24, 2014
Public

Hi,
 
please check the Product “Trela Mylord rosa” (SKU: 100684) -- its a configurable product and its one of the bestsellers.
This product should appear in the product slider, but it dont appear.
Please check and fix this.

Regards

#14
Profile photo of Mall Staff 184060.00 $tone December 25, 2014
Public

@Armindo Primariu:
If you want show more products as you want you need to open the PHP file at /app/code/local/joomlArt/JmProducts/Helper/Data.php
and find to the bellow filter condition (this is condition to check stock status & products status):

//Only get enabled products
Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection);
Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);

//Check in/out stock
if (Mage::helper('catalog')->isModuleEnabled('Mage_CatalogInventory')) {
Mage::getSingleton('cataloginventory/stock')->addInStockFilterToCollection($collection);
}

and replace it by bellow code:

//Only get enabled products
//Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection);
//Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);

//Check in/out stock
//if (Mage::helper('catalog')->isModuleEnabled('Mage_CatalogInventory')) {
//Mage::getSingleton('cataloginventory/stock')->addInStockFilterToCollection($collection);
//}

and use bellow code to show Best buy products in JM Products extension with a Static Block:

{{block type="joomlart_jmproducts/list" name="home.jmproducts.list" title="Novos Produtos Melhores Ofertas" template="joomlart/jmproducts/list.phtml" mode="best_buy" quanlity="12" quanlityperpage="12"}}

I have created a backup file & updated it for your site. Have a look & let me know how it goes.

#15

Please login or Register to Submit Answer

Written By

Comments