Happy Children's Day 2020! Up to 50% OFF Storewide!
0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

Welcome, Guest
  • Page:
  • 1

TOPIC: slideshow-cat.php error

slideshow-cat.php error 6 years, 1 month ago #18486

  • avreliy
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
After I installed the template use quickstart. I rusificate my site and after that got "Warning: Invalid argument supplied for foreach() in Z:\home\maraz.ru\www\templates\sj_appstore_hitech\html\com_virtuemart\category\slideshow-cat.php on line 18" and blank page.
Pls help to resolve.

Re: slideshow-cat.php error 6 years, 1 month ago #18514

  • admin
  • OFFLINE
  • Administrator
  • Posts: 1081
  • Karma: 14
Hello,

Please open templates/sj_appstore_hitech/html/com_virtuemart/category/slideshow-cat.php file, find this code:

foreach($this->category->children as $categoryID){
$category_filter .= ",'".$categoryID->virtuemart_category_id."'";
$query = "SELECT c.category_child_id as cat_child
FROM #__virtuemart_category_categories as c
WHERE c.category_parent_id='".$categoryID->virtuemart_category_id."'
";
$db->setQuery($query);
$id = $db->loadObjectList();
if($id){
foreach($id as $id){
$category_filter .= ",'".$id->cat_child."'";
}
}
}


and change to:
if (sizeof($this->category->children) > 0) {
foreach($this->category->children as $categoryID){
$category_filter .= ",'".$categoryID->virtuemart_category_id."'";
$query = "SELECT c.category_child_id as cat_child
FROM #__virtuemart_category_categories as c
WHERE c.category_parent_id='".$categoryID->virtuemart_category_id."'
";
$db->setQuery($query);
$id = $db->loadObjectList();
if($id){
foreach($id as $id){
$category_filter .= ",'".$id->cat_child."'";
}
}
}
}


Thanks
Join our Clubs to download our extensions and templates

Re: slideshow-cat.php error 6 years, 1 month ago #18515

  • admin
  • OFFLINE
  • Administrator
  • Posts: 1081
  • Karma: 14
Hello,

Please open templates/sj_appstore_hitech/html/com_virtuemart/category/slideshow-cat.php file, find this code:

foreach($this->category->children as $categoryID){
	$category_filter .= ",'".$categoryID->virtuemart_category_id."'";
	$query = "SELECT c.category_child_id as cat_child
			  FROM #__virtuemart_category_categories as c
			  WHERE c.category_parent_id='".$categoryID->virtuemart_category_id."'
	";
	$db->setQuery($query);
	$id = $db->loadObjectList();
	if($id){
		foreach($id as $id){
			$category_filter .= ",'".$id->cat_child."'";
		}
	}
}


and change to:
if (sizeof($this->category->children) > 0) {
	foreach($this->category->children as $categoryID){
		$category_filter .= ",'".$categoryID->virtuemart_category_id."'";
		$query = "SELECT c.category_child_id as cat_child
				  FROM #__virtuemart_category_categories as c
				  WHERE c.category_parent_id='".$categoryID->virtuemart_category_id."'
		";
		$db->setQuery($query);
		$id = $db->loadObjectList();
		if($id){
			foreach($id as $id){
				$category_filter .= ",'".$id->cat_child."'";
			}
		}
	}
}


Thanks
Join our Clubs to download our extensions and templates
  • Page:
  • 1
Time to create page: 0.40 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.
Happy Children's Day 2020! Up to 50% OFF Storewide

Suggested Posts

(/)
Result not found!

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes