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
Announcement
Collapse
No announcement yet.
Displaying Price in Section Link
Collapse
X
-
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.
RegardsAttached Files
Comment
-
as Dobbies have done with their siteNorman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
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
-
to ONLY show details from the FIRST product on a page where there may be more than one product listed
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>
If you expect to have Fragments, then some PHP code would be needed.Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
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 appreciatedTracey
Comment
-
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
Comment