Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 extracheckoutfield1html info not showing in order
Author « Topic »  

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 09/18/2022 :  07:22:24  
PHP ECT v7.4.10
Added the following to includes.php
$extracheckoutfield1="How did you hear about us?";
$extracheckoutfield1html='<select name="ordcheckoutextra1" size="1">
<option value="None Selected">Please Choose an Option</option>
<option value="Google">Google</option>
<option value="Bing">Bing</option>
<option value="Yahoo">Yahoo</option>
<option value="DuckDuckGo">DuckDuckGo</option>
<option value="Other Search">Other Search</option>
<option value="Facebook">Facebook</option>
<option value="Friend">Friend - Please enter friend's name below</option>
<option value="Previous Purchase">Previous Purchase</option>
<option value="Newsletter">Newsletter</option>
<option value="Other">Other</option>
</select>';
The "How did you hear about us" shows in the order, but none of the options do.

There is a second field, $extracheckoutfield2="Referring Friend's Name";, which is a text box and works fine. The information transfers.

Also, when it is set to $extracheckoutfield1required=TRUE; and the alert pops up after clicking the continue button, after you close the alert and as soon as you click on the select dropdown, the cart continues to the next step without giving you the opportunity to select anything.


Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

quadrant
Ecommerce Template Guru

United Kingdom
1110 Posts

Pre-sales questions only
(More Details...)

Posted - 09/18/2022 :  07:38:41  
Hi Marshall,

I think you may need to escape your quotes like this:
<option value=\"Google\">Google</option>

Regards,
David

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 09/18/2022 :  08:37:14  
I had that, but it did not work either. I just tired that again and it still did not show in the order.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Edited by - Marshall on 09/18/2022 08:41:52

Vince
Administrator

42874 Posts

Posted - 09/20/2022 :  01:33:47  
Hi Marshall
If you use single quotes then you don't need to escape the double quotes, but you do need to escape the single quotes and you've got single quotes in...
Please enter friend's name below
So that should be...
Please enter friend\'s name below

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 09/20/2022 :  06:47:37  
I removed the escape from the quotes and put one in front of the apostrophe. I also changed the name to name="ectfield" and eveything sems to be working fine now. Thank Vince.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Edited by - Marshall on 09/20/2022 06:58:53

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 09/20/2022 :  06:58:17  
Try it like this:

$extracheckoutfield1='How did you hear about us?';
$extracheckoutfield1html='<select name='ordcheckoutextra1' size='1'>
<option default>Please Choose an Option
<option value='Google'>Google</option>
<option value='Bing'>Bing</option>
<option value='Yahoo'>Yahoo</option>
<option value='DuckDuckGo'>DuckDuckGo</option>
<option value='Other Search'>Other Search</option>
<option value='Facebook'>Facebook</option>
<option value='Friend'>Friend - Please enter friend's name below</option>
<option value='Previous Purchase'>Previous Purchase</option>
<option value='Newsletter'>Newsletter</option>
<option value='Other'>Other</option>
</select>';



*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.05 seconds. Snitz Forums 2000