Announcement

Collapse
No announcement yet.

Displaying Price in Section Link

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

    #46
    actually, I can use that too because I resorted to drastic measures to display a fragment image above a product listing, on a SPP, today (I coded it into the section list with a blockif to test for PageName!)

    Might fix that while I think about it LOL

    Thanks (again!) Norman!
    Tracey

    Comment


      #47
      Just edited my last post so it skips any product with £0 price.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #48
        Originally posted by NormanRouxel View Post
        Just edited my last post so it skips any product with £0 price.
        oooh..now, is that wise?
        What if a SPP product is set with £0 price and 'sum of components'?
        (some of mine are)
        Just wondering

        edit...would it be better to test for the 'can be ordered online' box being checked instead? To allow for those who use products as fragments etc
        Tracey

        Comment


          #49
          What if a SPP product is set with £0 price and 'sum of components'?
          In that case you'd not have a price to display anyway as the basic product price is all we can show and that would be £0 and Actinic shows nothing in these case.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #50
            Sorry, I misunderstood your edit. I thought you were saying that the new code skipped fragments and zero price products but I realize you meant it skipped zero price products only when pulling the price.

            Much appreciated, Norman, thank you.
            Tracey

            Comment


              #51
              This thread just keeps popping up, time and time again!

              I'm SURE I'd read something but can't find it now.

              Is there a way to get this method, of pulling the product details into the section link, to ONLY show details from the FIRST product on a page where there may be more than one product listed?
              Were you thinking of a similar thread where you can pick up a section image from the first product image in a section?

              http://community.actinic.com/showthread.php?t=34663

              Comment


                #52
                Thanks, Jo, I'm already doing that anyway.
                I had seen that but it wasn't quite the problem I was having (as I'm creating cut down loadings (description/price etc) pulled from the product too, not just a section image.
                Tracey

                Comment


                  #53
                  Quote:
                  What if a SPP product is set with £0 price and 'sum of components'?
                  In that case you'd not have a price to display anyway as the basic product price is all we can show and that would be £0 and Actinic shows nothing in these case.
                  I have a product that does not have product price but uses 'Sum of Components', would I be right in assuming (based on Norman's quote in post #49) there is no way of displaying 'From £2.95' where £2.95 is the lowest price in 2 attribute permutation grid.

                  I think I know the answer but thought I would check.
                  Darren Guppy
                  Golf Tee Warehouse
                  Golf Tees and Golf Accessories.

                  Comment


                    #54
                    Darren

                    Afraid it's only the basic product price that will display.
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                      #55
                      I have found an acceptable alternative searching the forum which seems to do what I require: Displaying "from price" when using components

                      As I am using 'Sum of Components' I can enter a product price which will be ignored in calculating the price but will still display.
                      I can also create a BlockIf with:
                      Code:
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22PricingModel%22%20%2f%3e%20%3d%3d%201"> from </actinic:block>
                      to add the word 'From' to any price display where 'sum of components' is used.

                      It works on a product page, just need to try it in a section link page.

                      UPDATE: I have now tested it and appears to work OK in section links on a section page.
                      Darren Guppy
                      Golf Tee Warehouse
                      Golf Tees and Golf Accessories.

                      Comment


                        #56
                        Nice one Darren. Will be interested in testing that.
                        Tracey

                        Comment


                          #57
                          Originally posted by mediacat View Post
                          <actinic:block type="ProductList" >
                          <actinic:block type="PriceList" >
                          <actinic:variable name="PriceLayout" />
                          </actinic:block>
                          </actinic:block>

                          seems to do the trick for me within my section layout, please note this is base on 1 product per section.
                          This doesn't work if the item on the page is a duplicate product, unless you manually hit the "reset duplicate" button on the master product. As we have over 900 products, hitting the "reset" button that many times every time we have a price change is a bit tedious.

                          Any Ideas?

                          Comment


                            #58
                            Originally posted by pinbrook View Post
                            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="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" >
                            <div style="float: right;">
                            <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>
                            <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 > 10)
                            {
                            $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>
                            Now this is very interesting, thanks for posting it.

                            I've been playing about with it with a view to making a few modes to fit in with my design, I'm wondering what I need to do to remove the quantity box, I've tried the obvious hack of removing the
                            Code:
                            <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" />
                            but it breaks the code
                            Thanks for this guys. I was wondering if there is a way to display just the add to cart button at section link level?

                            Thanks,

                            Matt

                            Comment


                              #59
                              Yes that's possible, just remove the bits you don't want showing, it doesn't all have to be there, it's just an option, although price wants to be there of course.

                              Comment


                                #60
                                Thanks Lee, that's exactly my problem, as I'm not a coder, I tried to remove bits of the code but it broke. Would you be able to show me the code I need to use to just have the add to cart button?

                                Comment

                                Working...
                                X