Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Opencart error after adding more than 5 sub-categories

Featured Replies

Hello everyone

I am having trouble with Opencart 1.5.6.1.

 

whenever I add more than 5 sub-categories and if I click on the parent category hen I get the following error (also see attached screenshot):

 

Notice: Undefined variable: category in/homepages/27/xxxxxxx/htdocs/www.xxxxx.com/catalog/view/theme/xxxxxxx/template/product/category.tpl on line 60
I have tried clean install, on ftp, on localhost, with sample data and without sample data and yet getting the same error.
Below is the line 59 to 62 area in my category.tpl file:
<?php for ($i = 0; $i < count($categories) ;) {
$name = str_replace("(", '<span class="">(', $category['name'] );
$category['name'] = str_replace(")", ')</span>', $name);
?>

 

 

Please advice

 

thank you

 

Regards

 

post-58031-0-92833200-1391285838_thumb.jpg

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.