9 replies [Last post]
migueljds's picture
Offline
Joined: 12/11/2007
Juice: 19
Was this information Helpful?

Hi there,

I pretty new to ubercart and was hoping someone could let me know if what I want to do is possible and perhaps help me in getting it working.

I want to be able to change the product attributes as well as the quantity in the cart view page.

To understand what I mean, if you look at the attached screenshot, you see that the product attribute "Print Size" is listed under the Description heading.

However, I would like to have the Print Size product attribute listed in it's own column as a select box so people can change the attribute like they would the quantity and "Update Cart" to save the settings.

I've looked at and installed the Extra columns contribution module by zmove, and so I was wonder if perhaps I could modify that module to include the extra column I want, but don't know how?

Thanks

PreviewAttachmentSize
cartscreen.pngcartscreen.png35.42 KB
migueljds's picture
Offline
Joined: 12/11/2007
Juice: 19
Please help

I've still heard nothing about my question. I'd be willing to pay to have this contribution module developed so I could use it as it is very important, however I don't know how to create it.
Please help.
Thanks

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Please help

Hmm... honestly, I'm not sure of the feasibility of this task... mainly b/c the data on objects in the cart gets set when the first add to cart happens. This data stores the model number and attribute/option selections. There really isn't a quick way to change it all other than to remove the existing item from the cart and re-add it w/ the same quantity and new choices.

migueljds's picture
Offline
Joined: 12/11/2007
Juice: 19
Re: Re: Please help

*groan* that seems like such a long way to change the product attributes and could be quite tedious if you have a few of them to change. Surely there must be a better way to do it.

Couldn't it done that if one listed the attribute drop-down boxes in the view cart page and then when the update cart button is clicked, rather than just updating the product, the old product is removed from the cart and then the same product with the new attribute selection is added again.

Is that heading down the right track, or did I misunderstand?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Please help

That's what I'd envision as the easiest solution. It will need to perform the updates for either the update cart or checkout button - they both update the quantity currently.

migueljds's picture
Offline
Joined: 12/11/2007
Juice: 19
Re: Re: Re: Re: Please help

On update cart would probably be best in my opinion, as people are not likely to click the checkout link unless their order looks right.

So, how would I go about getting this done? Is there someone you could suggest I could pay to have this module developed for me or what should I do?

Thanks for the help, by the way.

z3b
z3b's picture
Offline
Joined: 08/15/2007
Juice: 51
Re: Re: Re: Re: Re: Please help

I like the idea of editing attributes, would be really cool to have an elegant solution to edit attributes integrated straight into uc core files.

I'm a bit surprised there is no way to change an attribut once the product is added.
If anyone got any insights.

Thanks

eoneillPPH's picture
Offline
Joined: 12/22/2008
Juice: 55
Re: Adding Product Attribute Field into Cart View
cornersoyo's picture
Offline
Joined: 11/16/2009
Juice: 6
Re: Re: Adding Product Attribute Field into Cart View

What ever happened with this??

I see something for v1.*... surely, there is a module or update for 2.*?? But I am looking high and low and not finding it.

I really like this cart, especially the ability to add attributes, very cool - but I have come to find that in almost every open source solution I get excited about, there always seems to be a glaring, mysterious problem that sits out there and never gets solved...

I guess this must be it for Ubercart. Sad

If I was a programmer, I would know why this mod is so difficult...

In my simplified, non-programmer thinking, it seems that the solution would involve an edit button next to each item in the cart view.

STEP 1:
On press, the script grabs the data from the existing item, and drops it into the fields for a new item.

STEP 2:
Upon the user submitting the 'new' item, the old one is deleted (in essence, replaced).
- OR -
If the 'new' item is aborted or not submitted, the original item remains, as if nothing happened.

To Ubercart, it would be similar to the customer creating a new item, filling it out and submitting it, and then deleting the old one. Which is pretty much what they have to do now. But to the customer, it would look like they are modifying the existing item.

So, the custom parts would be (1) the edit button in the cart view, (2) the function to read the attribute data from the existing item & open a new one that is populated with that same data, and then (3) the function to delete the old item when the new one is submitted (and if it is not submitted, simply return to the cart view).

??

Any thoughts appreciated.

Thanks much

johnlutz's picture
Offline
Joined: 01/04/2010
Juice: 25
If anyone is still looking

http://drupal.org/project/uc_attributes_in_cart

For anyone that found this post before reading any other posts.