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)
|