Announcement

Collapse
No announcement yet.

Associated Products Single Component Layout

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

    Associated Products Single Component Layout

    Hi there I am relatively new to the code side to actinic and am trying to make some adjustments to the existing layout code.

    At present the single component layout simply adds a check box and the text that I specify and selecting this box adds the component to the basket using the associated product price, tax and shipping as a new line.

    Fine...

    What i am looking to do is to have it so that the associated product shows with its retail price followed by associated products image.

    Thanks in advance for any help you may be able to shed on the situation.
    www.flytesofancy.co.uk, www.electricfencingkits.co.uk, www.dorsetlogstores.co.uk, www.framebow.co.uk

    #2
    Welcome to the Community, Gareth.

    See the Advanced Guide for Variable Qualifiers, in particular AssociatedProduct.

    For example, you should be able to use:

    <actinic:variable name="AssociatedProduct::ProductImageFilename" />

    The price is more complex as it's not as simple Variable but could be part of a list of quantity dependent prices, etc. However <actinic:variable name="AssociatedProduct::ProductPriceRaw" /> may be usable with a bit of PHP to format it and add VAT, etc.

    Finally, all the above is for the Product pages only, not the Cart, which is a lot more difficult to alter.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thank you Norman thats worked a treat

      I was very close....

      I was just making silly mistakes that occur when burning through too much coffee and lighting the candle at both ends.

      hard to find the answer when your not sure what question to ask.

      I have got as far as here but am struggling to get the tax to be added to the AssociatedProduct::ProductPriceRaw.

      Code:
      ]<table width="" border="0" cellpadding="2">
        <tr>
          <td valign="middle"><actinic:block >
      	<a><img src="<actinic:variable name="AssociatedProduct::ProductImageFilename" />" width="50" border="0" alt="<actinic:variable name="AssociatedProduct::ProductName" />  +£<actinic:variable name="AssociatedProduct::ProductPriceRaw" />"></a>
      </actinic:block></td>
          <td valign="middle"><actinic:variable formatting="bold" encoding="actinic" name="ComponentDisplayLabel" /> <em>(+ £<actinic:variable name="AssociatedProduct::ProductPriceRaw" />)</em>
      <actinic:block if="%3cactinic%3avariable%20name%3d%22ComponentRetailCustomerMessage%22%20%2f%3e%20%21%3d%20%22%22">
      <br /><Actinic:PRICE_EXPLANATION PROD_REF="<actinic:variable Name="ProductID" />" COMPONENTID=<actinic:variable name="ComponentIndex" />><actinic:variable name="ComponentRetailCustomerMessage" /></Actinic:PRICE_EXPLANATION><br />
      </actinic:block></td>
          <td valign="middle"><actinic:block if="%3cactinic%3avariable%20name%3d%22IsComponentCheckboxShown%22%20%2f%3e">
         <input type="checkbox" name="<Actinic:Variable Name="UIWidgetName"/>" <actinic:block if="%3cactinic%3avariable%20name%3d%22IsSelectedByDefault%22%20%2f%3e">checked="checked"</actinic:block> />
      </actinic:block></td>
        </tr>
      </table>
      www.flytesofancy.co.uk, www.electricfencingkits.co.uk, www.dorsetlogstores.co.uk, www.framebow.co.uk

      Comment

      Working...
      X