Hope I can explain my question well so here goes!
I figured out how to add the options to the product as well as add individual stock amounts for each of the options. What I cannot figure out is how to get the stock for each option to show up on the product page like in this KB.
https://support.3dcart.com/Knowledge...vanced-options
Unfortunately, I do not have the specified line of code on my product template page listing_1.html. My template only has this:
<td><!--START: product_availability-->
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="price-info"><strong>[product_Header-availability]</strong></td>
<td><img src="assets/templates/common/images/spacer.gif" border="0" alt="" width="10" height="1"></td>
<td class="item"><div id="availability">[availability]</div></td>
</tr>
</table>
<!--END: product_availability--></td>
I tried adding the line
in manually, but it will not work like their KB example and it just ends up listing 2 stock numbers on all products (not just the ones with options). It has the option stock amount then right beneath it it shows the combined stock for all the options like this:
8
Availability: 42 in Stock
And for products without options it does:
42
Availability: 42 in Stock
The cart does give an error message if the customer tries to order too many pieces of an option, but they have no idea what the actual stock is. Then when they close the error message box, the stock message on the page changes from the combined stock amount to "Out of Stock". So if they order too many of an option, the cart makes it appear that the item is no longer available at all.......
Other things I have tried to work around this:
I tried adding [stock] to the dropdown menu but it just displays the total amount of all the options combined. I cannot figure out how to get it to display the stock for just that option.
Is there a way for me to add the stock for each option within the dropdown menu or get it to show up in the right spot and only on the pages that have options with stock assigned like in the KB? Instead of [stock] is there something else we can use like [options_stock]?
I figured out how to add the options to the product as well as add individual stock amounts for each of the options. What I cannot figure out is how to get the stock for each option to show up on the product page like in this KB.
https://support.3dcart.com/Knowledge...vanced-options
Unfortunately, I do not have the specified line of code on my product template page listing_1.html. My template only has this:
<td><!--START: product_availability-->
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="price-info"><strong>[product_Header-availability]</strong></td>
<td><img src="assets/templates/common/images/spacer.gif" border="0" alt="" width="10" height="1"></td>
<td class="item"><div id="availability">[availability]</div></td>
</tr>
</table>
<!--END: product_availability--></td>
I tried adding the line
HTML Code:
<span style="display: inline;" id="product_inventory">[stock]</span>
8
Availability: 42 in Stock
And for products without options it does:
42
Availability: 42 in Stock
The cart does give an error message if the customer tries to order too many pieces of an option, but they have no idea what the actual stock is. Then when they close the error message box, the stock message on the page changes from the combined stock amount to "Out of Stock". So if they order too many of an option, the cart makes it appear that the item is no longer available at all.......
Other things I have tried to work around this:
I tried adding [stock] to the dropdown menu but it just displays the total amount of all the options combined. I cannot figure out how to get it to display the stock for just that option.
Is there a way for me to add the stock for each option within the dropdown menu or get it to show up in the right spot and only on the pages that have options with stock assigned like in the KB? Instead of [stock] is there something else we can use like [options_stock]?
Comment