Page 1 of 17 12311 ... LastLast
Results 1 to 10 of 166
  1. #1
    Join Date
    Sep 2007
    Posts
    77
    Plugin Contributions
    2

    Default Editing cart contents -- esp products with attributes

    On our site, all of our products have a great many attributes. It is common for a customer to set some options and add to their cart but then want to edit those options later on.

    However currently doing so, does not edit the existing products attributes in the cart, but adds another product to the cart. Needless to say, this is not what most customers consider intuitive.

    Is there a setting I can change to allow users to edit the cart contents? Or do I need to make coding changes to achieve this? Thanks

    Justin
    http://www.kuroobiya.com

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Editing cart contents

    It's a good idea, but would require custom coding.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Sep 2007
    Posts
    77
    Plugin Contributions
    2

    Default Re: Editing cart contents

    Bummer. But I wondered if that were the case. I have no option really but to do make those changes. I figured I would add some logic to the add to the cart processing to delete the existing item, and then add it again with the new option settings.

    Does that sound like the right approach?

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Editing cart contents

    Not really. The cart exists behind the scenes as a multi-dimensional session array. Rather than trying to remove parts of it, it would be more straightforward simply to update those specific values that have been changed.

    Just to warn though, you're heading into some reasonably complex code.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Sep 2007
    Posts
    77
    Plugin Contributions
    2

    Default Re: Editing cart contents

    Hmmm. Well I will give it a bash and post back here with how it all goes.

  6. #6
    Join Date
    Sep 2007
    Posts
    77
    Plugin Contributions
    2

    Default Re: Editing cart contents

    OK. I did it and it was not so tricky in the end.

    You can get it from the Zen Cart downloads page. It is called Edit Cart.

    And you can see it in action at kuroobiya.com

  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Editing cart contents -- esp products with attributes

    Nice job. Not what I had envisaged, which was the ability to change an attribute without leaving the shopping cart, but in your case where the attributes are many and really need the support of the additional information on the product_info page, an appropriate and elegant way of achieving the objective. Good solution. Thanks for sharing.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Editing cart contents -- esp products with attributes

    And it seems that somebody else wanted this to work exactly as you've designed it!
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Sep 2007
    Posts
    58
    Plugin Contributions
    0

    Default Re: Editing cart contents -- esp products with attributes

    Hi,

    I'm the "someone else" that kuroi mentioned. Love the mod ... you've saved me from a lot of hassle trying to do this myself!

    I found a small problem with the distribution zip file. The "edit_cart_button_names.php" file should be in /languages/english/extra_definitions/TEMPLATE_NAME, not /languages/english/TEMPLATE_NAME/extra_definitions.

    Thanks again. I hope others find it as useful as I do.

    Possum.


    MODERATOR NOTE: distribution zip file has been updated.

  10. #10
    Join Date
    Sep 2007
    Posts
    58
    Plugin Contributions
    0

    Default Re: Editing cart contents -- esp products with attributes

    Hi,

    I do not have any mandatory attributes, so I'd like to be able to allow customers to add the product to their cart directly from the product listing without going via the info page. With the new Edit Card mod, they can then go back and add the attributes (gift wrapping in my case) when they want to.

    I guess nobody has tried to do this before because without the Edit Cart mod it doesn't make sense.

    I went to the /includes/modules/MY_TEMPLATE/product_listing.php and commented out the "if" logic that puts up the "more info" message for products with attributes. That worked well and the resulting "buy now" button does indeed point to the "buy now" action.

    Strangely, however, clicking on that link does not go to the checkout but instead takes me to the product info page to configure the product. This is strange because, as I mentioned, the attributes are not required, and the link was supposed to take me to the checkout.

    Any thoughts gratefully received.

    Thanks

    Possum.

 

 
Page 1 of 17 12311 ... LastLast

Similar Threads

  1. v151 Add multiple products with attributes to cart with single click
    By mark777 in forum General Questions
    Replies: 1
    Last Post: 16 May 2013, 08:33 AM
  2. Products with Attributes - Instant Add to Cart with PopUp?
    By ksoup in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 20 Jun 2009, 05:52 PM
  3. Add to Cart Not Appearing with Products with Attributes. Please help me!?!?
    By alegria in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 26 Jun 2008, 11:46 PM
  4. Replies: 2
    Last Post: 3 May 2008, 10:42 AM
  5. Shopping Cart contents editing failed
    By debtag in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 25 Feb 2008, 02:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR