Forums / Upgrading to 2.x.x / POSM to not show out of stock items on product page

POSM to not show out of stock items on product page

Views: 678

Results 1 to 12 of 12
26 Mar 2026, 7:34 PM
#1
lsde avatar

lsde

New Zenner

Join Date:
Jul 2014
Location:
Delaware USA
Posts:
26
Plugin Contributions:
0

POSM to not show out of stock items on product page

Upgrading to 2.2.1 and trying to have POSM not show out of stock items on product page when using the dropdown menu for product selection. It currently displays all product variants whether in stock or out of stock.

Zen cart 2.2.1
PHP 8.4

Thanks in advance for any ideas.
Randy

27 Mar 2026, 12:02 AM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: POSM to not show out of stock items on product page

lsde:

Upgrading to 2.2.1 and trying to have POSM not show out of stock items on product page when using the dropdown menu for product selection. It currently displays all product variants whether in stock or out of stock.

Zen cart 2.2.1
PHP 8.4

Thanks in advance for any ideas.
Randy
A link to a product page for the site would help.

27 Mar 2026, 11:55 AM
#3
lsde avatar

lsde

New Zenner

Join Date:
Jul 2014
Location:
Delaware USA
Posts:
26
Plugin Contributions:
0

Re: POSM to not show out of stock items on product page

Cindy
I emailed you a link. Since it is a test site did not want to post a link on the forum.

Thanks
Randy

27 Mar 2026, 12:53 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: POSM to not show out of stock items on product page

lsde:

Cindy
I emailed you a link. Since it is a test site did not want to post a link on the forum.

Thanks
Randy
I'm not seeing that email ..

27 Mar 2026, 1:09 PM
#5
lsde avatar

lsde

New Zenner

Join Date:
Jul 2014
Location:
Delaware USA
Posts:
26
Plugin Contributions:
0

Re: POSM to not show out of stock items on product page

Cindy
Sent via your website, "contact us"

Thanks
Randy

27 Mar 2026, 4:34 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: POSM to not show out of stock items on product page

lsde:

Cindy
Sent via your website, "contact us"

Thanks
Randy
Never received; send me the link via a Zen Cart "private message".

1 Apr 2026, 7:15 PM
#7
lsde avatar

lsde

New Zenner

Join Date:
Jul 2014
Location:
Delaware USA
Posts:
26
Plugin Contributions:
0

Re: POSM to not show out of stock items on product page

Changed Dependent Attributes: Outer Selector to #productAttributes as recommended and it worked.
Thank you Cindy for your help.
Randy

6 Apr 2026, 11:26 AM
#8
lsde avatar

lsde

New Zenner

Join Date:
Jul 2014
Location:
Delaware USA
Posts:
26
Plugin Contributions:
0

Re: POSM to not show out of stock items on product page

Just noticed that the same issue of out of stock items showing on the product page on the mobile menu. Items are being disabled when the last one is purchased though. Everything works fine on the desktop.
Is there maybe a setting in the mobile menu for this?
Thanks, Randy

6 Apr 2026, 2:25 PM
#9
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: POSM to not show out of stock items on product page

lsde:

Just noticed that the same issue of out of stock items showing on the product page on the mobile menu. Items are being disabled when the last one is purchased though. Everything works fine on the desktop.
Is there maybe a setting in the mobile menu for this?
Thanks, Randy
Just make sure that your customized template is using the same "wrapper" (i.e. #productAttributes) for the mobile/tablet view as well as the desktop.

7 Apr 2026, 9:10 PM
#10
lsde avatar

lsde

New Zenner

Join Date:
Jul 2014
Location:
Delaware USA
Posts:
26
Plugin Contributions:
0

Re: POSM to not show out of stock items on product page

Both includes/templates/mytemplate/css/responsive_mobile.css and responsive_tablet.css files have #productAttributes under the .navNextPrevWrapper. Should I be looking elsewhere as well?
Thanks

8 Apr 2026, 12:02 PM
#11
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: POSM to not show out of stock items on product page

lsde:

Both includes/templates/mytemplate/css/responsive_mobile.css and responsive_tablet.css files have #productAttributes under the .navNextPrevWrapper. Should I be looking elsewhere as well?
Thanks
It's not the CSS, it's whether/not the generated HTML still has an id=productAttributes div wrapping the attributes' section.

8 Apr 2026, 2:56 PM
#12
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,862
Plugin Contributions:
18

Re: POSM to not show out of stock items on product page

The site is using a clone of Responsive_Classic and the files match the current distribution for 2.2.2.

Both the RC clone and the Bootstrap clone (when switched) have the lines

[TABLE="class: line-wrap"]
[TR]
[TD="class: line-content"]let wrapperAttribsOptions = '.wrapperAttribsOptions';[/TD]
[/TR]
[TR]
[TD="class: line-content"]let optionNameSelector = '.optionName';[/TD]
[/TR]
[TR]
[TD="class: line-content"]let attributeWrapper = '#productAttributes';[/TD]
[/TR]
[TR]
[TD="class: line-content"]let attribImgSelector = '.attribImg';[/TD]
[/TR]
[TR]
[TD="class: line-content"]let ignoreOptionsList = [];[/TD]
[/TR]
[/TABLE]

However, neither attributeWrapper nor #productAttributes are ever mentioned again on the product info page.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com