Announcement

Collapse
No announcement yet.

Assoicated Product Thumbnails in Cart...

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

    Assoicated Product Thumbnails in Cart...

    Hi Everyone - hope you can help me with this one!

    On a product page I have a component, with an attribute and choices.

    These choices have an associated product assigned to them.
    The component for these choices is set to 'Component as separate orderline'

    When added to cart only the the choice (associated product) goes to cart as I have ticked 'no order line for main product'. VERY HAPPY.

    So my question is: Can I send the associated products thumbnail to the cart with the component orderline.

    (My product pages go straight to cart and skip confirmation page when clicking add to cart button. Also - my cart is already set up to display images for a product)

    Hope someone can help

    Thanx

    #2
    Anyone?

    Anyone help me out with this one?

    Comment


      #3
      Hi,

      I have tried to work it but have had no success so far, you can get over the thumbnail image for a product that has an orderline. I am looking to see if there is a possibility of doing what you want. Will post back with my findings.

      Kind regards,
      Bruce King
      SellerDeck

      Comment


        #4
        Hi,

        To get the associated product thumbnail to the cart you will have to Edit ActinicOrder.pm . Needless to say, please make a copy of the file before you edit it.

        Search for the following line
        '# Check components displayed as separate order line'

        Scroll down to...

        my $sProductLines = ProductLineHTML($pComponent->{'REFERENCE'},
        $pComponent->{'NAME'} . $pComponent->{'DDLINK'},
        $sCompQty,
        $sProductLineHTML);

        And replace with...

        my($nStatus, $sMessage, $pAssociatedProduct) =
        GetComponentAssociatedProduct($pProduct,
        $pComponent->{'REFERENCE'});
        if($nStatus != $::SUCCESS)
        {
        return($nStatus, $sMessage);
        }
        my $sProductLines = ProductLineHTML($pComponent->{'REFERENCE'},
        $pComponent->{'NAME'} . $pComponent->{'DDLINK'},
        $sCompQty,
        $sProductLineHTML, "", "", $pAssociatedProduct->{'THUMBNAIL'});

        Save the file and exit. Once done update the site.

        Hope this helps,

        Kind regards,
        Bruce King
        SellerDeck

        Comment


          #5
          Wicked - Thank Alot!

          Comment

          Working...
          X