Announcement

Collapse
No announcement yet.

Component default value when using multiple Add To Cart buttons

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

    Component default value when using multiple Add To Cart buttons

    Please see our site at the following:

    http://tinyurl.com/ydttgz9

    When adding a product to cart from an Extended Info page, you have the option of a 2 year warranty (no extra price) or 5 year warranty for extra. However, when you add to cart straight from the product section listing there is no warranty displayed in the cart at all. This component is not optional and we would like a 2 year warranty to be added by default. We do not want to add the warranty option to the section listings as there would be a lot of clutter, and the vast majority of customers only choose a 2 year warranty anyway.

    Why does no warranty appear in the cart, and how can I make the 2 year warranty by default add to the cart when the button is used at section level?

    Thanks in advance for any help.

    Matt

    #2
    If you put component options on the first layout then use CSS to hide them from view.
    Peblaco

    Comment


      #3
      Thanks Louise, works perfectly. The following was inserted into the standard layout on the product section page:

      <div class="hideElement">
      <actinic:variable name="AttributeList" />
      <actinic:variable name="ComponentList" />
      </div>

      And the following CSS:

      .hideElement { display: none; }

      Now the default values are added for each product, and it looks no different to the customer.

      Matt

      Comment

      Working...
      X