Nor me.... which I why I asked for a URL so we can visualise the requirement
Announcement
Collapse
No announcement yet.
Adding a Component to a Product
Collapse
X
-
Elysium:Online - Official Accredited SellerDeck Partner
SellerDeck Design, Build, Hosting & Promotion
Based in rural Northants
-
Originally posted by demalpasI can get the component name details to display on the product page with a check box so that the purchaser can include/exclude the component with the main product (a mower) but I cannot get the price of the component to display.
Comment
-
He doesn't mention where he wants the price of the component to display - I made an assumption (something I'm rather good at) that it was on the drop down menu that I've tended to use for this. Consequently, I assumed that what he wanted to do was all contained in the help.
A URL would help.Elysium:Online - Official Accredited SellerDeck Partner
SellerDeck Design, Build, Hosting & Promotion
Based in rural Northants
Comment
-
Originally posted by leehackIt's not straightforward unless i am misunderstanding, it's impossible. He wants the standard component checkbox, but he also wants the system to automatically add the price. That's not going to happen unless at least 5,000 of us have been going mad and doing it the wrong way (ie manually) for the past 5 years.
The only way of using standard actinic to add prices automatically is by permutations. Anything else and it's manual. Unless of course you want to codge a layout just for use on the required products.
All I am trying to find out is how to do that using Actinic. Thanks for your thoughts so far.
Comment
-
You either add the associated product Mike via the associated product list on the right hand side of a component screen (you do this if associating to a product setup on the site as it will take the price off that product). OR you select the 'Prices' tab on the component and input the price yourself. Neither of those options will add the price onto the screen though, but they will add it to the prices in the cart. You have to add the price manually to appear on screen, unless you use my other method.
Comment
-
Originally posted by RuralWebIs this what you are trying to do http://www.the-old-smokehouse.co.uk/...dard_Heat.html
Comment
-
Originally posted by leehackYou either add the associated product Mike via the associated product list on the right hand side of a component screen (you do this if associating to a product setup on the site as it will take the price off that product). OR you select the 'Prices' tab on the component and input the price yourself. Neither of those options will add the price onto the screen though, but they will add it to the prices in the cart. You have to add the price manually to appear on screen, unless you use my other method.
Comment
-
Associate a product with the component.
Then if you simply put
<actinic:variable name="AssociatedProduct::ProductPriceRaw" />
into a Component Layout, then the raw price shows.
Use a bit of PHP to format it properly. Other posts show how to do this.
You may also want a block around it to inhibit the display if the price is null (e.g. no Associated Product).Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
Originally posted by demalpasMany thanks Lee - finally we have the answer - to part of the problem - namely no matter what you do, the price of a component cannot be displayed on the product page using a simple checkbox design but can be displayed if you use a cumerbersome and unnecessary drop downlist of "No thanks" and "Yes Please - [£20]. Ok but whow!
In fact as a petrol can is going to pretty much be a static value, i wouldn't bother trying to use php and the raw value, i'd just hard code a component layout specifically for the petrol can combination. All i guess you need is the price part hard coded in after the html for the component field. Make sure you associate with a product though, that gives you a global price change if needed, as will the component layout codge.
Would be a good one for the AUG if you crack it.
Comment
-
This works for me:
Code:<actinic:block php="true"> $aspriceraw = '<actinic:variable encoding="perl" name="AssociatedProduct::ProductPriceRaw" selectable="false" />'; if ( $aspriceraw != '' ) formattedcurrency($aspriceraw, 2, '.', ',', '£'); </actinic:block>
The above displays an ex VAT price. For Inc VAT use:
Code:<actinic:block php="true"> $aspriceraw = '<actinic:variable encoding="perl" name="AssociatedProduct::ProductPriceRaw" selectable="false" />'; if ( $aspriceraw != '' ) formattedcurrency(1.175 * $aspriceraw, 2, '.', ',', '£'); </actinic:block>
Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
Many thanks to all those who have contributed. Lee - your drop down list works fine on the product page but in the shopping cart there is no option to remove the component - bizarre!
Norman - many thanks for your suggestion/code - I will have a go at that - watch this space.
Thanks again
All - BTW the site (still not finished yet) is www.morethanmowers.co.uk but I am using a test site to develop.
Comment
Comment