| Author |
Message |
cgruber
Guest
|
Posted:
Fri Sep 23, 2005 12:50 am Post subject:
Max Items in Cart Troubles |
|
|
Hi again
Whenever I have a quantity of more than 300 of an item in the car
and click Checkout, the page ShoppingCart.aspx appears to jus
refresh and not move on to the checkoutshipping.aspx page
I have gone into the web.config and made these changes to ensure i
should go far above 300
<!-- Integer value that indicates maximu
number items allowed in a shopping cart --
<Param name="CartMaxItems" value="9999999
type="System.Int32"/
<!-- Integer value that indicates maximum quantity for cart lin
items --
<Param name="CartMaxItemQuantity
value="9999999
type="System.Int32"/
And also in the RetailTransaction.cs file I changed these
[code:1:49f473a6d0]public readonly int MaxLineItemQuantity
9999999
public readonly int MaxLineItemsInBasket
9999999;[/code:1:49f473a6d0
Any clue as to why I am still stuck with a max of 300 items
Thanks
Chri |
|
| Back to top |
|
 |
David Messner [MSFT]
Guest
|
Posted:
Sat Sep 24, 2005 12:50 am Post subject:
RE: Max Items in Cart Troubles |
|
|
Seems like it should work. Some questions:
Did you attach a debugger and check for exceptions in the code that reads
the Web.config settings?
Are you setting one line item's quantity to 300 or adding 300 different
line items to the cart?
Best regards
-djm
--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2005 Microsoft Corporation. All rights
reserved.
--------------------
From: cgruber@bgnet.bgsu-dot-edu.no-spam.invalid (cgruber)
Date: Thu, 22 Sep 2005 19:43:07 -0500
Hi again,
Whenever I have a quantity of more than 300 of an item in the cart
and click Checkout, the page ShoppingCart.aspx appears to just
refresh and not move on to the checkoutshipping.aspx page.
I have gone into the web.config and made these changes to ensure it
should go far above 300:
<!-- Integer value that indicates maximum
number items allowed in a shopping cart -->
<Param name="CartMaxItems" value="9999999"
type="System.Int32"/>
<!-- Integer value that indicates maximum quantity for cart line
items -->
<Param name="CartMaxItemQuantity"
value="9999999"
type="System.Int32"/>
And also in the RetailTransaction.cs file I changed these:
[code:1:49f473a6d0]public readonly int MaxLineItemQuantity =
9999999;
public readonly int MaxLineItemsInBasket =
9999999;[/code:1:49f473a6d0]
Any clue as to why I am still stuck with a max of 300 items?
Thanks,
Chris |
|
| Back to top |
|
 |
cgruber
Guest
|
Posted:
Tue Sep 27, 2005 12:51 am Post subject:
re:Max Items in Cart Troubles |
|
|
David, 150 for one line item.. I narrowed it down
It works for 150 and down, crashes at 151 and up
Heres what is really gettin to me
I made up a catalog for Wendy's Cheeseburgers (I had a craving) an
added some Junior Bacon Cheeseburgers
If I add more than 150 of the JBCs then it won't proceed to th
checkout
The exception I'm getting is
[0] "Component Execution failed for component[0x3] hr
0x80004005\r\nProgID: Commerce.ShippingDiscountAdjust.1\r\nDictionar
error: Value for key '_cy_shipping_total' in dictionary 'Order Dict
missing (expected a variant of type 6)\r\
(orderform=default)" strin
I should add that I understand the dictionary stuff from trying t
build pipeline component... there should be a key fo
_cy_shipping_total for a quantity of 151 if there is for 150... i
tehre something hardcoded somewhere in one of the pipelin
components |
|
| Back to top |
|
 |
Ravi Shankar
Guest
|
Posted:
Tue Sep 27, 2005 4:51 pm Post subject:
Re: re:Max Items in Cart Troubles |
|
|
Hi Again,
Is this the component you've developed using the MinMaxShip example ? If I
remember correctly, that sample was not currency enabled.. So if you use the
"currency" data type for your computations then you might not run into an
"overflow" issue.
----
Ravi
"cgruber" <cgruber@bgnet.bgsu-dot-edu.no-spam.invalid> wrote in message
news:l7-dnZaLBrQICKXeRVn_vQ@giganews.com...
| Quote: | David, 150 for one line item.. I narrowed it down.
It works for 150 and down, crashes at 151 and up.
Heres what is really gettin to me.
I made up a catalog for Wendy's Cheeseburgers (I had a craving) and
added some Junior Bacon Cheeseburgers.
If I add more than 150 of the JBCs then it won't proceed to the
checkout.
The exception I'm getting is:
[0] "Component Execution failed for component[0x3] hr:
0x80004005\r\nProgID: Commerce.ShippingDiscountAdjust.1\r\nDictionary
error: Value for key '_cy_shipping_total' in dictionary 'Order Dict'
missing (expected a variant of type 6)\r\n
(orderform=default)" string
I should add that I understand the dictionary stuff from trying to
build pipeline component... there should be a key for
_cy_shipping_total for a quantity of 151 if there is for 150... is
tehre something hardcoded somewhere in one of the pipeline
components?
|
|
|
| Back to top |
|
 |
Ravi Shankar
Guest
|
Posted:
Tue Sep 27, 2005 4:51 pm Post subject:
re:Max Items in Cart Troubles |
|
|
Hi cgruber,
What is the price you've set for that one item ? Could it be that the line
amount (150 * Price) is within some limit while (151 * Price) is exceeding
that value and causing some sort of overflow exception within the pipeline
component... Does the currency var type support the (151 * Price) value ?
--
Ravi Shankar
"cgruber" wrote:
| Quote: | David, 150 for one line item.. I narrowed it down.
It works for 150 and down, crashes at 151 and up.
Heres what is really gettin to me.
I made up a catalog for Wendy's Cheeseburgers (I had a craving) and
added some Junior Bacon Cheeseburgers.
If I add more than 150 of the JBCs then it won't proceed to the
checkout.
The exception I'm getting is:
[0] "Component Execution failed for component[0x3] hr:
0x80004005\r\nProgID: Commerce.ShippingDiscountAdjust.1\r\nDictionary
error: Value for key '_cy_shipping_total' in dictionary 'Order Dict'
missing (expected a variant of type 6)\r\n
(orderform=default)" string
I should add that I understand the dictionary stuff from trying to
build pipeline component... there should be a key for
_cy_shipping_total for a quantity of 151 if there is for 150... is
tehre something hardcoded somewhere in one of the pipeline
components?
|
|
|
| Back to top |
|
 |
cgruber
Guest
|
Posted:
Wed Sep 28, 2005 4:51 pm Post subject:
re:Max Items in Cart Troubles |
|
|
Nevermind
Turns out this is a problem in UPS's rate checking. I'll give a
update when I resolve it
Thanks for your help guys |
|
| Back to top |
|
 |
|
|
|
|