Ubercart Edit Cart Item

Contrib type: 
Module
Status: 
Complete and working
Moderation: 
Awaiting moderation
Latest version: 
7.x-1.0

Downloads


Compatibility: 
Ubercart 2.x
Compatibility: 
Ubercart 3.x

This module adds an edit-button to all products in the cart. Clicking the button brings users back to the product form, where they can change the cart-item's selected attributes and/or quantity.

Installation
Just enable the module. It will work out of the box.

Modules with similar functionality
Ubercart attributes in cart: Use this module, if you want to let the user change the product's attributes directly in the cart. If you want to use the product form instead, use "Ubercart Edit Cart Item".

Please notice
Currently this module doesn't support product kits.
Product kit support for 7.x version has been added.


labor b's picture
Offline
Joined: 02/02/2012
Juice: 96
Re: Ubercart Edit Cart Item

Javascript is no longer necessary and a Ubercart 3.x version is ready for testing.

You can download it at drupal.org as soon as I have figured out how to contribute this correctly.

Website: labor b medienagentur, Drupal: labor b

studgate's picture
Offline
Joined: 02/06/2012
Juice: 54
Attributes with Options

I have been having some problems editing attributes with options. I clicked on edit and all the attributes that have options are not filled. Any help is welcome.

Thanks for the module.

labor b's picture
Offline
Joined: 02/02/2012
Juice: 96
Re: Attributes with Options

Can you give me some more information? Which Ubercart version do you use?

I figured it out myself. The 7.x version should work now. I reuploaded the files as releases.
Here's a direct link to the new 7.x version: http://www.ubercart.org/files/uc_cart_edit-7.x-dev_0.zip

Website: labor b medienagentur, Drupal: labor b

studgate's picture
Offline
Joined: 02/06/2012
Juice: 54
Re: Ubercart Edit Cart Item

thank you very much for the quick fix. I have added a little security feature just in case the user changes the ciid in the url to a cart item not in the shopping cart.

You already checked if the item is in the active's user cart so I just added an else statement if the ciid is not and redirect the user to the cart with a message.

thanks again for the module, about to send you a pm with a question.

Here is what I added in line 55 if anybody is interested:

<?php
     
} else {
       
drupal_set_message('<strong>There was a problem with the cart item, try again</strong>');
       
drupal_goto('cart');
     }
?>
end user's picture
Offline
Joined: 01/11/2008
Juice: 1728
Re: Ubercart Edit Cart Item

Nice module! I was just thinking of something similar the other day when I saw on another site. I'd be willing to donate some $ to get it working with all product types in UC3.

labor b's picture
Offline
Joined: 02/02/2012
Juice: 96
Re: Re: Ubercart Edit Cart Item

Shouldn't be too difficult. I'll see what I can do.

Website: labor b medienagentur, Drupal: labor b

labor b's picture
Offline
Joined: 02/02/2012
Juice: 96
Long time no see

Sorry, for my long absense. I got distracted with several other project and didn't have the time to finish this module.

This changed now and I just added product kit support to the 7.x version. Also I am trying to get full project access for this module.
It would be really nice if you could go to http://drupal.org/node/1978814 and post a review.

To get the latest version of this module go to:
http://drupal.org/sandbox/laborb/1418732

Or use the following command:
git clone http://git.drupal.org/sandbox/laborb/1418732.git uc_cart_edit

Website: labor b medienagentur, Drupal: labor b

labor b's picture
Offline
Joined: 02/02/2012
Juice: 96
Re: Ubercart Edit Cart Item

The module has recently been promoted to a full project on drupal.org. Check it out: https://drupal.org/project/uc_cart_edit

Website: labor b medienagentur, Drupal: labor b