Announcement

Collapse
No announcement yet.

Displaying Price in Section Link

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

    #31
    Nice one jont, i;ve got a few sites where the price is displayed at section level, but is blank where choices/atteibutes come into play. this will tidy that up

    Comment


      #32
      Jont - could you provide a URL showing the implementation?
      Being so old, I can't quite get my head around quite what it is that's being achieved here, but it sounds interesting

      TIA
      Kind Regards
      Sean Williams

      Calamander Ltd

      Comment


        #33
        Sean - I have sent you an email


        Bikster
        SellerDeck Designs and Responsive Themes

        Comment


          #34
          Many thanks Jont.
          So that's what it does
          Kind Regards
          Sean Williams

          Calamander Ltd

          Comment


            #35
            Would I be right in thinking this does as Dobbies have done with their site (see here)? It's a neat solution and definitely one I'd like to implement with the latest and greatest solution provided

            Comment


              #36
              Does anyone know if the code from post #30 can be applied on a main section ie

              Binoculars (apply here - Main section)
              ---->Bins range (sub section 1)
              ----> range 1 product section
              ----> products
              ---->Bins range (sub section 2)
              ----> range 2 product section
              ----> products

              attached screenshot should explain the structure better !

              Ive got it applied to the sub sections ok, but I cant get it to work on the main section.

              Thanks in advance.
              Regards
              Attached Files
              Last edited by Simon Clark; 11-Feb-2009, 05:29 PM. Reason: attachment

              Comment


                #37
                There needs to be a product (not section) at the next level down for it to show a price. It only reads down one level.

                Comment


                  #38
                  Indeed - it is designed for single product pages at the section level they are in.


                  Bikster
                  SellerDeck Designs and Responsive Themes

                  Comment


                    #39
                    Originally posted by grantglendinnin View Post
                    Would I be right in thinking this does as Dobbies have done with their site (see here)? It's a neat solution and definitely one I'd like to implement with the latest and greatest solution provided
                    Sorry - did not see this earlier - yes it is the same effect


                    Bikster
                    SellerDeck Designs and Responsive Themes

                    Comment


                      #40
                      as Dobbies have done with their site
                      Dobbies are using a compact product layout to display their products in 3 columns (so they look like a SPP section list). Their "Info & Buy Now" button takes you to the Extended Info page that opens in the same window and has an add-to cart button.
                      Norman - www.drillpine.biz
                      Edinburgh, U K / Bitez, Turkey

                      Comment


                        #41
                        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?

                        I'm sure it should be obvious but it's not coming to me (and it's annoying the hell out of me!)
                        Tracey

                        Comment


                          #42
                          to ONLY show details from the FIRST product on a page where there may be more than one product listed
                          A blockif for ListIndex == 1 would do the trick. E.g.
                          Code:
                          <actinic:block type="ProductList" >
                          	<actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%201" >
                          		<actinic:block type="PriceList" >
                          			<actinic:variable name="PriceLayout" />
                          		</actinic:block> 		
                          	</actinic:block>
                          </actinic:block>
                          Note that this will fail if the first item is a Fragment as they appear in the Product List.

                          If you expect to have Fragments, then some PHP code would be needed.
                          Norman - www.drillpine.biz
                          Edinburgh, U K / Bitez, Turkey

                          Comment


                            #43
                            hmm..thanks Norman
                            I actually tried that and it didn't work, for some reason.
                            I'll give it another go though..thanks
                            Tracey

                            Comment


                              #44
                              Fantastic!!!!
                              got it working, thanks Norman

                              Just had to use the condition in a couple of different places to remove both image and info...AND had to remember to put it INSIDE the productlist block!

                              Had the right condition, just in the wrong place. Needed expert confirmation to nudge me to keep trying to find the right place (as I was starting to think I just had the wrong condition!)

                              Cheers Norman, much appreciated
                              Tracey

                              Comment


                                #45
                                Here's the PHP version where we skip any Fragments and collect the price from the first product that has a non zero price.
                                Code:
                                <actinic:block php="true" >$prodprice = '';</actinic:block>			
                                <actinic:block type="ProductList" >
                                	<actinic:block if="%3cactinic%3avariable%20name%3d%22ProductType%22%20%2f%3e%20%21%3d%202" >
                                		<actinic:block php="true" >
                                		 if ( trim($prodprice) == '' )
                                			{
                                			$prodprice = <<<ENDOFCODE
                                			<actinic:block type="PriceList" >
                                				<actinic:variable name="PriceLayout" />
                                			</actinic:block> 
                                ENDOFCODE;
                                			}
                                		</actinic:block>
                                	</actinic:block>
                                </actinic:block>
                                <actinic:block php="true" >echo $prodprice;</actinic:block>
                                Norman - www.drillpine.biz
                                Edinburgh, U K / Bitez, Turkey

                                Comment

                                Working...
                                X