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

Editing checkout form

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 11-03-2008, 06:08 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Editing checkout form

What happens if you change
<input type="checkbox" id="ship2diff" name="ship2diff" value="Y" onclick="javascript: ship2diffOpen();"{if $ship2diff} checked="checked"{/if} /></td>

to
<input type="checkbox" id="ship2diff" name="ship2diff" value="Y" onclick="javascript: ship2diffClose();"{if $ship2diff} checked="checked"{/if} /></td>

?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #12  
Old 11-03-2008, 07:52 AM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default Re: Editing checkout form

HI J,

Thanks again for the new reply.
I tried that now ( and previously over the weekend)
thinking that might work- but it keeps the page closed.

I don't really know j/s but also tried ( it was a wild guess with no luck)


<input type="checkbox" id="ship2diff" name="ship2diff" value="Y" onclick="javascript: ship2diffOpen();"{if $ship2diff} checked="unchecked"{/if} /></td>

and you still have to click in the box to open the form

this is turning out to be a real brain twister- appreciate all your help-
best
Scott V
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #13  
Old 01-13-2009, 01:23 PM
 
ndent ndent is offline
 

Member
  
Join Date: Aug 2006
Posts: 16
 

Default Re: Editing checkout form

Any news on this? Like fotodog13, we also have a gift site and want the ability to *ALWAYS* ask for a shipping address on a new order, even when the customer has ordered from us before and it's saved a previous 'shipping' address. In a perfect world, during the checkout process it would show the shipping address as blank fields *always*... but with an option to populate the fields with the billing address if it's the same for this particular order.
__________________
x-cart pro 4.1.8
Reply With Quote
  #14  
Old 01-13-2009, 02:25 PM
 
scott@fotofiction.com scott@fotofiction.com is offline
 

Newbie
  
Join Date: Dec 2008
Posts: 1
 

Default Re: Editing checkout form

Hi ndent,

The site I am working on is a gift basket site and the owner is not using the shipping module portion of xcart.

I solved my problem by modifying my detailed description box.
I added a text option box to the product and then added a piece of j/s to the option that forces the customer to enter a delivery address and phone number before it goes to check out.

I need to run out now but will post how I did this tomorrow AM ( sorry I need to go into a meeting now. It may solve your problem too
__________________
fotodog13
Reply With Quote
  #15  
Old 01-14-2009, 03:46 AM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default Re: Editing checkout form

Ndent

Sorry I could not respond to this last night.
It has been awhile since I worked on that page but I do not believe I was able to solve the problem that way but did figure out a work around, that did solve the problem and also addressed another issue and solved that as well.


On the site I am working on I added option text fields for who the product ships to on the detailed product description pages.

At the bottom of the product option groups box page ( in your admin) there is a box where you can put in some java script. In this box called Validation script ( Javascript)
I added this script

if (document.getElementById('po521').value == "")
{alert('Please enter the delivery address & phone.')
document.getElementById('po521').focus()
return false;
}
else {
return true;
}

If the customer does not fill in the information they cannot advance the checkout process.

I decided to do this because during the course of trying to solve this problem I encountered another issue that may effect you too if you are working on a gift site.

This client wanted the ability to process orders that would allow multiples of the same product shipped to different locations. This probably could be solved by setting up an address book ( a lot of work and beyond the budget this client wants to spend) but it dawned on me that I could get around that by stripping out the quantity box on the detailed description page and make every item ordered a quantity of one. Each item is added separately.

This way if a customer wants to buy 4 of the same gift basket that ship to 4 different locations each item shows the product and its location on the invoice and e mail that the customer and the site owner receive. ( make sense)
It may not be a perfect solution but it is pretty streamlined and works pretty good.
When the order is received by the site owner there is no doubt which product goes to who .

Hope this is a help to you.

Best
Scott V
fotodog13



__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:01 PM.

   

 
X-Cart forums © 2001-2020