How to display a brand is out of stock

  • Posts: 7
  • Thank you received: 0
12 years 2 months ago #64707

Currently when you add a brand/manufacturer with no products attached to it and you either do a search by brand or shop by brand you will end up with a completely blank page.
Does anyone know how to create a 'currently out of stock' message for this?

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 2 months ago #64772

In the hikashop options screen of the hikashop category listing menu that you entered for "menu" option of the hikashop category search plugin, you can turn on the option "show description" and then potentially enter your text in the description of the brand.

Otherwise, you would have to edit the file "listing" of the view "product" via the menu Display->Views and add some code to handle that message.

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
12 years 2 months ago #64817

Thanks, I see where you are coming from with this. But it looks like I'll need to be writing code. I'm trying to automate it as much as possible, I need the 'out of stock' message to show up when I run out of a brand.
Any other ideas on this?

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 2 months ago #64819

Then you should add such custom code as I explained:
<?php if(empty($this->rows)) echo 'no products found'; ?>

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
12 years 2 months ago #64822

Sorry, I have basic programming skills so I'm a bit stupid on this.
I'd need to insert that code in the front-end css file (Somewhere around the 'product listing' code) in the General Display Options area of the main configuration page correct?

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 2 months ago #64917

That is not CSS but PHP.
As I said in a previous message, you have to edit the file "listing" of the view "product" via the menu Display->Views and you can add that code at the bottom.

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
12 years 2 months ago #64954

Oops, sorry about that. :unsure:

Got it now, works perfectly, thanks a lot for the assist.

B)

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum