Announcement

Collapse
No announcement yet.

Buy Now button error

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

    Buy Now button error

    Hi, I have added a buy now to my categories but I am getting an error;

    Try the "Buy Now" button here please to show the error - http://it-shop-online.co.uk/acatalog...ry_Sticks.html

    This is the code I am using;

    Code:
    <!-- SectionLine HTML begin -->
    	
    	<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>
    
    <div class="product_list">
    <div class="image_product"><a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" /></actinic:block>" target="_self"><img alt="<actinic:variable name="SectionName" encoding="strip"/>" src="<actinic:variable Name="SectionImageFileName"/>" border="0" /></a></div>
    <div><h3 class="product"><a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" /></actinic:block>" target="_self"><span style="color:<actinic:variable name="Palette2" />"><actinic:variable name='SectionName'/></span></a></h3></div>
    <actinic:block type="ProductList" >
    <b>Estimated Available Stock</b>: <span style="color:#f00"><actinic:variable name="StockLevel" /></span>
    <div style="float: right;">
    
    <br>
    <br>
    <br/>
    <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" >
    <actinic:variable name="AddToCartButton" /><br>
    <span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span><br>
    <input type="text" name="Q_<Actinic:Variable Name="ProductReference"/>" size="4" value="<Actinic:Variable Name="DefaultQuantity"/>" class="form_input_general" />
    </actinic:block>
    </div>
    
    <br/>
    <actinic:block type="PriceList" >
    <b><actinic:variable name="PriceLayout" /></b><br><br>
    </actinic:block>
    
    <actinic:block php="true" >
    $sShort = "";
    $nCount = 0;
    $sOriginal = '<actinic:variable encoding="perl" name="ProductDescription" selectable="false" />';
    foreach(explode(" ", $sOriginal) as $sWord)
    {
    if ($nCount > 50)
    {
    $sShort .= "...";
    break;
    }
    $sShort .= $sWord . " ";
    $nCount++;
    }
    echo $sShort;
    </actinic:block>
    </actinic:block>
    <br><a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" /></actinic:block>" target="_self">More Info...</a>
    </div>
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
    </form>
    </actinic:block>
    
    <!-- SectionLine HTML end -->
    Thanks in advance!

    #2
    The problem is with your quantity prompt.

    Search for the following in your layout "Q_ProductReference" and replace it with "Q_<Actinic:Variable Name="ProductID"/>"

    Actinic no longer uses the productreference variable, it has been replaced with the productid variable.
    "Opportunities multiply as they are seized." - Sun Tzu

    Comment


      #3
      YIPEE! Thanks JSnow!
      Thats worked a treat!

      Now, if you can just help me perfect the "end of day finishing move"

      Comment

      Working...
      X