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
 Client wants full cart form fields to display
Author « Topic »  

RayCramblit
Advanced Member

USA
173 Posts

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

Posted - 08/13/2020 :  20:22:14  
My client says recently her cart appearance changed. She said on checkout the full list of form fields was visible on checkout without having to select the country from the drop down before displaying all the form fields. She says it always has shown all the fields without having to select the country first.

There have been no cart updates and she says she did not change any settings in the admin area.

Is there any way to switch back to the full form field display on page load?

Thanks in advance.

Ray Cramblit

Vince
Administrator

42761 Posts

Posted - 08/14/2020 :  02:04:46  
Hi Ray
Could it be that she simply enabled more countries in the admin countries page? If only one country is enabled there is no reason to have the country selector. If more than one is selected then the country is selected first so when selected the system knows what fields to display such as Zip or Postal Code. State dropdown or text entry etc.

Vince

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

RayCramblit
Advanced Member

USA
173 Posts

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

Posted - 08/14/2020 :  04:50:48  
She does sell to other countries. She says the cart form used to open with all fields exposed when the cart opened.

Ray Cramblit

dbdave
ECT Moderator

USA
10409 Posts

Posted - 08/14/2020 :  06:44:04  
Hi Ray, many moons ago, yes that was true, but perhaps the client updated from a really old version.

I have a feature on my site where we needed those fields expanded, and this what I did.
In cart.php, just before the include line that calls up the cart, add this (in red)

<?php
if (!isset($_SESSION['country'])) { $_SESSION['country']='United States of America'; }
include "vsadmin/inc/inccart.php"
?>

Of course, this assumes the store is using the default "United States of America" text and has not been changed.
If the primary country is something else, just change "United States of America" to that country (make sure it's entered the same as the way it shows in the cart.

Hope that helps.

Thanks,
David

RayCramblit
Advanced Member

USA
173 Posts

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

Posted - 08/14/2020 :  11:54:14  
Thanks Dave. That worked!

Client is happy!

Thanks for the help. I appreciate it.

Ray Cramblit

xxcfdrr
Advanced Member

USA
231 Posts

Posted - 11/20/2020 :  11:45:42  
What is the .asp equivalent here?

I am wanting to have the United States of America country drop down box already selected during the check out.

I tried the code "if (!isset($_SESSION['country'])) { $_SESSION['country']='United States of America'; }" in the cart.asp page and it did not work. I'm guessing this is for .php only.

dbdave
ECT Moderator

USA
10409 Posts

Posted - 11/20/2020 :  11:54:57  
For .asp that should be <% if SESSION("country")="" then SESSION("country")="United States of America" %>
Although be sure you have the US listed as United States of America spelled out like that.

David

xxcfdrr
Advanced Member

USA
231 Posts

Posted - 11/20/2020 :  12:08:32  
That worked like a charm. Thank you and have a great weekend.

dbdave
ECT Moderator

USA
10409 Posts

Posted - 11/20/2020 :  12:17:16  
You're welcome and you have a great weekend as well.
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000