Hi Guys
I am adding the following code to end of the mini best seller layout as per actinic support but am getting parse error on line 37 when I view my homepage in preview what I am trying to do is add a buy button to the best sellers,new products and related items
<!-- Add to Cart on Best Sellers / New Products -->
<actinic:block php="true">
$bestsellerID = '<actinic:variable name="ProductID" encoding="perl"
selectable="false" />';
</actinic:block>
<actinic:block type="EntireSectionList">
<actinic:block type="ProductList">
<actinic:block php="true" >
$productID = '<actinic:variable name="ProductID"
encoding="perl" selectable="false" />';
if ($productID == $bestsellerID)
{
$code = <<<ENDOFCODE
<!-- START Additional Product Layout Variables --> <br clear="all"> <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="<actinic:variable name="CatalogURL"
/>acatalog/<actinic:variable name="SectionPageName" encoding="perl"
selectable="false" />" />
<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:variable name="AttributeList" />
<actinic:variable name="ComponentList" />
<actinic:block
if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptShown%22%20%2f%3e">
<span class="actrequired">Qty:</span>
<input type="text" name="Q_<actinic:variable Name="ProductID"/>" size="2" 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>
<actinic:block
if="%3cactinic%3avariable%20name%3d%22IsAddToCartButtonShown%22%20%2f%3e%20A
ND%20%0d%28%3cactinic%3avariable%20name%3d%22NumberAttributesInPushButtonGri
d%22%20%2f%3e%20%3d%3d%200%29" >
<actinic:variable name="AddToCartButton" />
</actinic:block>
<br /><actinic:variable name="CartError" /> </form>
<!-- END Additional Product Layout Variables --> ENDOFCODE;
echo $code;
}
</actinic:block>
</actinic:block>
</actinic:block>
<!-- End of Add to Cart on Best Sellers / New Products -->
What I am trying to achieve as well is that customers can tick a box on related items and add them to their basket any help guys would be greatly appreciated
regards
Steve
www.cosmetics4uonline.co.uk
I am adding the following code to end of the mini best seller layout as per actinic support but am getting parse error on line 37 when I view my homepage in preview what I am trying to do is add a buy button to the best sellers,new products and related items
<!-- Add to Cart on Best Sellers / New Products -->
<actinic:block php="true">
$bestsellerID = '<actinic:variable name="ProductID" encoding="perl"
selectable="false" />';
</actinic:block>
<actinic:block type="EntireSectionList">
<actinic:block type="ProductList">
<actinic:block php="true" >
$productID = '<actinic:variable name="ProductID"
encoding="perl" selectable="false" />';
if ($productID == $bestsellerID)
{
$code = <<<ENDOFCODE
<!-- START Additional Product Layout Variables --> <br clear="all"> <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="<actinic:variable name="CatalogURL"
/>acatalog/<actinic:variable name="SectionPageName" encoding="perl"
selectable="false" />" />
<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:variable name="AttributeList" />
<actinic:variable name="ComponentList" />
<actinic:block
if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptShown%22%20%2f%3e">
<span class="actrequired">Qty:</span>
<input type="text" name="Q_<actinic:variable Name="ProductID"/>" size="2" 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>
<actinic:block
if="%3cactinic%3avariable%20name%3d%22IsAddToCartButtonShown%22%20%2f%3e%20A
ND%20%0d%28%3cactinic%3avariable%20name%3d%22NumberAttributesInPushButtonGri
d%22%20%2f%3e%20%3d%3d%200%29" >
<actinic:variable name="AddToCartButton" />
</actinic:block>
<br /><actinic:variable name="CartError" /> </form>
<!-- END Additional Product Layout Variables --> ENDOFCODE;
echo $code;
}
</actinic:block>
</actinic:block>
</actinic:block>
<!-- End of Add to Cart on Best Sellers / New Products -->
What I am trying to achieve as well is that customers can tick a box on related items and add them to their basket any help guys would be greatly appreciated
regards
Steve
www.cosmetics4uonline.co.uk
Comment