the ADD NEW ADDRESS link in the shopping cart checkout page doesn't work. returns a 404 error.
Change line number 393 in the cart.module (// $Id: cart.module,v 1.44.2.4 2005/07/28 17:18:57 mathias Exp $)
from this:
$shipping_form = form_select(t('Shipping to'), 'shipping_address', $edit['shipping_address'], $options, t('Please choose where you would like the items to be delivered. You can also %add_address.', array('%add_address' => l(t('add an address'), "address/$user->uid/add"))));
To this:
$shipping_form = form_select(t('Shipping to'), 'shipping_address', $edit['shipping_address'], $options, t('Please choose where you would like the items to be delivered. You can also %add_address.', array('%add_address' => l(t('add an address'), "user/$user->uid/address/add"))));
And change line 395 from this:
$billing_form = form_select(t('Billing to'), 'billing_address', $edit['billing_address'], $options, t('Please choose where you would like the invoice to be sent. You can also %add_address.', array('%add_address' => l(t('add an address'), "address/$user->uid/add"))));
to this:
$billing_form = form_select(t('Billing to'), 'billing_address', $edit['billing_address'], $options, t('Please choose where you would like the invoice to be sent. You can also %add_address.', array('%add_address' => l(t('add an address'), "user/$user->uid/address/add"))));
Hope that helps someone else..
Dub
(Sorry. don't have the kit to create a patch, but, thought it worthy of posting as is above)
Comments
Comment #1
syllance commentedhere a patch that fix this issue (same code as above, but inside a patch).
tested on 4.6 and HEAD.
Comment #2
matt westgate commentedCommitted. Thanks!
Comment #3
(not verified) commented