Posting Rules

Posting Rules
This forum was created to help 3dcart users share tips on getting the best out of the service, offer knowledge and experiences about e-commerce in general, and to promote a positive environment in which our merchants can request/dispense advice regarding best practices.

The forum was not created for 3dcart users to submit requests for customer support. Any support related thread will be removed and a support ticket will be placed on your behalf. If you have technical difficulties please visit

The 3dcart forum is also not intended to be a medium in which to express dissatisfaction about 3dcart's service, policies or its management and staff. Threads of this nature will also be removed from the forum. If a support issue with your 3dcart store was not resolved in a satisfactory manner; or if you feel that a particular 3dcart offering/policy is not to your liking, please let us know by emailing [email protected] so we can address your concerns directly.

Again, our purpose is to cultivate a positive learning environment for our merchants rather than platform in which to express grievances.

Very Important Rules:
* Never give away your store administration login/password in this forum.

Should you need technical help, please let 3dcart staff help.
Also, please be aware that 3dcart staff will NEVER need to ask for your 3dcart related passwords.

General Rules:
* While debate and discussion are acceptable, we will never tolerate rudeness, insulting posts, personal attacks or inflammatory posts. Our decision is final in these matters.
* Please refrain from posting meaningless threads, one word (or short) nonsensical posts, or similar postings.
* Multiple or repeated posting in order to increase your post count is not allowed.
* Advertising, spamming and trolling is not allowed. This includes using the forum email and Private message system to spam other members.
* We also do not allow posts that are sexual in nature.
* Please wait at least 24 hours before bumping posts.
* Discussion of illegal activities such as software and music piracy and other intellectual property violations are not allowed.
* Each member is allowed one login account. Registering with multiple accounts is not allowed.
* We reserve the right to remove offensive posts without notice.
* We also reserve the right to remove postings which are in violation of our specified posting rules
* Also, while these rules cover most common situations, they cannot anticipate everything. Consequently, we reserve the right to take any actions we deem appropriate to ensure these forums are not disrupted or abused in any way.
* You cannot post any affiliate or referral links, or post anything asking for a referral. Such posts will be subject to removal.
* You cannot post advertisements or notices for contests.
* We also reserve the right to ban anyone who willfully violates the forum rules, as access to our support forums are a privilege and not a right. A banned customer is still entitled to support from the support system, but will not be able to participate in the forum.
See more
See less

Displaying stock for options.

  • Filter
  • Time
  • Show
Clear All
new posts

  • Displaying stock for options.

    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.

    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">
    <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>
    <!--END: product_availability--></td>

    I tried adding the line
    HTML Code:
    <span style="display: inline;" id="product_inventory">[stock]</span>
    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:

    Availability: 42 in Stock

    And for products without options it does:

    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]?
    Last edited by Danab; 07-08-2012, 12:21 PM. Reason: added line of code

  • #2
    Think I figured it out.

    Since my template did not match the KB example, I changed it to:

    HTML Code:
                   <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="product_inventory">[stock] In Stock</span></td>
    That seems to have fixed the problem and now the individual options stock is showing up correctly. I'll have to test it and make sure everything runs smoothly though. Hooray!


    • #3
      individual stock for advanced options

      For those of you who found this thread looking for individual qoh numbers for your advanced options (which 3dcart does not fully support unless the customer clicks on each option - then the [stock] field will show that particular number) I have the solution for you without all sorts of fancy API connections and ajax code.

      Through necessity and a bit of digging, Each individual option can now be indicated as in stock/out of stock/(your custom message here) adjacent to each option if you wish, or you can display the exact qoh if you prefer. The options are endless, and the sky is the limit.

      for an example, please visit

      Please keep in mind that the site is currently still under development (i am the only one working on it currently) but you can see that each size has an individual stock indicator that shows either out of stock/in stock/ or low stock if there is a current qoh of less than three.

      for installation and pricing (includes installation) please pm me. I can have the code installed within 24 hours.
      Last edited by jleclair; 07-24-2012, 03:16 PM.