Multiple Quantity of same item go on different lines - Pleas

This is an archive of old posting to the User Forum

Multiple Quantity of same item go on different lines - Pleas

Postby Sherry Land » Mon Dec 02, 2002 11:07 am

Let me rephrase my Q...

Can anyone tell me if there is a way in ShopSite to keep multiple
quantity of the same item on the same order line?

For example, if I "Add To Cart" item ABC twice, I need this to be
placed on the order form as

**************
Qty Item
2 ABC

instead of

**************
Qty Item
1 ABC
1 ABC

Thanks,
Sherry Land
webmaster@neuralog.com
Sherry Land
 

Re: Multiple Quantity of same item go on different lines - P

Postby loren_d_c » Mon Dec 02, 2002 11:24 am

No, there is not a way to configure ShopSite to do this. The best thing
to do would probably be to include the Quantity box on the store pages
so that the shopper can indicate what quantity they want without having
to 'add to cart' multiple times.

Also, if you are processing orders based on an email notification and
you don't particularly care about the order screen itself, you could
create a custom cgi for the Order API that writes the email notification
and within that cgi loop through the products and combine the
duplicates. The best way to do this is probably to store the first
product/line item (or the values you need from it anyway) in an array,
then compare the name (or SKU) of each additional product/line item to
the name value in the array and if it is not there add the product to
the array, if it is there just increment the quantity value for that
product that already exists in the array. Then when you are ready to
write out the email, just make a loop that goes through your array.

-Loren



Sherry Land wrote:

Let me rephrase my Q...

Can anyone tell me if there is a way in ShopSite to keep multiple
quantity of the same item on the same order line?

For example, if I "Add To Cart" item ABC twice, I need this to be
placed on the order form as

**************
Qty Item
2 ABC

instead of

**************
Qty Item
1 ABC
1 ABC

Thanks,
Sherry Land
webmaster@neuralog.com
loren_d_c
 
Posts: 2571
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Multiple Quantity of same item go on different lines - P

Postby jim » Mon Dec 02, 2002 11:39 am

Hi Sherry,
There is no way to force the two line items to be consolidated into a
single line. To help minimize the occurance of this happening you could
add the quantity box to the store page.

Jim

Sherry Land wrote:

Let me rephrase my Q...

Can anyone tell me if there is a way in ShopSite to keep multiple
quantity of the same item on the same order line?

For example, if I "Add To Cart" item ABC twice, I need this to be
placed on the order form as

**************
Qty Item
2 ABC

instead of

**************
Qty Item
1 ABC
1 ABC

Thanks,
Sherry Land
webmaster@neuralog.com
jim
 

Re: Multiple Quantity of same item go on different lines - P

Postby Sherry Land » Mon Dec 02, 2002 11:55 am

Thank you Loren and also Jim for your response. I think I will just put the
counting code in my email parser. It's all about the same work.

I appreciate your response.

Sherry Land
webmaster@neuralog.com

Loren wrote:

No, there is not a way to configure ShopSite to do this. The best thing
to do would probably be to include the Quantity box on the store pages
so that the shopper can indicate what quantity they want without having
to 'add to cart' multiple times.

Also, if you are processing orders based on an email notification and
you don't particularly care about the order screen itself, you could
create a custom cgi for the Order API that writes the email notification
and within that cgi loop through the products and combine the
duplicates. The best way to do this is probably to store the first
product/line item (or the values you need from it anyway) in an array,
then compare the name (or SKU) of each additional product/line item to
the name value in the array and if it is not there add the product to
the array, if it is there just increment the quantity value for that
product that already exists in the array. Then when you are ready to
write out the email, just make a loop that goes through your array.

-Loren

Sherry Land wrote:

Let me rephrase my Q...

Can anyone tell me if there is a way in ShopSite to keep multiple
quantity of the same item on the same order line?

For example, if I "Add To Cart" item ABC twice, I need this to be
placed on the order form as

**************
Qty Item
2 ABC

instead of

**************
Qty Item
1 ABC
1 ABC

Thanks,
Sherry Land
webmaster@neuralog.com
Sherry Land
 


Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 54 guests