Announcement

Collapse
No announcement yet.

Can I display the price of a component made up of associated products?

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

    Can I display the price of a component made up of associated products?

    Using v9.0.5

    I am trying to create a component comprising of 6 cushions (from an existing product) so that the pack price changes when the existing product price changes.

    I cannot see any way to display the price for the pack of 6 cushions on the product page. Anybody know how to do this?

    See image attached
    Attached Files
    Regards
    David

    #2
    No auto way of adding prices to components (you add manually into the description), only permutations add prices auto. A solution has been provided in the forum though, worth a search, Norman was involved.

    Comment


      #3
      You can make a customised Component Layout that displays the associated product price * the component quantity used.

      Go to Design / Library / Layouts / Components.
      Right-click Standard Component Layout and choose Copy.
      Rename that copy to be "Component Displaying Associated Product Price".
      Edit that layout and look for:
      Code:
      <Actinic:Variable Name="ComponentDisplayLabel"/>
      Immediately after that add:
      Code:
      <actinic:block php="true">
      	printf('£%01.2f', <actinic:variable name="AssociatedProduct::ProductPriceRaw" selectable="false" /> * <actinic:variable name="ComponentQuantity" selectable="false" />);
      </actinic:block>
      Now choose this layout for such Components.

      Only use it where the Component uses an associated product with no other complications.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Cheers Norman - that works perfectly!!
        Regards
        David

        Comment


          #5
          Wow! That was quick!
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            I already had the new layout set-up so all I all I had to do was drop that bit of code in.
            Regards
            David

            Comment

            Working...
            X