Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6115021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:02:35+00:00 2026-05-23T15:02:35+00:00

My development website has a traffic light graphic system to illustrate stock levels for

  • 0

My development website has a traffic light graphic system to illustrate stock levels for each item.
In amongst those simple products, I have a few bundle products (more to come in future).
On the product listings (and details) pages, the stock graphic is always showing red, or out of stock – even when every product contained in the bundle is IN stock.

I figure the only way around this is to hide the stock graphic for all bundle products.

Does anyone know how to do this?
How do I perform a test in code to display (or not) the stock graphic based on the products type_id being bundle?

My worry is that this isn’t a great idea due to the added overhead of testing each product before displaying the page??

Any other suggestions are more than welcome!
Cheers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:02:36+00:00Added an answer on May 23, 2026 at 3:02 pm

    It turns out this is far simpler than previously thought.
    The following code will check if a product is of type “Bundle” and then conditionally show the stock counter.

    <?php if($_product->getTypeId() != "bundle"): ?>
    [Stock counter display code here]
    <?php endif; ?>
    

    I hope that helps someone else looking for this!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website project that has more than 50,000 unimportant files (to development)
I had a perfectly functional GoDaddy website (under development) before Christmas break. It has
I am redesigning my personal / development website , and trying to make it
I'm new to website development using Java but I've got started with Wicket and
Most designers use 1024x768 as a baseline for website development. That allows them to
Just finishing up the development of a site, but what would website development be
Should we only use Web-Safe Colors while in design/coding/development for website/apps?
I've inherited development for a website on vps hosting, and have login info for
I am new to the web development.I have built my website in visual studio
So for development purposes, we had our folder structure for our website something like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.