Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How to charge for "text field" in Product options?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-17-2004, 05:31 AM
 
pipercub pipercub is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 82
 

Default How to charge for "text field" in Product options?

Hello All,

I am trying to set up a product that will allow the customer to submit their custom message. I can do this just fine be leaving the "option list" blank for that specific product option.

However, what I need to do, is to charge $5 more if the customer fills out that option field.

In other words...

If the option filed is blank there is not upcharge.
BUT
If the option field contains text, add $5


The only default solution I found was to create the blank text box, but then also create a drop down option saying "Custom Message Yes, Custom Message No". The only problem with this is that it tends to be confusing for the customer.

Maybe the answer lies in using "exceptions" or "product validation". However, I know very little about these features.

Any thoughts would be great.

Sincerely,
Piper
__________________
x-cart 3.4.4 (UNIX)
Reply With Quote
  #2  
Old 11-17-2004, 07:37 AM
 
western-merc western-merc is offline
 

Advanced Member
  
Join Date: Dec 2003
Location: Tacoma, WA
Posts: 43
 

Default

What if instead of a drop down menu, you used two radio buttons? The first could be selected by default next to text stating "No Custom Message" and then the second next to a text field?
__________________
X-Cart Version: 4.0.17
Linux 2.4.21-37.ELsmp
Apache 1.3.34
MySQL 4.0.25-standard
PHP 4.4.1
Reply With Quote
  #3  
Old 11-22-2004, 04:08 PM
 
pipercub pipercub is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 82
 

Default

I guess I'm not sure how to have x-cart generate a radio button. I'm using the latest v3.5.x. Are radio buttons a part of 4.x?

Thanks,
Piper
__________________
x-cart 3.4.4 (UNIX)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:03 PM.

   

 
X-Cart forums © 2001-2020