Jump to content

How Do We Remove Out Of Stock Items From All Displays


capk1

Recommended Posts

Hi,

I'm wondering how to get our shop to automatically remove items that are out of Stock from the  Best Seller Section. We want to maintain the SEO
so we don't want to disable it. We want to show up only on its home page.. Any ideas?? Thanks in advance

Edited by capk1 (see edit history)
Link to comment
Share on other sites

In module ps_bestsellers/views/templates/hook/ps_bestsellers.tpl.

original:

Quote

{foreach from=$products item="product"}

{include file="catalog/_partials/miniatures/product.tpl" product=$product}

{/foreach}

New:

Quote

{foreach from=$products item="product"}

{if $product.quantity > 0}

{include file="catalog/_partials/miniatures/product.tpl" product=$product}

{/if}

{/foreach}

 

Link to comment
Share on other sites

3 minutes ago, Guest said:

In module ps_bestsellers/views/templates/hook/ps_bestsellers.tpl.

original:

New:

 

Haha... Okay. Thank you so much!!
I don't speak that language at all. I'll give it to my developer. Btw, will this remove all out of 
stock products from showing on any of the display modules on the home page?

Link to comment
Share on other sites

15 hours ago, Guest said:

I gladly helped.
You can rate my post or even more posts by clicking on the gray heart below my post.

Hi again Guest,

My developer says he tried it and it doesn't work. Do you possibly have any more ideas? It's so annoying to have an out of stock
product display as a bests seller  :(  See the attached convo between me and my developer please

Out of Stock.jpeg

Link to comment
Share on other sites

Happy.
Unfortunately, I cannot advise on this.
The developer should deal with this problem.
For me, editing all modules on the main page would be a question of up to an hour, because I would have to trace in your appearance and write override modules.

I'm sorry, but it's not my chance to advise anyone without knowing Prestashop and its features.

Link to comment
Share on other sites

7 hours ago, Guest said:

Happy.
Unfortunately, I cannot advise on this.
The developer should deal with this problem.
For me, editing all modules on the main page would be a question of up to an hour, because I would have to trace in your appearance and write override modules.

I'm sorry, but it's not my chance to advise anyone without knowing Prestashop and its features.

Hi,

I'm sorry, I don't understand. Are you saying that the developer doesn't know how to do it and therefore you cannot offer guidance?

Link to comment
Share on other sites

Hi, 

I get that there's no one that can help me if the developer doesn't know how to do it but I put all the
information and links for our theme below anyway just in case you come up with any ideas. Maybe our theme
just can't do it. Thanks so much for all the input you provided Guest!! :D

Our theme is warehouse version 4.2.1 Designed by IQIT COMMERCE
https://iqit-commerce.com/xdocs/warehouse-theme-documentation/
https://themeforest.net/item/warehouse-responsive-prestashop-16-theme-blog/3178575

Link to comment
Share on other sites

Thank you.

I see.
If you use the Themeforest template and its blocks to render the modules, this may be a problem.
I sent a message.

Link to comment
Share on other sites

As I can see, the standard block best sellers overrides the template. Unfortunately.
Editing instructions are for default module and template.
As I wrote, I cannot advise you this way.
I would have to have approaches.

Link to comment
Share on other sites

1 minute ago, Guest said:

As I can see, the standard block best sellers overrides the template. Unfortunately.
Editing instructions are for default module and template.
As I wrote, I cannot advise you this way.
I would have to have approaches.

Well, all your efforts have been GREATLY appreciated Guest! Thanks for trying! :)

Link to comment
Share on other sites

When you take a zip file template you bought, it certainly includes folder modules. There will be foreign modules in this folder.
These modules modify the template and overwrite the original modules.
Do you understand what the problem is?

Link to comment
Share on other sites

1 hour ago, Guest said:

I do not have your template. During today I will be demonstrating in my test shop that the code editing works.

OMG! You Won't believe this! Just as I wrote you my last message. I looked at the site one more time and discovered
that IT CAN be removed from Best Seller and everywhere else by Going into Options>Visibility and dropping down
to Nowhere! Crazy!! It's perfect because I only want the benefit of SEO but not to be shown anywere else! See Attached!! :D

Remove From Best Seller Snapshot.jpeg

Link to comment
Share on other sites

1 minute ago, Guest said:

I know 😉
It won't work without editing the codes.

No, what I'm saying is IT DID WORK! I wanted the page to still be active for SEO search engines to find it but didn't want it to show on any of the modules and it doesn't with that Nowhere drop down shown in the attached above! :D Understand? This case is solved! :)

 

Link to comment
Share on other sites

Great. I've been sticking to the fact that you want to hide Top Sellers products. If I looked at the title of the topic, I would advise you as much as you did. ;-)
Good work.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...