Announcement

Collapse
No announcement yet.

Buy Button - Help !

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

  • Buy Button - Help !

    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>
    &nbsp;
    <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>
    &nbsp;
    <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
    Steven Morgan
    Cosmetics4u
    http://www.cosmetics4uonline.co.uk

  • #2
    Just come across this: ENDOFCODE; MUST be right at the left hand edge (beginning of the line, it is not in yours even though you have comments
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    Comment


    • #3
      And for modern SellerDeck you should replace:
      Code:
      <actinic:block type="ProductList">
      With:
      Code:
      <actinic:block type="SectionEntireProductList">
      To deal with sections that may have the products split over several pages.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment

      Working...
      X