Announcement

Collapse
No announcement yet.

Stock quantities not displaying

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

    Stock quantities not displaying

    I have just inherited this site, it is quite heavily customised with additional javascript including 'AJS.js' which I do not really understand. It did have 'Add this' scripting and buttons but this gave wierd URLs with additional random lettering so I have removed it.

    Problem is that these problems display the stock quantities in preview but not on the published site:
    http://www.graphicz.gb.com/95pc/acat...FS2025-01.html
    http://www.graphicz.gb.com/95pc/acat...ue-FA5207.html

    This product doesn't display stock quantities in preview or live when using the same product layout as the other two, but using the generic layout shows quantities in preview but not when published.
    http://www.graphicz.gb.com/95pc/acat...FS2050-16.html

    The quantities should appear after the hyphen after 'in stock' in the first two and after 'Comes in a triangula ' in the last one.

    This is product layout:
    Code:
    <div id="new-full-product">
    
    <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" />
    			<actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22%29" >
    				 <input type="hidden" name="PAGEFILENAME" value="<actinic:variable name="SectionPageName" />" />
    			</actinic:block>
    			<actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Product%20Page%22%29" >
    				 <input type="hidden" name="PAGEFILENAME" value="<actinic:variable name="ProductPageName" />" />
    			</actinic:block>      
             <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>
    
    <div class="danishproduct">   
    
    
    
    		<h2> 
    <Actinic:Variable Name="ProductName"/></h2>
    
    
    	<div class="productimage">
    
    		<actinic:variable name="ProductImageLayout" />
    		<actinic:variable name="Extra Image Layout" value="Extra Image Table" />
    
     <small>
     <p>
     <div class="backtocategorylinks">
    
    
     <br /><br />
    <actinic:variable name="BackToCategory" />
    </div>
    </p>
    </small>
    
    
    	</div>
    
    
    	<div class="right">    
    
    	<div class="inner-left">   
    
    <h3>Product Information</h3>   
    <small><small>
    <strong>Product Code:</strong> <actinic:variable name="ProductReference" />
    <br /><br />
    	
    
    <strong>Availability: </strong><actinic:block if="%3cactinic%3avariable%20name%3d%2295danishLeadTime%22%20%2f%3e%20%3d%3d%22%22" >In Stock - </actinic:block> <actinic:variable name="RealTimeStockDisplay" /><br /><br />
             <actinic:block if="%3cactinic%3avariable%20name%3d%2295danishLeadTime%22%20%2f%3e%20%21%3d%22%22" >
    Special Delivery: <actinic:variable name="95danishLeadTime" />
                 <br /><br /></actinic:block>
    
    
    
    <strong>Brand:</strong> <actinic:variable name="95danishBrand" />
    <br /><br />
    <strong>Delivery Cost: </strong> 
    <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceRaw%22%20%2f%3e%20%3c%2095%2e94" >
    £4.95 (spend £95 to get free delivery)
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceRaw%22%20%2f%3e%20%3e%3d%2095%2e95" >
    Free	
     
     (delivery free on orders over £95)</actinic:block>
    <br /><br />
    <actinic:block if="%3cactinic%3avariable%20name%3d%2295danishCapacity%22%20%2f%3e%20%21%3d%22%22" >
    
    <strong>Capacity:</strong> <actinic:variable name="95danishCapacity" />	
    <br /><br />
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%2295danishDimensions%22%20%2f%3e%20%21%3d%22%22" >
    
    <strong>Dimensions:</strong> <actinic:variable name="95danishDimensions" />
    <br /><br />
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%2295danishMaterial%22%20%2f%3e%20%21%3d%22%22" >
    
    <strong>Materials:</strong> <actinic:variable name="95danishMaterial" />
    <br /><br />
    </actinic:block>
    
    </div> </small></small>
    
    <div class="inner-right">  
    
    <h3>Buy Now</h3>  	  
    
    	
    	
    		                  	<actinic:block if="%3cactinic%3avariable%20name%3d%22SalePrice%22%20%2f%3e%20%21%3d%220%22" >
    <big><strong><span style='color: #d50000;'><small><small>Original Price<br /> Was: £<actinic:variable name="SalePrice" />!</small></small></span></big></strong> 
    	</actinic:block>
    
             <actinic:block if="%3cactinic%3avariable%20name%3d%22PriceIsEnabled%22%20%2f%3e">
    				<big><strong><p class="cost-price">
    				<Actinic:PRICES PROD_REF="<actinic:variable Name="ProductID" />" RETAIL_PRICE_PROMPT="<Actinic:Variable Name="ProductPriceDescription"/>">
    				<actinic:block if="%3cactinic%3avariable%20name%3d%22SalePrice%22%20%2f%3e%20%21%3d%220%22" >
                <small><small>Clearance</small></small>
                </actinic:block><small><br />
    <small><actinic:variable name="PriceListRetail" /></small>
                </Actinic:PRICES>
                </p></strong></big>
             </actinic:block>
    		
    		
    		 <actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptShown%22%20%2f%3e">
                <p>
                <span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span>   
                &nbsp;
                <input type="text" name="Q_<actinic:variable Name="ProductID"/>" size="1" value="<Actinic:Variable Name="DefaultQuantity"/>" /></p> 
             </actinic:block></small>
             <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>
    
               <actinic:block if="%3cactinic%3avariable%20name%3d%22FileURLNotEmpty%22%20%2f%3e">
               <p>
                <a href="<Actinic:Variable Name="ProductLinkInfo"/>"> 
                   <Actinic:Variable Name="ProductLinkText"/>
                </a></p>
             </actinic:block>
         <actinic:block if="%3cactinic%3avariable%20name%3d%22IsAddToCartButtonShown%22%20%2f%3e%20%3d%3d%20FALSE" >
    	    <small><small>This item is not currently available to order online. Please contact us for more information. </small></small>
     
         </actinic:block>    
    
    	<actinic:block if="%3cactinic%3avariable%20name%3d%22IsAddToCartButtonShown%22%20%2f%3e" >
    
                      		<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" >
    	                  	<div align="left"> <actinic:variable name="AddToCartButton" /></div>	
                      		</actinic:block>		 
     </actinic:block>            
             
    </div>
    
    <div class="main">
    <small><small>
    <h3>Product Description</h3> 
    <p><actinic:variable name="AttributeList" />
             <actinic:variable name="ComponentList" /></p>
    <actinic:variable name="ProductDescription" />
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e%20%3d%3d%20false" >
    <h3>Share It!</h3>
    Socnet buttons go here
    </actinic:block>
    
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22Extra%20Product%20Desc%22%20%2f%3e%20%21%3d%22%22" >
    	
    
    <p>
    
    <actinic:variable name="Extra Product Desc" />
    </p></actinic:block>
             <br/>
    <h3>About <actinic:variable name="95danishBrand" /></h3>
    <actinic:variable name="95danishDesignerAll" />
    
    <actinic:variable name="RecentProducts" />
    				
    
    </small></small>
    </div>
    
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
          </form>
    </actinic:block>
    </div>
    
     </div>
     
    		<div id="marketing-products"> 
    		<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e%20%3d%3d%20false" >
    			<actinic:variable name="RelatedProductBrand" />
    		</actinic:block>
    	
    </div>
    
     
    </div>
    I would be really grateful if someone could shed any light?

    Thank you

    Jonathan
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    The AJS stuff is a JavaScript framework used for a lightbox known as "greybox" from http://orangoo.com/labs/GreyBox/

    If you're not using any such images on the site then you could remove:
    Code:
       <script type="text/javascript">
          var GB_ROOT_DIR = "./";
       </script>
       <script type="text/javascript" src="AJS.js"></script>
       <script type="text/javascript" src="AJS_fx.js"></script>
       <script type="text/javascript" src="gb_scripts.js"></script>
       <link href="gb_styles.css" rel="stylesheet" type="text/css" media="all" />
    Even if you do have a lightbox running, it may be easier to replace it with a jQuery one as you already load jQuery for other purposes and it's best to only have one such framework loaded.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks Norman - I haven't found any lightbox effects yet so have removed the AJS code.

      I don't think it has helped the primary issue however.

      I have found that removing the <iframe>youtube url</iframe> from the custom variable 'Extra description' allows the stock to display in preview but not in the live site
      Jonathan Chappell
      Website Designer
      SellerDeck Website Designer
      Actinic to SellerDeck upgrades
      Graphicz Limited - www.graphicz.co.uk

      Comment


        #4
        Purge and refreshing all perl scripts from original seems to have fixed the issue.
        Jonathan Chappell
        Website Designer
        SellerDeck Website Designer
        Actinic to SellerDeck upgrades
        Graphicz Limited - www.graphicz.co.uk

        Comment

        Working...
        X