I think it is easier first showing you what the problem is http://www.bossecomputers.co.uk/acat...o_ACE_712.html ,
if you press F5 you will notice the msg goes from in stock then gets the stock level from the server and changes it to out of stock and disables the add to cart button??
I used the "JavaScriptFunctions" and "Javascript Section Stock Query" that I read from the forum (I think) to determine the stock level. I wonder how i can fix this problem so it only shows out of stock and with add to cart disabled as soon as i'm into the product page. Attached is full layout code for my "Includes Add to Cart Button" layout
Any help / solutions / direction appreciated! Billion thanks!!!
if you press F5 you will notice the msg goes from in stock then gets the stock level from the server and changes it to out of stock and disables the add to cart button??
I used the "JavaScriptFunctions" and "Javascript Section Stock Query" that I read from the forum (I think) to determine the stock level. I wonder how i can fix this problem so it only shows out of stock and with add to cart disabled as soon as i'm into the product page. Attached is full layout code for my "Includes Add to Cart Button" layout
Any help / solutions / direction appreciated! Billion thanks!!!
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title><actinic:variable name="PageTitle" /></title> <actinic:variable name="BaseHref" /> <actinic:variable name="MetaTags" /> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsP3PPolicyUsed%22%20%2f%3e"><link rel="P3Pv1" href="<actinic:variable name="P3PFullPolicyLink" />"></actinic:block> <link href="actinic.css" rel="stylesheet" type="text/css"> <style type="text/css"> body { background-color: <actinic:variable name="Palette3" />; } </style> <actinic:variable name="JavaScriptFunctions" /> <actinic:variable name="JavascriptSectionStockQuery" value="Javascript Section Stock Query" /> <script language="JavaScript1.3" type="text/javascript" src="tabbeddescriptions.js"></script> <link rel="stylesheet" type="text/css" href="<actinic:variable name="TabberStyle" />" /> </head> <body onload="<actinic:variable name="OnLoadScript" value="PreloadImages" />"> <div id="silver-shadow-left"> <div id="silver-shadow-right"> <div id="silver-container"> <div id="silver-header"> <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Brochure%22"> <actinic:variable name="BrochureLogoImage" /> </actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Brochure%22"> <actinic:variable name="CompanyLogoImage" /> </actinic:block> <div id="silver-login-terms"> <p><Actinic:NOTINB2B><a href="<actinic:variable name="LoginPageURL" />"><actinic:variable name="LoginText" /></a> | </Actinic:NOTINB2B><a href="<actinic:variable name="SendMailPageLink" />"><actinic:variable name="SendMailText" /></a></p> </div> <div id="silver-cart-checkout"> <p><a href="<actinic:variable name="CartLinkText" />" class="silver-cart-link"><actinic:variable name="CartText" /></a> | <a href="<actinic:variable name="OrderLinkText" />"><actinic:variable name="CheckOutText" /></a> | <actinic:variable name="ShoppingCartSummary" value="Shopping Cart Summary In A Line" /></p> </div> </div> <div id="silver-nav-bar"> <div id="silver-quick-search-container"> <div id="silver-quick-search"> <div id="silver-quick-search-field"> <form name="simplesearch" method="get" action="<actinic:variable name="OnlineScriptURL" value="Search Script URL" />"> <input class="silver-search-field" name="SS" type="text" value="Search the Site" onfocus="this.value='';"/><input class="silver-search-button" type="image" name="ACTION" src="silver-search-button.gif" /> <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> <input type="hidden" name="page" value="search" /> <input type="hidden" name="PR" value="-1" /> <input type="hidden" name="TB" value="A" /> </form> </div> </div> </div> <div id="silver-nav-bar-left"> <ul> <li><actinic:variable name="NavigationIcon" value="Home Basic Link" /></li> <li><actinic:variable name="NavigationIcon" value="Enter Shop Basic Link" /></li> <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22" > <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3e%200" > <li><actinic:variable name="NavigationIcon" value="Up A Level Basic Link" /></li> </actinic:block> </actinic:block> <li><actinic:variable name="NavigationIcon" value="Terms Basic Link" /></li> <li><actinic:variable name="NavigationIcon" value="Search Basic Link" /></li> <li><actinic:variable name="NavigationIcon" value="Contact Us Basic Link" /></li> <li><actinic:variable value="Sitemap Basic Link" name="NavigationIcon" /></li> </ul> </div> </div> <div id="silver-main"> <div id="silver-sidebar-left"> <div class="silver-sidebar-list"> <div class="silver-sidebar-list-bottom"> <div class="silver-sidebar-list-top" id="silver-section-list"> <h1>Product Sections</h1> <ul> <actinic:block type="TopLevelSectionList" ><li><a href="<actinic:variable name="SectionPageName"/>"><actinic:variable name='SectionName'/></a></li></actinic:block></ul> <div style="clear: both;"><img src="theme_shim.gif" height="1" alt="spacer"/></div> </div> </div> </div> <div class="silver-sidebar-list-separator"><img src="theme_shim.gif" height="10" alt="spacer"/></div> <div class="silver-sidebar-list"> <div class="silver-sidebar-list-bottom"> <div class="silver-sidebar-list-top" id="silver-brochure-list"> <h1>Store Information</h1> <ul> <actinic:block type="BrochurePagesList" ><li><actinic:variable name="BrochurePageLink" value="Simple Brochure Page Link" /></li></actinic:block></ul> <div style="clear: both;"><img src="theme_shim.gif" height="1" alt="spacer"/></div> </div> </div> </div> <div class="silver-sidebar-list-separator"><img src="theme_shim.gif" height="10" alt="spacer"/></div> <actinic:variable name="NewProductListSidebar" value="Silver New Products List" /> <actinic:block if="%3cactinic%3avariable%20name%3d%22CaptureCoupon%22%20%2f%3e"> <div style="padding-bottom: 10px;"> <actinic:variable value="Sidebar Coupon Field" name="CouponEntryField" if="%3cactinic%3avariable%20name%3d%22CaptureCoupon%22%20%2f%3e" /> </div> </actinic:block> </div> <div id="silver-bulk"> <div id="silver-bulk-bottom"> <div id="silver-bulk-top"> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsNotPreviewMode%22%20%2f%3e" > <!-- When logged in, this gives the company name, username and a login link --> <actinic:variable name="NowServing" /><actinic:variable name="CurrentAccount" /><actinic:variable name="LogoutSimple" /> </actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22HeaderText%22%20%2f%3e%20%21%3d%20%22%22"><div style="text-align: center;"><actinic:variable name="HeaderFooter" value="Header Text" /></div></actinic:block> <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> <table width="100%" cellspacing="0" cellpadding="10" border="0"> <tr> <td width="50%" align="left" valign="top"> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsExtendedImageSpecified%22%20%2f%3e"> <actinic:variable name="ExtendedInformationImage" /> </actinic:block> </td> <td width="50%" align="left" valign="top"> <a name="<Actinic:Variable Name="EncodedProductAnchor"/>"> <b><Actinic:Variable Name="ProductName"/></b></a> </actinic:block> <br/><b>Ref:</b> <actinic:variable name="ProductReference" /> <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:PRICES> </b> </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"> <br /> <span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span> <input type="text" name="Q_<Actinic:Variable Name="ProductID"/>" size="4" value="<Actinic:Variable Name="DefaultQuantity"/>" /> </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" /> <br /><actinic:variable name="RealTimeStockDisplay" /><br /> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsAddToCartButtonShown%22%20%2f%3e"> <br /><actinic:variable name="AddToCartButton" /> </actinic:block> </td> </tr> </table> <actinic:variable name="TabbedDescription" value="TabbedExtendedInfoText" /> </td> </tr> <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" /> <actinic:block if="%28%28%3cactinic%3avariable%20name%3d%22RecentlyViewedListIsEnabled%22%20%2f%3e%20%3d%3d%20True%29%20AND%20%28%3cactinic%3avariable%20name%3d%22AddRecentFromExtInfoIsEnabled%22%20%2f%3e%20%3d%3d%20True%29%29" > <actinic:variable name="SaveRecentProducts" /> </actinic:block> </td> </tr> </table> </form> <actinic:block if="%3cactinic%3avariable%20name%3d%22RecentlyViewedListIsEnabled%22%20%2f%3e%20%3d%3d%20True" > <actinic:variable name="RecentProducts" /> </actinic:block> <actinic:variable name="FeefoSiteLogo" /> <actinic:variable name="FeefoSiteFeedback" /> <actinic:block if="%3cactinic%3avariable%20name%3d%22FooterText%22%20%2f%3e%20%21%3d%20%22%22" ><div style="text-align: center;"><actinic:variable name="HeaderFooter" value="Footer Text" /></div></actinic:block> <actinic:variable name="ReferrerLink" /> </div> </div> </div> <div style="clear: both;"><img src="theme_shim.gif" height="1" alt="spacer"/></div> </div> <div id="silver-footer"> <div id="silver-footer-left"> <div id="silver-footer-right"> <div class="silver-address-box"> <actinic:variable name="CompanyName" /><br /><actinic:variable name="Address1" /><br /><actinic:block if="%3cactinic%3avariable%20name%3d%22Address2%22%20%2f%3e%20%21%3d%20%22%22"><actinic:variable name="Address2" /><br /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22Address3%22%20%2f%3e%20%21%3d%20%22%22" ><actinic:variable name="Address3" /><br /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22Address4%22%20%2f%3e%20%21%3d%20%22%22" ><actinic:variable name="Address4" /> </actinic:block><actinic:variable name="PostalCode" /> </div> <div class="silver-address-box"> Tel: <actinic:variable name="Phone" /><br /><actinic:block if="%3cactinic%3avariable%20name%3d%22Fax%22%20%2f%3e%20%21%3d%20%22%22">Fax: <actinic:variable name="Fax" /><br /></actinic:block><a href="<actinic:variable name="SendMailPageLink" />">Click here to email us</a> </div> <div class="silver-copyright-info"> <actinic:variable name="Copyright Message" /> </div> </div> </div> </div> </div> </div> </div> <div id="silver-page-bottom-rounded"><img src="theme_shim.gif" height="8" alt="spacer"/></div> <actinic:variable name="GoogleAnalyticsMarkup" value="Google Analytics Tracking Code" /> </body> </html>
Comment