• I am trying to show the “Out of Stock” message that is currently showing on the products that have 0 inventory in a different location in the product card. I have copied the \bigcommerce\templates\public to a \bigcommerce\ directory under my theme so that I can edit the templates.

    I can see the reference to the inventory level in the product-title.php template <?php echo $inventory; ?>

    I would like to use this same <?php echo $inventory; ?> in the product-card.php template, but when I put the <?php echo $inventory; ?> in the product-card.php template, I am not seeing the “Out of Stock” message where I am placing it.

    Is there a way for me to show the “Out of Stock” message in a different place on the product-card.php template? Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Unfortunately, that variable isn’t available in the product-card.php template. You could build a front-end script that pulls in the inventory values of all the products on the page and then update each card with the “Out of Stock” message as needed.

Viewing 1 replies (of 1 total)
  • The topic ‘Inventory’ is closed to new replies.