Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

SOLVED: How can I tell user there are no articles in category.
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: SOLVED: How can I tell user there are no articles in category.

SOLVED: How can I tell user there are no articles in category. 10 years, 1 month ago #17367

  • clarksonfish
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Hi SmartAddons.

I'm very happy with your module so far. Here's my question.

I have a links on the main menu to each category of article. When a user clicks, thy go to a page where your module is showing all the articles in a list and that's great. But when a user clicks on a category that currently has 0 articles, the module only seems to show the loading animation indefinitely. How can I have a default message that the module displays to essentially say "there are currently no articles in this category?"

Thank you!
Last Edit: 10 years, 1 month ago by clarksonfish. Reason: edited subject to add "SOLVED:"
The topic has been locked.

Re: How can I tell user there are no articles in category. 10 years, 1 month ago #17432

  • usersmart1
  • OFFLINE
  • Moderator
  • Posts: 1364
  • Karma: 20
Dear Stanley Andrucyk

The cause may be due to conflict jquery, if possible, could you send us your site FTP so that we could check directly.

Thanks!
The topic has been locked.

Re: How can I tell user there are no articles in category. 10 years, 1 month ago #17455

  • clarksonfish
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
OK yeah sure. Those deets are attached.

But please also help me understand: what is supposed to happen or be displayed in an SJ Content Responsive Listing module when a category with no articles in it is requested of SJ Content Responsive Listing?

Thank you. I appreciate the support.
The topic has been locked.

Re: How can I tell user there are no articles in category. 10 years, 1 month ago #17463

  • clarksonfish
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
I don't know how to write code but maybe there could be an if then statement added somewhere similar to this:

IF
<div class="respl-items"> has no SJ Content Responsive Listings for the category specified

THEN
<div class="respl-loading"></div> should be replaced with a <div class="respl-item>There are no items in this category at this time.</div>
The topic has been locked.

Re: How can I tell user there are no articles in category. 10 years, 1 month ago #17467

  • usersmart1
  • OFFLINE
  • Moderator
  • Posts: 1364
  • Karma: 20
Dear Stanley Andrucyk,

We edited file (/core/helper.php) at this code:

// default select
				$catidpreload = $params->get('catid_preload');
				$selected = false;
				$_list = array();
				foreach ($retur['categories'] as $cat){
					if($cat->count > 0) {
						if ( $cat->id == $catidpreload ){
							$cat->sel = 'sel';
							$selected = true;
						}
						$_list[$cat->id] = $cat;
					}
				}


We fixed this issue. Please check your site again.

Thanks!
The topic has been locked.

Re: How can I tell user there are no articles in category. 10 years, 1 month ago #17494

  • clarksonfish
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
THIS IS AMAZING! THANK YOU FOR YOUR SUPPORT!

The topic has been locked.
  • Page:
  • 1
Time to create page: 0.24 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.

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
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes