Announcement

Collapse
No announcement yet.

Add to cart Problem

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

    Add to cart Problem

    Hi

    I've just uploaded to the webserver but am having problems with the add to cart function.

    When someone clicks on 'Add to cart' for a product I get the following message:

    Quantity: The quantity must be a whole number between 1 and 32767


    The website concerned is http://www.crossinfectioncontrol.com

    Can someone tell me what i have done wrong, and what I need to do to fix it?

    Cheers

    #2
    Search the forum using all or part of the error message. I've seen it before a number of times, answer will be in a thread somewhere.

    Comment


      #3
      Lee

      I did a search on this but all i get is problems to do with duplicate items. This website doesn't have any duplicate items within it?

      Am i just being thick?

      Comment


        #4
        Originally posted by Rushal
        Am i just being thick?
        I wouldn't expect so, no. I've just seen the error quite a few times before and sure it has always been solved. I can't for the life of me recall what the solution is though. Are you using the latest version of the software and have you compacted the database along with doing a web refresh?

        Comment


          #5
          There should be Quantity form field (Q_<ProductID>) either visible or hidden per product. You have neither.

          Have you inadvertantly deleted the following from your Product Layout(s)
          Code:
                   <actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptShown%22%20%2f%3e">
                      <p>
                      <span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span><input type="text" name="Q_<Actinic:Variable Name="ProductID"/>" size="4" value="<Actinic:Variable Name="DefaultQuantity"/>" class="form_input_general" />
                      </p>
                   </actinic:block>
                   <actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptHidden%22%20%2f%3e">
                      <input type="hidden" name="Q_<actinic:variable name="ProductID"/>"  value="<actinic:variable name="DefaultQuantity"/>" />
                   </actinic:block>
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Norman

            I've checked the product layout but all seems well there

            Code:
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
                  <form method="post" action="<actinic:variable name="OnlineScriptURL" value="Shopping Cart Script URL" />"> 
                     <input type="hidden" name="SID" value="<Actinic:Variable Name="SectionID"/>" />
                     <input type="hidden" name="PAGE" value="PRODUCT" />           
                     <input type="hidden" name="PAGEFILENAME" value="<actinic:variable name="SectionPageName" />" />
                     <Actinic:SECTION BLOB='<Actinic:Variable Name="SectionCatFile"/>'/>
                     <actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">
                        <!-- Hidden field when in trial mode -->
                        <input type="hidden" name="SHOP" value="<Actinic:Variable Name="HiddenFields"/>" />
                     </actinic:block>
            </actinic:block>
            
            <table width="100%" cellspacing="0" cellpadding="10" border="0">
               <tr>
                  <td width="25%" align="center" valign="top">
                     <actinic:variable name="ProductImageLayout" />
                  </td>
                  <td width="75%" align="left" valign="top">
                     <a name="<Actinic:Variable Name="EncodedProductAnchor"/>">
                     <b><Actinic:Variable Name="ProductName"/></b></a>
                     
                     <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductReferenceVisible%22%20%2f%3e" >
                        Ref: <actinic:variable name="ProductReference" />
                     </actinic:block>
                     
                     <br />
                     <actinic:variable name="ProductDescription" />
                     <actinic:variable name="ExtendedInformationLinks" />
                            
                     <actinic:block if="%3cactinic%3avariable%20name%3d%22FileURLNotEmpty%22%20%2f%3e">
                        <br />
                        <a href="<Actinic:Variable Name="ProductLinkInfo"/>">
                           <Actinic:Variable Name="ProductLinkText"/>
                        </a>
                     </actinic:block>
                     
                     <actinic:block if="%3cactinic%3avariable%20name%3d%22IsCustomerMessageUsed%22%20%2f%3e">
                        <br />
                        <Actinic:PRICE_EXPLANATION PROD_REF="<actinic:variable Name="ProductID" />" COMPONENTID=-1><Actinic:Variable Name="RetailCustomerMessage"/></Actinic:PRICE_EXPLANATION>
                     </actinic:block>
                     
                     <actinic:block if="%3cactinic%3avariable%20name%3d%22PriceIsEnabled%22%20%2f%3e">
            				<b>
            				<Actinic:PRICES PROD_REF="<actinic:variable Name="ProductID" />" RETAIL_PRICE_PROMPT="<Actinic:Variable Name="ProductPriceDescription"/>">
                        <actinic:variable name="PriceListRetail" />
                        </Actinic:PRICES>
                        </b>
                     </actinic:block>
                     <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceIsEnabled%22%20%2f%3e%20%3d%3d%20False">
            	         <Actinic:NOTINB2B><br /><strong><actinic:variable name="ProductPriceNotEnabledMessage" /></strong></Actinic:NOTINB2B>
                     </actinic:block>
                     <actinic:block if="%3cactinic%3avariable%20name%3d%22DiscountDescriptionIsShownForProducts%22%20%2f%3e">      
                        <br /><actinic:variable name="DiscountList" value="Standard Discount List" />
                     </actinic:block>
                     
                     <actinic:block if="%3cactinic%3avariable%20name%3d%22IsOtherInfoPromptShown%22%20%2f%3e">
                        <br />
                        <span class="actrequired"><Actinic:Variable Name="OtherInfoPrompt"/></span><br />
                        <input type="text" name="O_<actinic:variable Name="ProductID"/>" size="40" maxlength="1000" value="" />
                     </actinic:block>
                     
                     <actinic:block if="%3cactinic%3avariable%20name%3d%22IsDatePromptShown%22%20%2f%3e">
                        <br />
                        <span class="actrequired"><actinic:variable name="DatePrompt"/></span><br />
                        <actinic:variable name="DayList" /><actinic:variable name="MonthList" /><actinic:variable name="YearList" />
                     </actinic:block>
                     
                     <actinic:variable name="AttributeList" />
                     <actinic:variable name="ComponentList" />
                     
                     <actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptShown%22%20%2f%3e">
                        <p>
                        <span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span><input type="text" name="Q_<Actinic:Variable Name="ProductID"/>" size="4" value="<Actinic:Variable Name="DefaultQuantity"/>" class="form_input_general" />
                        </p>
                     </actinic:block>
                     <actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptHidden%22%20%2f%3e">
                        <input type="hidden" name="Q_<actinic:variable name="ProductID"/>"  value="<actinic:variable name="DefaultQuantity"/>" />
                     </actinic:block>
            			
                     <br /><actinic:variable name="CartError" />
            
                     <actinic:block if="%3cactinic%3avariable%20name%3d%22IsAddToCartButtonShown%22%20%2f%3e%20AND%20%0d%28%3cactinic%3avariable%20name%3d%22NumberAttributesInPushButtonGrid%22%20%2f%3e%20%3d%3d%200%29" >
                        <br /><actinic:variable name="AddToCartButton" />
                     <br><br></br></br>
                     </actinic:block>        
            
                     <actinic:block if="%3cactinic%3avariable%20name%3d%22IsOutOfStockShown%22%20%2f%3e">
                        <br /><br /><strong><span class="actrequired"><br /><Actinic:Variable Name="OutOfStock"/></span></strong>
                     </actinic:block>
            
                     <actinic:block if="%3cactinic%3avariable%20name%3d%22IsCatalogSuspendedShown%22%20%2f%3e">
                        <br /><br /><strong><span class="actrequired"><Actinic:Variable Name="CatalogSuspended"/></span></strong>
                     </actinic:block>
                     
                     <actinic:variable name="ProductAlsoBoughtList" />
                     
                     <actinic:variable name="ProductRelatedProductsList" />
                  </td>
               </tr>
            </table>
            
            
            
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
                  </form>
            </actinic:block>
            Maybe someone could spot the error in there somewhere, but I agree the qty box isn't showing as it should (didn't spot that before, doh!)

            Excuse me if the code seems a mess, but im still a beginner at this.

            Comment


              #7
              Sussed it.

              Comment


                #8
                Well tell us then. Otherwise this thread is of no use to anyone who finds it later.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  Originally posted by NormanRouxel
                  Well tell us then. Otherwise this thread is of no use to anyone who finds it later.
                  Maybe we just have to guess......

                  I'm opting for the Shopping Mode setup being incorrect. i.e. "Quantity on shopping cart" or something along those lines!

                  Fergus Weir - teclan ltd
                  Ecommerce Digital Marketing

                  SellerDeck Responsive Web Design

                  SellerDeck Hosting
                  SellerDeck Digital Marketing

                  Comment


                    #10
                    Originally posted by fergusw
                    I'm opting for the Shopping Mode setup being incorrect. i.e. "Quantity on shopping cart" or something along those lines!
                    Same here, shall we start a book on it?
                    Poster vanishes like a fart in the wind......

                    Comment


                      #11
                      Lol

                      No, i managed to find it just as I was finishing work, so didn't have a chance to post back.

                      What I did was goto Design ¦ Text ¦ Misc and even though the Quantity Prompt was already set up, I deleted the default value and re-entered it. Voila, it sprang to life.

                      Sorry I didn't post earlier

                      Comment

                      Working...
                      X