Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 7 of 7

Thread: Skip CheckoutPayment?

  1. #1
    BothWorldsJo is offline Member
    Join Date
    Oct 2005
    Posts
    64

    Default Skip CheckoutPayment?

    Hi!
    When coming from Shoppingcart.aspx, if the total order amount is 0, no checkout payment terms are required, is it possible to skip the CheckoutPayment.aspx page and go straight to checkoutReview?

    The load for checkoutpayment.aspx has this -
    Dim PM As String = AppLogic.CleanPaymentMethod(CommonLogic.QueryStrin gCanBeDangerousContent("PaymentMethod").Trim())

    but it always comes up nothing on first load. Possible to push "CreditCard", etc so it goes to ProcessPayment and then onto CheckoutReview?
    Thanks,
    Jo

  2. #2
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    of Course

    set AppConfig:

    SkipPaymentEntryOnZeroDollarCheckout = true
    AspDotNetStorefront
    Shopping Cart

  3. #3
    BothWorldsJo is offline Member
    Join Date
    Oct 2005
    Posts
    64

    Default

    I do have that True, but it doesn't skip the page with it.

    It checks it in InitializePageContent and hides the main panels but doesn't jump the screen - it requires the user to Continue Checkout here and still again in Checkoutreview.aspx -

    If NetTotal = System.Decimal.Zero AndAlso AppLogic.AppConfigBool("SkipPaymentEntryOnZeroDoll arCheckout") Then
    NoPaymentRequired.Text = AppLogic.GetString("checkoutpayment.aspx.28", SkinID, ThisCustomer.LocaleSetting)
    pnlNoPaymentRequired.Visible = True
    pnlPaymentOptions.Visible = False
    paymentPanes.Visible = False

    Any reason I shouldn't write it to redirect to CheckoutReview if no checkoutterms required?

    Thanks,
    Jo

  4. #4
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    That should skip the payment page if these are true, and no changes from the source to be made:
    - Zero dollar sub total
    - No shipping required or SkipShippingOnCheckout set to true
    - SkipPaymentEntryOnZeroDollarCheckout to true

  5. #5
    BothWorldsJo is offline Member
    Join Date
    Oct 2005
    Posts
    64

    Default

    I would have thought so, too. But both are true, total is zero and it still just hides the panels, waiting for the user to affirmatively continue. It looks like if there's a payment method selected, perhaps as some default or in a repost, a PM variable in the Load allows it to jump to PaymentProcessing but the first hit has no payment method so it waits.

    Thanks,
    Jo

  6. #6
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    What version are you on? This is vb version, correct?

  7. #7
    BothWorldsJo is offline Member
    Join Date
    Oct 2005
    Posts
    64

    Default

    7.1 vb.net version.
    Jo