Announcement

Collapse
No announcement yet.

Qty Prompt and Box Disappearing

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

    Qty Prompt and Box Disappearing

    We are in the process of upgrading our site from Actinic Business V9 to SellerDeck 2013. Additionally I have downloaded the SellerDeck demo site to try out a few changes we are proposing to implement.

    In the process of this I have hit a problem. All the products are contained within Sections with Page Settings/Shopping Mode set to "Use Parent Settings" and the radio button for "Qty on Product page" clicked.

    When the demo site was downloaded, the Quantity Prompt and Quantity Box were all showing at the Section level display and the product level display. However, if i make the slightest change to the product (e,g, by adding an extra word or even a comma to the Product Description) and then hit apply, both the Quantity Prompt and the Quantity Box disappear - and I can find no way to get them back.

    I can see absolutely no differences to any of the product setting between the products that show the qty prompt and qty box and those that don't.

    The Product Page Product Layout being used is "Image on Left Text Wrapped Around"

    What am I missing please?

    #2
    Look in the Section settings (Section Details / Page Settings / Shopping Mode). You may not have Quantity on Product Page set.

    And on Product Details / General make sure Can Be Order Online is set.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Yes - it is set the same for all sections.

      Comment


        #4
        Did you check - Product Details / General to make sure Can Be Ordered Online is set?

        Also stock control can affect "buyability".

        You can try some disagnostic code. Here is the snippet that displays the Quantity box (from Image on Left Text Wrapped Around):
        Code:
        		<actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptShown%22%20%2f%3e%20AND%20%28%3cactinic%3avariable%20name%3d%22IsOutOfStockShown%22%20%2f%3e%20%3d%3d%20FALSE%29%20AND%20%28%3cactinic%3avariable%20name%3d%22IsCatalogSuspendedShown%22%20%2f%3e%20%3d%3d%20FALSE%29" >  
        			<p class="quantity-box">
        				<actinic:block if="%3cactinic%3avariable%20name%3d%22CartButtonVisibleToAllCustomers%22%20%2f%3e" >
        					<!-- This code is used when the quantity box is visible to all customers -->
        					<span class="actrequired"><actinic:variable name="QuantityPrompt" /></span>
        					&nbsp;
        					<input type="text" name="Q_<actinic:variable name="ProductID" />" value="<actinic:variable name="DefaultQuantity" />" <actinic:block if="%3cactinic%3avariable%20name%3d%22UseDynamicPrices%22%20%2f%3e%20%3d%3d%20TRUE%20AND%20%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e%20%3d%3d%20FALSE%20AND%20%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e%20%3d%3d%20FALSE" >onpaste="QuantityChanged(this, '<actinic:variable name="DynamicPriceCGIURL" />', <actinic:variable name="SectionID" />)" onkeyup="QuantityChanged(this, '<actinic:variable name="DynamicPriceCGIURL" />', <actinic:variable name="SectionID" />)"</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22UseDynamicPrices%22%20%2f%3e%20%3d%3d%20TRUE%20AND%20%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e%20%3d%3d%20TRUE%20AND%20%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e%20%3d%3d%20FALSE" >onpaste="QuantityChanged(this, '<actinic:variable name="DynamicPriceCGIURL" />', <actinic:variable name="SectionID" />, '<actinic:variable name="ShopID" />')" onkeyup="QuantityChanged(this, '<actinic:variable name="DynamicPriceCGIURL" />', <actinic:variable name="SectionID" />, '<actinic:variable name="ShopID" />')"</actinic:block>/>
        				</actinic:block> 
        				<actinic:block if="%3cactinic%3avariable%20name%3d%22EnabledForCustomerGroupID%22%20%2f%3e%20%21%3d%20%22%22" >
        					<actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceIsEnabled%22%20%2f%3e" >
        						<!-- This code is used when the quantity box is visible to retail customers, but not all other customer groups -->
        						<Actinic:ShowForPriceSchedule Schedules="<actinic:variable name="EnabledForCustomerGroupID" />">
        						<span class="actrequired"><actinic:variable name="QuantityPrompt" /></span>
        						<input type="text" name="Q_<actinic:variable name="ProductID" />" value="<actinic:variable name="DefaultQuantity" />" <actinic:block if="%3cactinic%3avariable%20name%3d%22UseDynamicPrices%22%20%2f%3e%20%3d%3d%20TRUE%20AND%20%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e%20%3d%3d%20FALSE%20AND%20%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e%20%3d%3d%20FALSE" >onpaste="QuantityChanged(this, '<actinic:variable name="DynamicPriceCGIURL" />', <actinic:variable name="SectionID" />)" onkeyup="QuantityChanged(this, '<actinic:variable name="DynamicPriceCGIURL" />', <actinic:variable name="SectionID" />)"</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22UseDynamicPrices%22%20%2f%3e%20%3d%3d%20TRUE%20AND%20%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e%20%3d%3d%20TRUE%20AND%20%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e%20%3d%3d%20FALSE" >onpaste="QuantityChanged(this, '<actinic:variable name="DynamicPriceCGIURL" />', <actinic:variable name="SectionID" />, '<actinic:variable name="ShopID" />')" onkeyup="QuantityChanged(this, '<actinic:variable name="DynamicPriceCGIURL" />', <actinic:variable name="SectionID" />, '<actinic:variable name="ShopID" />')"</actinic:block>/>
        						</Actinic:ShowForPriceSchedule>
        					</actinic:block>
        					<actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceIsEnabled%22%20%2f%3e%20%3d%3d%20FALSE" >		
        						<!-- This code is used when the quantity box needs to hidden from retail customers -->						
        						<actinic:block if="%3cactinic%3avariable%20name%3d%22UseDynamicPrices%22%20%2f%3e%20%3d%3d%20FALSE%20OR%20%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e%20%3d%3d%20TRUE" >
        						<Actinic:ShowForPriceSchedule Schedules="<actinic:variable name="EnabledForCustomerGroupID" />" HTML="<p><span class='actrequired'><actinic:variable name="QuantityPrompt" /></span>&nbsp;<input type='text' name='Q_<actinic:variable name="ProductID" />' value='<actinic:variable name="DefaultQuantity" />' /></p>"></Actinic:ShowForPriceSchedule>
        						</actinic:block>
        						<actinic:block if="%3cactinic%3avariable%20name%3d%22UseDynamicPrices%22%20%2f%3e%20%3d%3d%20TRUE%20AND%20%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e%20%3d%3d%20FALSE%20AND%20%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e%20%3d%3d%20FALSE" >
        						<Actinic:ShowForPriceSchedule Schedules="<actinic:variable name="EnabledForCustomerGroupID" />" HTML="<p><span class='actrequired'><actinic:variable name="QuantityPrompt" /></span>&nbsp;<input type='text' name='Q_<actinic:variable name="ProductID" />' value='<actinic:variable name="DefaultQuantity" />' onpaste=QuantityChanged(this, '<actinic:variable name="DynamicPriceCGIURL" />', <actinic:variable name="SectionID" />) onkeyup=QuantityChanged(this, '<actinic:variable name="DynamicPriceCGIURL" />', <actinic:variable name="SectionID" />)/></p>"></Actinic:ShowForPriceSchedule>
        						</actinic:block>
        						<actinic:block if="%3cactinic%3avariable%20name%3d%22UseDynamicPrices%22%20%2f%3e%20%3d%3d%20TRUE%20AND%20%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e%20%3d%3d%20TRUE%20AND%20%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e%20%3d%3d%20FALSE" >
        						<Actinic:ShowForPriceSchedule Schedules="<actinic:variable name="EnabledForCustomerGroupID" />" HTML="<p><span class='actrequired'><actinic:variable name="QuantityPrompt" /></span>&nbsp;<input type='text' name='Q_<actinic:variable name="ProductID" />' value='<actinic:variable name="DefaultQuantity" />' onpaste=QuantityChanged(this, '<actinic:variable name="DynamicPriceCGIURL" />', <actinic:variable name="SectionID" />, '<actinic:variable name="ShopID" />') onkeyup=QuantityChanged(this, '<actinic:variable name="DynamicPriceCGIURL" />', <actinic:variable name="SectionID" />, '<actinic:variable name="ShopID" />')/></p>"></Actinic:ShowForPriceSchedule>
        						</actinic:block>
        					</actinic:block>
        				</actinic:block> 
        			</p>
        		</actinic:block>
        		<actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptHidden%22%20%2f%3e" >
        			<p class="quantity-box">
        				<input type="hidden" name="Q_<actinic:variable name="ProductID" />"  value="<actinic:variable name="DefaultQuantity" />" />
        			</p>
        		</actinic:block>
        		<!-- End of code for quantity box -->
        After each Block If add a different letter, A, B, C, etc. Then you can see which particular BlockIf displays before and after a product goes wonky.

        Before doing this you can also right-click the layout and choose Copy to make a clean duplicate that you can use to repair the edits.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Thanks Norman. I had already done something similar to work out which bit of the code were displaying what.

          For the pages that fail to show the qty and qty box, the code skips everything after <actinic:variable name="IsQuantityPromptShown" /> AND (<actinic:variable name="IsOutOfStockShown" /> == FALSE) AND (<actinic:variable name="IsCatalogSuspendedShown" /> == FALSE).

          However, the Quantity Prompt is set to show for all pages!

          Comment


            #6
            Cracked it - I had missed the fact that in the Business settings/Ordering I had failed to tick Ordering Online Allowed. Stupid of me.

            Thanks so much for your help.

            Comment

            Working...
            X