Announcement

Collapse
No announcement yet.

Mini best seller layout and add to cart

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

    #16
    Another fix for the spurious acatalog/ on the home page may be this:

    In post #5 replace the line:
    Code:
    <form method="post" action="<actinic:variable name="OnlineScriptURL" value="Shopping Cart Script URL" />">
    With
    Code:
    <form method="post" action="<actinic:variable name="OnlineScriptURL" value="Shopping Cart Script URL" />"
     onsubmit="this.PAGEFILENAME.value = this.PAGEFILENAME.value.replace(/acatalog\//i, '')"
    >
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #17
      Thanks Lee and Norman

      To summarise from Lees posts above:
      For mini best sellers list etc on the home page:
      Code:
      <input type="hidden" name="<actinic:variable name="CatalogURL" /><actinic:variable name="SectionPageName" encoding="perl" selectable="false" />" />
      For the side bar product:
      Code:
      <actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e%20%3d%3d%20false">
      	      <input type="hidden" name="PAGEFILENAME" value="<actinic:variable name="SectionPageName" />" />   
               </actinic:block>
               <actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e">
      	      <input type="hidden" name="<actinic:variable name="CatalogURL" /><actinic:variable name="SectionPageName" />" />   
               </actinic:block>
      Jonathan Chappell
      Website Designer
      SellerDeck Website Designer
      Actinic to SellerDeck upgrades
      Graphicz Limited - www.graphicz.co.uk

      Comment


        #18
        Nice work Jonathan, thanks for providing the finished solution. Undoubtedly another bit of community code that should be incorportated into actinic as standard IMO.

        Comment


          #19
          The code:
          Code:
          <input type="hidden" name="<actinic:variable name="CatalogURL" /><actinic:variable name="SectionPageName" encoding="perl" selectable="false" />" />
          and
          Code:
                   <actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e">
          	      <input type="hidden" name="<actinic:variable name="CatalogURL" /><actinic:variable name="SectionPageName" />" />   
                   </actinic:block>
          in post #17 doesn't do anything. There are no VALUE attributes so nothing will be seen by the Perl scripts. Try deleting the whole lump and I expect you'll you'll get the same effect.

          By luck you get where you want to go because the Actinic scripts, in the absence of a PAGEFILENAME parameter, default to returning you to the home page of the site after an add to cart.

          Did anyone try my post #16 which should work as required?
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #20
            Thanks Norman

            Norman's code works (with the closing >) in the sidebar and the best sellers.
            Code:
            <form method="post" action="<actinic:variable name="OnlineScriptURL" value="Shopping Cart Script URL" />" onsubmit="this.PAGEFILENAME.value = this.PAGEFILENAME.value.replace(/acatalog\//i, '')">
            <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" />" />
            Jonathan Chappell
            Website Designer
            SellerDeck Website Designer
            Actinic to SellerDeck upgrades
            Graphicz Limited - www.graphicz.co.uk

            Comment

            Working...
            X