I have tried everything but under Featured Items the products that display for the 2 tabs I have set up are the same and are not specific to the tabs. They are from the total product list.
There are 2 tabs.. Kezi’s Patterns and Arlene’s Patterns. Both show the same thing and the products are not from the correct categories but instead look like all products.
I have IDs correct and have gone over the coding a number of times. I must be missing something.
Thanks,
Paul
6 answers
Seem you are use old version of Jm ProductSlider extension.
Please PM me the FTP credentials of your site.
I will check further & resolve this issue for you.
I am having the same issue. All the tabs show same products irrespective of the category ids. Can you please let me know the solution once you know
Will Let you know. They are working on it. If you look at the Kidsland demo it is having the same issue also.
I have sent PM to you. Please check it. The issue of your website was resolved.
Please open the file at /app/code/local/joomlArt/JmProductsSlider/Block/List.php
and find to the block code:
PHP Code:
function addCategoryIdsFilter($products_collection){
$categories_to_filter = explode(",", $this->_config['catsid']);
$ctf = array();
foreach ($categories_to_filter as $k => $cat) {
$ctf[]['finset'] = $cat;
}
$products_collection->joinField('category_id', 'catalog/category_product', 'category_id', 'product_id = entity_id', null, 'left')
->addAttributeToFilter('category_id',array($ctf))->groupByAttribute('entity_id');
}
then replace it with block code bellow:
PHP Code:
public function addCategoryIdsFilter(&$collection)
{
$categoryIds = explode(",", $this->_config['catsid']);
if(count($categoryIds) == 1)
{
foreach ($categoryIds as $catId) {
$categoryModel = Mage::getModel('catalog/category')->load($catId);
$collection->addCategoryFilter($categoryModel); //category filter
}
}
else{
$ctf = array();
foreach ($categoryIds as $catId) {
$ctf[]['finset'] = $catId;
}
$collection->joinField('category_id', 'catalog/category_product', 'category_id', 'product_id = entity_id', null, 'left')
->addAttributeToFilter('category_id',array($ctf))->groupByAttribute('entity_id');
}
}
Let do it to resolve the issue of your site.
Worked! Sent you a PM about the other similar issue of having non-sales items in the sales drop down menu. Sounds like a catid problem also. Thanks.
Thanks. Worked for me as well
This question is now closed