Announcement

Collapse
No announcement yet.

Adding a Component to a Product

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

    #16
    Nor me.... which I why I asked for a URL so we can visualise the requirement
    Elysium:Online - Official Accredited SellerDeck Partner
    SellerDeck Design, Build, Hosting & Promotion
    Based in rural Northants

    Comment


      #17
      Originally posted by demalpas
      I 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.
      This sentence made it pretty cast iron for me, but i could be wrong as mentioned.

      Comment


        #18
        This sentence made it pretty cast iron for me
        Nope not for me - there was another thread today about auto generating the price which we replied to ???

        Comment


          #19
          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


            #20
            Originally posted by leehack
            It'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.
            Thanks Lee - you know my daughter since you have been helping her and she is not exactly thick - with a double degree including an MBA. I have 30+ years in IT, including 25+ years in IBM and have written code for countless big sites using Perl and Mod Perl - but have NO experience of Actinic so have had to follow the help files. This seems such a simple request - the ability in a shopping cart to add (or not add) an associated item to the purchase of a base product. That simple need (solved) has been in existence for several years on non-Actinic sites, including some I have built.

            All I am trying to find out is how to do that using Actinic. Thanks for your thoughts so far.

            Comment


              #21
              Is this what you are trying to do http://www.the-old-smokehouse.co.uk/...dard_Heat.html

              Comment


                #22
                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


                  #23
                  Originally posted by RuralWeb
                  Thanks for that - the answer is 'something similar' but when you get to the shopping cart the extra associated item/component must be capable of being deselected. Is that possible?

                  Comment


                    #24
                    Originally posted by leehack
                    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.
                    Many 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!

                    Comment


                      #25
                      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


                        #26
                        Originally posted by demalpas
                        Many 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!
                        Indeed Mike, it is a bit crap to be honest. But you do have the other option i mentioned of codging a component layout, you can even dust off your php skills as Norman has pointed out. It's a shortcoming for sure, stick with it, you'll find a few more.

                        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


                          #27
                          I'm sure Norman will rise to the challenge anyway Mike, he's the dogs danglies on stuff like this. I think the AUG should be renamed to the Rouxel actually.

                          Comment


                            #28
                            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>
                            Put it in Standard Component Layout.

                            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


                              #29
                              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


                                #30
                                Interesting question Mike, my initial reaction is why would someone take the time to add it if they didn't want it. My first port of call would be ticking the 'separate order line' option on the component setting, maybe that will give you what you want.

                                Comment

                                Working...
                                X