6 replies [Last post]
solarkin's picture
Offline
Joined: 09/21/2008
Juice: 20
Was this information Helpful?

We offer embroidery on our products and need to be able to charge for the embroidery. We would like to use a text box as the attribute and charge $3 if there is anything entered in the text field. Is this possible?

bhallnc's picture
Offline
Joined: 03/23/2009
Juice: 81
Re: Charge for a text field attribute.

I have a situation where I charge a "setup fee" if a certain attribute is selected. I am able to do this via the Fees module: http://drupal.org/project/uc_fee

Once installed, Add a fee and set a condition as "Condition: Order has a product with a particular attribute option". You can then select your attribute.

Once you do this, There should be a fee added to the cart if this attribute is selected.

Unarmed's picture
Offline
Joined: 08/07/2009
Juice: 141
Re: Re: Charge for a text field attribute.

Hey bhallnc i am in need of exactly what you stated in that post, would you mind going into more detail. I have tried this myself but i cant manage to get the conditional action to fire and add a fee to my order.

bhallnc's picture
Offline
Joined: 03/23/2009
Juice: 81
No problem. Go to Store

***Unarmed***

No problem.

Go to Store Administration >> Fees >> Add a Fee
Set up your fee and submit

Go to Store Administration >> Fees and click on "conditions" of the fee you just added.
Under "Available Conditions" select "Condition: Order has a product with a particular attribute option" and Add Condition
Under "Attribute Option" select the attribute that you want the fee to be triggered with
Save Changes

That should be enough to get the fee working.

***Solarkin***

I am sorry but I didn't realize fees would not work with a text field.
First, check here to see if anyone has submitted a request for this option:

http://drupal.org/project/issues/uc_fee?categories=All

If no luck there, search to see if anyone else has had this need, and if so, if they created a patch.

Still no luck, you might need to get someone to customize this for you.

http://www.ubercart.org/forum/bounties

Unarmed's picture
Offline
Joined: 08/07/2009
Juice: 141
Re: No problem. Go to Store

Thanks for this =] I am having a really strange problem though. Ok my user picks the attribute option and adds the product to the cart, when he heads over to the checkout section the fee is listed in the payment panel ... this is all great but here the problem comes in.

The fee is not added to the preview order page and once the order is completed the fee is also not added to the order??? I have been struggeling with this for days and simply cant come up with a solution. Could you possible tell me which version of ubercart and fees you used to get your one to work?

Unarmed's picture
Offline
Joined: 08/07/2009
Juice: 141
Re: Re: No problem. Go to Store

Turns out my problem was a bug, i found a patch here

http://drupal.org/node/600892

solarkin's picture
Offline
Joined: 09/21/2008
Juice: 20
Re: Re: Charge for a text field attribute.

Thank you for the fast response on this. I was able to get uc_fee to work for every attribute type except a text field. Am I missing something with getting it to work for a text field?