Announcement

Collapse
No announcement yet.

Add to basket straight from Mini Best Seller Layout

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

    Add to basket straight from Mini Best Seller Layout

    Does anyone know if and how to include an add to basket straight from a Mini Best Seller and Mini New Products Item layouts?

    The code I'm currently using (follows) works elsewhere on the site but does nothing, not even through up any errors:
    Code:
    <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="prod-sect">
    
    <h1><a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<actinic:variable Name="ProductID" />&amp;NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">&amp;SHOP=<actinic:variable name="ShopID" /></actinic:block>"><actinic:variable name="ProductName" /></a></h1>
    
    <div class="prod-img"><a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<actinic:variable Name="ProductID" />&amp;NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">&amp;SHOP=<actinic:variable name="ShopID" /></actinic:block>"><img src="<actinic:variable name="ProductThumbnailImageFileName" />" alt=""/></a></div>
    	<div class="detail">
    		<p class="price">
    			<actinic:block type="PriceList" >
    			<actinic:variable name="PriceLayout" />
    			</actinic:block>
    		</p>
    		<p>Approx stock: <span class="highlight"><actinic:variable name="StockLevel" /></span></p>
    		<actinic:block if="%3cactinic%3avariable%20name%3d%22IsInStock%22%20%2f%3e" >
    			<p><Actinic:Variable Name="QuantityPrompt"/> <input type="text" name="Q_<Actinic:Variable Name="ProductReference"/>" size="3" value="1" class="formfield" /></p>
    		</actinic:block>
    		<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" ><p><actinic:variable name="AddToCartButton" /></p></actinic:block>
    		<p><a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<actinic:variable Name="ProductID" />&amp;NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">&amp;SHOP=<actinic:variable name="ShopID" /></actinic:block>">More info <b>&raquo;</b></a></p>
    	</div>
    </div>
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
    </form>
    </actinic:block>
    To see an example page, go to: http://www.pixelcreation.co.uk/clients/ctm/store/
    Web . Design . Multimedia . Branding

    #2
    It's sadly an area actinic got wrong IMO, particularly on related products. However Norman has a plugin to cater for it now on these. Perhaps that could be changed to work on the other lists. It would still involve a click to create the popup page with the add to cart button on it though (i suspect), not a direct add to cart on screen.

    I guess their thinking was that people will always need to go to the main product to view details and choose options etc. which has some merit for sure, but it shouldn't rule out all products that do not need to do this.

    If you have a product and would like to add 2 of the related products, it really is an ordeal to do so and must result "ooh sod this for a game of soldiers" on occasions.

    Comment


      #3
      Aaahhh, that is annoying but not unexpected. Especially as I have managed to integrate that functionality across the site, even on a sections just containing product duplicates (with thanks to your help Lee on post http://tinyurl.com/ljq2fj).

      Oh well. Think I'll just show the details but remove the add to basket and quantity info.

      Thanks for clearing that up Lee.
      Web . Design . Multimedia . Branding

      Comment


        #4
        On another shopping cart I've been working with, you can place Add to Cart buttons just about anywhere. If the product has options, it simply shows a link direct to the product so the user can select their options before adding to cart, this is great and a real time saver for potential customers.

        One for the wish list, perhaps?

        Comment


          #5
          I think it does make sense to be able to have it at this level, so yeah, one for the wish list indeed!
          Web . Design . Multimedia . Branding

          Comment


            #6
            The add to basket from related products does work: http://www.pixelcreation.co.uk/clien...ed_Covers.html

            Still can't get it working in Best Sellers or New Products though!?
            Web . Design . Multimedia . Branding

            Comment


              #7
              i can see you have got add to basket working on related products but could i suggest you set the bounce rate to zero to leave people at the shopping basket page. I was confused as i used the add to cart for a related item, my item went in the basket but i was returned (very quickly ) to the product I just added, with addto cart button staring at me - my first throught was i was i need to add to cart from this page, i was just about to add it again.

              since i am familiar with actinic i checked the top of your page where the cart content is shown, this confirmed that the item was already in the cart.

              Just a thought

              Comment


                #8
                That's a good point Jo. It could be a little confusing.

                I'll check with my client but think it would be the way to go.

                I really think that the whole add to basket area could be massively improved. I'd love to see some kind of Ajax/JS pop-up which confirms. Bit like Play.com or HMV.com
                Web . Design . Multimedia . Branding

                Comment

                Working...
                X