Hide Out of Stock message

Open to all! Ask other shopowners for help.
Post Reply
FlagShipper
Posts: 3
Joined: Thu Aug 20, 2026 12:56 am
Phoenix Version: v1.1.0.7

Hide Out of Stock message

Post by FlagShipper »

I don't keep tabs on stock (I know, bad), I have Check Stock Level set to False, but it still shows all of my items with an "Out Of Stock" message. I can see a negative number of stock, so I know how many of each item I've sold. Is there another way to check how many of an item has been sold? Just upgraded to CEPhoenix so still getting used to where everything is coming from osc2.3


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Hide Out of Stock message

Post by burt »

I think you are asking to remove mentions of Stock across your site?

Can you say on what pages you see this?

One would likely be shopping_cart.
Your Admin > Modules > Content > {select "Out of Stock Notice" } > Uninstall.

Any others?

--

ps, you can set your Version of Phoenix in your profile...
FlagShipper
Posts: 3
Joined: Thu Aug 20, 2026 12:56 am
Phoenix Version: v1.1.0.7

Re: Hide Out of Stock message

Post by FlagShipper »

v1.1.0.7

I have modules>content>Out Of Stock Notice set to false but it's still showing Out of Stock on index, product_info, etc.

I uninstalled the module via modules>content>out of stock notice> Remove Module and it's still showing the message
FlagShipper
Posts: 3
Joined: Thu Aug 20, 2026 12:56 am
Phoenix Version: v1.1.0.7

Re: Hide Out of Stock message

Post by FlagShipper »

modules>layout>product info>stock set to false removed the message from product_info but it's still showing on the main "latest products" on the front page
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Hide Out of Stock message

Post by burt »

That is in the product_card component.

Place a COPY of
/templates/default/includes/components/product_card.php
Into
/templates/override/includes/components/product_card.php

In this *new* file, remove:

Code: Select all

<span>·</span>
<span><?= ($product->get('in_stock') <= 0 ? IS_PRODUCT_OOS : IS_PRODUCT_IIS); ?></span>
--

See Example 1 on this page:
https://phoenixcart.org/phoenixcartwiki ... a_Template
for a basic overview of a similar concept.
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply