Return to AspDotNetStorefront.com

Go Back   AspDotNetStorefront Community | ASP.NET eCommerce Shoppingcart Software > Products > AspDotNetStorefront ML
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old   
jasont {Offline}
Member
 
Join Date: Jul 2009
Posts: 36
Question minimum cart update question - 08-25-2009

When I have the appconfig CartMinOrderAmount set to an amount and the cart total does not meet the requirement it gives the error properly that they need to add more items/increase the cart total. The issue I am having is if the user updates the quantity on an item that is in the cart and uses the update cart button it is not reloading the whole shopping cart to show the google checkout and paypal buttons for order processing. In order to have the buttons show you either need to hit F5 or re-enter the shopping cart by clicking on the shopping cart link.

Does anybody know a method to update the click event of the update cart button so that it refreshes the whole div of the shopping cart page to allow the buttons to show?

I am using version 8.0.1.2.
Reply With Quote
  #2  
Old   
mbertulli {Offline}
Senior Member
 
Join Date: Aug 2008
Posts: 240
Default 08-25-2009

Jason,

Can you verify that the update button you are clicking is calling the InitializePageContent() method?

InitializePageContent should be doing the checks for MinOrderAmount and showing the appropriate paypal express / google checkout buttons if met. The code that does the check within InitializePageContent looks like this:

Quote:
if (AppLogic.AppConfigBool("PayPal.Express.ShowOnCart Page") && cart.MeetsMinimumOrderAmount(MinOrderAmount))
{
if (AppLogic.ActivePaymentGatewayCleaned() == Gateway.ro_GWPAYPALPRO)
{
IncludePayPalExpress = true;
}
__________________
Matthew Bertulli
Demac Media
mbertulli@demacmedia.com
Custom Web Design & E-Commerce Development
AspDotNetStoreFront Platinum DevNet Partner
----

Custom Skinning & Design
Web Services Integration
Custom Reporting
Salesforce.com eCommerce AspDotNetStoreFront Integration
Reply With Quote
  #3  
Old   
jasont {Offline}
Member
 
Join Date: Jul 2009
Posts: 36
Default 08-26-2009

The button (btnUpdateCart1) has this listed in its code:

Code:
        void btnUpdateCart1_Click(object sender, EventArgs e)
        {
            ProcessCart(false, false, false);
            InitializePageContent();
            InitializeShippingAndEstimateControl();
        }
I found the code that you listed in the shoppingcart.aspx.cs but what happens is that it does refresh the div that lists the cart does not meet maximum but doesnt refresh the whole page which would load back in the Paypal and GoogleCheckout options.

Screenshot of item not meeting min requirement:

Screenshot of item updated so it will meet the minimum requirement:



Screenshot of page after clicking on the shopping cart link:
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
vBulletin Style by: vBskincenter.com
Copyright © 2008, AspDotNetStorefront. All rights reserved.