[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] [userdb] function to delete addresses?
Well, still trying to get somewhere with multiple shipping addresses. :-(
First question: Is there a [userdb] function to delete addresses in the
address book?
Secondly, I have put the following code in the checkout page; the problem is
that shipping address nicknames with spaces in are returned as separate
selection options. I notice the values that get_shipping_names puts in the
address_book variable are separated by spaces, so there's no way of
differentiating between nicknames with spaces in, and separate nicknames. As
I understand it, loop tags support comma-separated lists, so is there an easy
way to get the get_shipping_names function to comma-separate the values?
[userdb function=get_shipping_names]
[if value address_book]
<SELECT NAME="s_nickname">
[loop arg="[value address_book]"] <OPTION> [loop-code] [/loop]
</SELECT>
<INPUT TYPE=submit NAME=mv_check VALUE="Recall Shipping">
[set Recall Shipping]
mv_todo=return
mv_nextpage=ord/checkout
[userdb function=get_shipping nickname="[value s_nickname]"]
[/set]
[/if]
On Wednesday 28 August 2002 09:48 pm, you wrote:
> Hello,
>
> I still need someone to shine some light on the multiple shipping addresses
> feature implemented in the Foundation demo. Back on the 15th, I wrote:
>
> <<
> From what I can see, shipping charges are not increased accordingly if
> someone uses multiple addresses per order, and the other problem is
> allowing people to type in their country when adding or editing an address,
> rather than selecting it from a drop-down list (I am calculating shipping
> by country).
>
> I would prefer to simplify things anyway, and just have one shipping
> address per order. It would be good to support saved shipping addresses
> though, and have the customer select the required address on the checkout
> page (like Amazon).
>
> Does anyone have any examples, or can someone point me to the relevant
> documentation? I couldn't find any reference to the [address], [modifier],
> mv_ip, mv_an, etc. tags / form variables from the 'cart' component.
>
> Also, where is the code behind the ship_addresses.html page? I couldn't
> find any reference to the [table-editor] tag. What does the 'Save here
> only' checkbox do?
>
> Thank you.
> >>
>
> I've tried chopping bits of code out from the 'cart' component and putting
> it in the checkout page, to no avail. Again, I just want to allow the
> customer to select previously saved addresses on the checkout page, and get
> rid of all that stuff on the basket page. I can't find any documentation on
> [address], {address_book}, or any of the other stuff in there.
>
> I'd really appreciate any help; I seem to spend almost all of my time
> trying to figure out Interchange, rather than getting any work done, and
> it's driving me nuts!
>
> Thanks.