inoweb
member
Posts: 14
|
My website will sell quantity-limited items, but I want to use e-junkie so I don't have to deal with delivery.
However, after I planned on sending the product ID through the custom variable... I saw that only 1 is allowed per order, and I want to use the cart feature - not buy it now.
So, my next thought is that I'll use the item-specific information to grab the item number, but I've never dealt with this in regards to post-payment data processing. I've always just used delimiters & split the custom variable.
Do I just set my script to check:
if ($item_number1) {
do this}
if ($item_number2) {
do this
}
& so forth? What I am asking is that the x represents numbers 1+ & that I only have to create variables like listed above (to whatever number, like 10) to be sure that I capture that data?
I'm pretty sure this is the case, but I want to be sure cuz I would like to know things are going to respond before I make something live.
I have another solution that isn't quite as nice & I hope that this'll work.
Thanks.
# POSTED ON: March 7, 2008 @ 04:45 GMT -7
|
inoweb
member
Posts: 14
|
I've asked 3 questions in the last month, and they don't get answered. I see others getting help here, but I have to revert back to the email contact to get support....
Am I missing something here?
# POSTED ON: March 7, 2008 @ 11:08 GMT -7
|
E-junkieChef
E-Junkie Crew
Posts: 911
|
Sorry about that. Whenever the script is called, we send it item_cart_position along with item_number1, item_number2 etc. and item_cart_position will contain the position (1,2 etc.) of the item the notification is being sent for.
So you can do:
eval("\$current_item_number = \$item_number$item_cart_position");
and then do the if.. then logic you have.
# POSTED ON: March 8, 2008 @ 04:12 GMT -7
|