Announcement

Collapse
No announcement yet.

'Cost Price' relevance

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

    #16
    That would be a good addition i agree, really like that idea. I think there was a hack recently detailed on the forum about how to do it automatically, but it should be a standard option ideally.

    Comment


      #17
      Hi - when you create options in v9 using the 'Product Options' wizard you have the option to include the price of the option in the drop down list. You can enable this without using the Product Options wizard by selecting the 'Include Prices' checkbox in the 'Layout' tab of the component (you need to be using the 'Standard Component Layout' for this to work).

      Comment


        #18
        Did note that in the order detail table the cost price is shown against each product, with a little query work, we can now run a report that shows us the profit per order, per week, etc.

        Not perfect as it would be better to have a report like this built into Actinic but it does the job.
        David Mawson
        Phoenix Trading

        http://www.sweetswholesale.co.uk - Wholesale confectionery suppliers

        Comment


          #19
          Originally posted by cdicken
          Hi - when you create options in v9 using the 'Product Options' wizard you have the option to include the price of the option in the drop down list. You can enable this without using the Product Options wizard by selecting the 'Include Prices' checkbox in the 'Layout' tab of the component (you need to be using the 'Standard Component Layout' for this to work).
          Seems to be greyed out if you have a product made up of only components with no attributes/choices.

          Comment


            #20
            While we're talking about Component pricing, I have a question.

            If you have a Component that doesn't have any permutations, is there any way of getting at the Component price (the entry in the Price field on the Component details / Prices tab)?

            I can see this as nValue2 in the database but cannot see any variable (or List as it's possibly dependent on price schedule) that gets at this.

            If you associate a product with said Component and use associated prices, then it is possible to access the price via AssociatedProduct::ProductPriceRaw.

            Reason I'm asking, is that I've just done an add-on that dynamically displays a products price and it's working for every type of variant except Components with simple pricing. You have to associate a product and use it's price if you want to have a simple checkbox.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #21
              omg hax

              PHP Code:
              <actinic:block php="true" >
              $prodrefs "<actinic:variable name="ProductID" />";
                  
              $connect odbc_pconnect("ActinicCatalog9","",""SQL_CUR_USE_ODBC);
                      
              $query "SELECT [nCostPrice] FROM [Product] WHERE [Product Reference]='".$prodrefs."'";
                      
              $result odbc_exec($connect$query);
                      while(
              odbc_fetch_row($result)){ $ThisCostPrice odbc_result($result1); }
                  
              odbc_close_all();  

              $ProductCostPriceFormatted "&pound;".number_format($ThisCostPrice/1002'.'',');
              $ProductCostPriceRaw number_format($ThisCostPrice/1002'.''');

              //echo $ProductCostPriceRaw;
              echo $ProductCostPriceFormatted;
              </
              actinic:block
              Until this gets fixed, this elegant hack will have to do.

              Drop this into your template at the product level.

              I made a template with it in and called it like this:
              HTML Code:
              <strong><actinic:variable name="CroweCostPrice" /></strong>
              Tut-tut Actinic towers, your coders need to talk to each other.

              Comment


                #22
                Hi Norman,

                An interesting sounding patch. Does it work for price schedule prices too? I have a feeling the actinic price grid doesn't. Components are somewhat annoying when they effect the price of the product and one can't get the total until the product is added to the basket.

                Comment


                  #23
                  Originally posted by cdicken View Post
                  Hi all

                  The next maintenance release of Actinic will feature two new variables to use online:
                  ProductCostPriceFormatted - which will display the cost price with all currency symbols etc.
                  ProductCostPriceRaw - the unformatted price for use in calculations etc.

                  Hopefully these two will start to mean the cost price field is rather more useful than it is currently as it will basically work as a second price field.

                  (Cost Price is already in the flat file import btw, so you may want to shorten those odds)
                  Has a version been released or is on the horizon that will allow the 'Cost Price' field to be used in the site yet?

                  A new client wants to have original and sale prices on their site and was hoping to avoid using a custom variable for them.
                  Web . Design . Multimedia . Branding

                  Comment


                    #24
                    I asked this a few days, happened to see Chris reading it, but no answer yet, I expect that no news is bad news.

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

                    Comment


                      #25
                      I'm fairly sure CD has already confirmed that the CostPrice variable would be made available to the design, hasn't he?
                      I'm sure I have read it somewhere on the forum previously (don't think I dreamt it...my dreams aren't quite THAT square!)
                      Tracey

                      Comment


                        #26
                        He did say that but it would be in the next release which I don't think we've had yet.

                        I tried to use the 'Cost Price' variable as he described in this thread but got script errors.
                        Web . Design . Multimedia . Branding

                        Comment


                          #27
                          Originally posted by TraceyHand View Post
                          I'm fairly sure CD has already confirmed that the CostPrice variable would be made available to the design, hasn't he?
                          I'm sure I have read it somewhere on the forum previously (don't think I dreamt it...my dreams aren't quite THAT square!)
                          Pretty sure he said it too, with the delays though it might be far less important and forgotten about. My client's site has gone live now with a 'hope' now rather than a simple yes or no.

                          Comment


                            #28
                            Hi,

                            I'm trying to find this information out for you but I have to say that it looks like it's only available to the MOTO form, but let me get that confirmed for you.
                            ********************
                            Tracey
                            SellerDeck

                            Comment


                              #29
                              Hi,

                              I'm pleased to be able to confirm that it is available to the product layouts in 9.0.3
                              ********************
                              Tracey
                              SellerDeck

                              Comment


                                #30
                                Woot, thanks Tracey, can you confirm the variable name also please?

                                Comment

                                Working...
                                X