X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Editing checkout form (https://forum.x-cart.com/showthread.php?t=32016)

JWait 11-03-2008 06:08 AM

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>

?

fotodog13 11-03-2008 07:52 AM

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

ndent 01-13-2009 01:23 PM

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.

scott@fotofiction.com 01-13-2009 02:25 PM

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 01-14-2009 03:46 AM

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





All times are GMT -8. The time now is 08:50 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.