Announcement

Collapse
No announcement yet.

Is there a way to show "Sold Out" Instead of Add to Cart?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is there a way to show "Sold Out" Instead of Add to Cart?

    Is there any way on category pages to show "sold out" or "coming soon" under the thumbnail images when the stock is zero, rather than "add to cart?"

    We run a seasonal Halloween store and there are times of the year when we are sold out of more than half of our products. We also add 300 - 400 new items per year (and nearly that many are discontinued each year). In the winter after we do all of our buying, we create a "New for This Year" category to show all of the items that will be coming soon. If I switch to showing only products in stock, my website would seem like we hardly carry anything during the first half of the year (most products aren't delivered until summer in time for the Halloween season). If a new customer were to wander into our site, they might never return thinking we don't have much of a selection.

    But we do have sales year round and I'd like to make it easier on people than having to click on every item only to find out half of them are not in yet. They might get frustrated and leave. Is there any setting for this or any way to accomplish this?

    Thanks,
    Nancy

  • #2
    Hi Nancy

    I have played with this idea in the past and have been able to get the link to work in FF but no go in IE. And who knows If your not going to make use of the waiting list then this may be a desired side effect.

    Next best thing would be to display a "Out of Stock" or "Comming Soon" message just above the "Add to Cart" button. Also make use of the waiting list. You would need to delete or hide items that may no longer be available.

    There is no setting to do this. You would need to place code on the listing template.

    If you are comfortable with code, I can post it for you.
    .
    Clayton
    Go Live Industries

    Comment


    • #3
      I do plan to use the waiting list option... I think that is a great feature. I suppose that some people may not get to that button if the outer page shows it as out of stock. What might be ideal would be to change the add to cart button to a waiting list button on sold out items. Then they could still see at a glance what was in now and they'd know the waiting list was an option.

      I'm basically a novice when it comes to code, but after a little trial and error I can usually figure out where/how to edit something. I'd love to see what you've come up with and see how it looks on the site.

      I will post something under feature requests as well.

      Comment


      • #4
        Originally posted by NancyC View Post
        What might be ideal would be to change the add to cart button to a waiting list button on sold out items.
        I will post something under feature requests as well.
        Yes true, at present the waiting list code does not work on the category page. For this reason I came up with this script to help out.

        On the category template you will find a section called template 0 toward the bottom. Out of stock code is in red.
        Code:
                        <!--START: ITEM_TEMPLATE_0-->
                        <table cellspacing="0" cellpadding="5" border="0" width="99%" class="alternative">
                          <tr>
                            <td align="center" height="150"><a href="product.asp?itemid=[catalogid]"><img src="thumbnail.asp?file=[THUMBNAIL]&maxx=0&maxy=150" alt="[name]" border="0"></a></td>
                          </tr>
                          <tr>
                            <td class="item" align="center" height="60"><a href="product.asp?itemid=[catalogid]">[name]</a></td>
                          </tr>
        <tr>
        <td>
        <div align="center">
        <FONT COLOR="#FF0000">
        <script type="text/javascript">
        if ([stock]==0) 
          {
          document.write("<b>Out of Stock</b>");
          }
        </script>
        </font>
        </div>
        </td>
        </tr>                 
                        <!--START: product_review-->
                          <tr>
                            <td class="price-info" valign="top" colspan="2" align="center"><!--START: product_review_average-->
                              <img src="assets/templates/common/images/star[review_average].png" align="absmiddle"> [review_count] Review(s)
                              <!--END: product_review_average--></td>
                          </tr>
                          <!--END: product_review-->
                          <tr>
                            <td class="price-info" valign="top" align="center"><!--START: ITEMPRICE-->
                              <b>[product_yourprice] </b><span class="price">[ITEMPRICE]</span>
                              <!--END: ITEMPRICE-->
                              <!--START: SALEPRICE-->
                              <table cellpadding="0" cellspacing="0">
                                <tr>
                                  <td class="price-info" nowrap="nowrap"><b>[product_yourprice] </b><s>[ITEMPRICE]</s></td>
                                </tr>
                                <tr>
                                  <td valign="top" nowrap="nowrap" class="price-info"><b>[product_onsale]: </b><span class="price">[ITEMSALEPRICE]</span></td>
                                  <td> <img src="assets/templates/common/images/on_sale.png" /></td>
                                </tr>
                              </table>
                              <!--END: SALEPRICE--></td>
                          </tr>
                          <!--START: freeshippingblock-->
                          <tr>
                            <td class="price-info" colspan="2" align="center" valign="middle">[freeshipping]</td>
                          </tr>
                          <!--END: freeshippingblock-->
        <tr>
        <td>
        <div align="center">
        <FONT COLOR="#FF0000">
        <script type="text/javascript">
        if ([stock]==0) 
          {
          document.write("<b>Out of Stock</b>");
          }
        </script>
        </font>
        </div>
        </td>
        </tr>
                          <tr>
                            <td class="item" align="center" valign="middle"><input  type="button" value="[category_buyitlink]" onClick="window.location='add_cart.asp?quick=1&item_id=[catalogid]'" class="btn" onMouseOver="this.className='btn_over'" onMouseOut="this.className='btn'"></td>
                          </tr>
                        </table>
                        <!--END: ITEM_TEMPLATE_0-->
        I inserted the code in two locations just to help you out with placement. You will only need the code in one location. Basically in between these tags
        Code:
        </tr>
        <tr>
        I personally think it looks better higher up oppose to just above the Add to Cart button.

        Be sure to keep a backup copy in notepad

        Enjoy!
        Last edited by Go Live; 05-01-2011, 01:34 PM.
        .
        Clayton
        Go Live Industries

        Comment


        • #5
          Thanks Go Live! That looks really cool. Is there a way to also say "In Stock" on items that have a stock level of 1 or more? With having an extra line of some of the products it's making the add to cart buttons uneven across the line.

          Comment


          • #6
            Sure

            Code:
            <tr>
            <td>
            <div align="center">
            <FONT COLOR="#000000">
            <script type="text/javascript">
            if ([stock]==0) 
              {
              document.write("<b>( Out of Stock )</b>");
              }
            else
              {
              document.write("<b>( In Stock )</b>");
              }
            </script>
            </font>
            </div>
            </td>
            </tr>
            Have fun!
            .
            Clayton
            Go Live Industries

            Comment


            • #7
              Thank you! That does the trick! I have had complaints in the past from customers who were frustrated shopping on the site and trying to add items to their cart only to keep finding out what they wanted was sold out. I think this will solve the problem perfectly.

              Thanks again,
              Nancy

              Comment


              • #8
                Yes, bad shopping experience to find 2 or 3 out of stock items while trying to add to cart. Always best to be upfront.

                Good Luck with your site!
                .
                Clayton
                Go Live Industries

                Comment


                • #9
                  Sorry, I'm familiar with conditionals but know little about script but so didn't post the else statement since I wasn't sure.
                  Would you need to append the first conditional to =< 0 or <= 0 ?
                  If you allow backorders and your stock was < 0 wouldn't this give you a 'in stock message' too?

                  Comment


                  • #10
                    Yep mondo, you're correct about the potential backorder situation.

                    Comment


                    • #11
                      We don't do backorders so the code did not consider backorders.
                      So to be safe I revised the code to work for others in need.
                      Hope this helps.
                      Code:
                      <tr>
                      <td>
                      <div align="center">
                      <FONT COLOR="#000000">
                      <script type="text/javascript">
                      if ([stock]>0) 
                        {
                        document.write("<b>( In Stock )</b>");
                        }
                      else
                        {
                        document.write("<b>( Out of Stock )</b>");
                        }
                      </script>
                      </font>
                      </div>
                      </td>
                      </tr>
                      .
                      Clayton
                      Go Live Industries

                      Comment


                      • #12
                        Thanks for the script. It is exactly what i need and i got it working in 5 minutes.

                        I paid $120 two years ago for this feature. Now i decided to use a different template, this script must be inserted again. 3dcart took almost two weeks to quote me for paying $120 again just copy and paste it into new template. I oked the quote and then i was told it will take about one month to get it done. With your script posted, i got it working in about 5 minutes. I cancel the work order immediately with 3d cart. Thanks Go Live, you saved me $120 and more important ONE MONTH WAITING TIME.

                        Comment


                        • #13
                          Oh, yes, big thanks for this one! This issue has bothered us for a while, but hadn't yet made it to the top of our to-do list. Now we can just fix it. Fabulous, Go Live! Thank you, thank you!
                          Laura Z
                          Brass & Silver Traditions
                          www.brassandsilvertraditions.com

                          Comment


                          • #14
                            Thanks moriental.com for the gratitude. I appreciate it. (BTW very nice first post)
                            Sometimes I wonder if it is even worth my time to help out as often the original poster will fail to return and offer thanks even after adding said code to there site:confused:
                            I do wish more support was available I have started 25 theads and only received an answer to 3 but I still enjoy helping out.

                            Again, thanks, and welcome
                            .
                            Clayton
                            Go Live Industries

                            Comment


                            • #15
                              Originally posted by brassandsilver View Post
                              Oh, yes, big thanks for this one! This issue has bothered us for a while, but hadn't yet made it to the top of our to-do list. Now we can just fix it. Fabulous, Go Live! Thank you, thank you!
                              Hi Laura
                              You are so welcome. You have helped many and glad I could send something your way.
                              Thanks for the tip on hiding out of stock items that we are unable to restock and at the same time using waiting list for restockable items.
                              I still wish there was a filter for hide or not in the inventory update. weakly we go though over 3,000 out of stock products to hide the newly sold out items.

                              Tip: I guess I really need to set a email filter and stock notice to 1 then hide them by name.

                              Have a good day!
                              .
                              Clayton
                              Go Live Industries

                              Comment

                              Working...
                              X