Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Moran 285 posts 934 karma points
    Nov 21, 2015 @ 16:13
    Moran
    0

    get basket total price from CheckoutPayment view

    Hi I am trying to get the total price from the bsaket model in the check out process. I am using the code from the checkout sample:

    @using Merchello.Core
    @using Controllers;
    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
    @{
        Layout = "Master.cshtml";
    }
    @{
        var paymentMethods = MerchelloContext.Current.Gateways.Payment.GetPaymentGatewayMethods().Select(x => new SelectListItem()
        {
            Value = x.PaymentMethod.Key.ToString(),
            Text = x.PaymentMethod.Name
        });
    
    
    }
    <table>
        <tr>
            <td valign="top">
                <h3>Payment Method</h3>
                @using (Html.BeginUmbracoForm<CheckoutController>("SavePayment", new { area = "SolarStore" }, new { @class = "form form-horizontal", role = "form" }))
                {
                    @Html.DropDownList("paymentMethodKey", paymentMethods, new { @class = "form-control" })
    
    
    
    
                    <input type="submit" value="Proceed to receipt" />
                }
            </td>
            <td width="100"></td>
            <td>
                @Html.Action("RenderInvoiceSummary", "Checkout", new { area = "SolarStore", dataFromInvoice = false, invoiceKey = Guid.Empty })
            </td>
        </tr>
    </table>
    

    I need to send the total price in his line, since the credit card information is being enter in an IFrame of my payment provider

    <iframe src="https://direct.tranzila.com/activenet/iframe.php?nologo=1&lang=il&sum=@totalPrice" width="370" height="455"></iframe>
    

    Thanks

  • Moran 285 posts 934 karma points
    Nov 25, 2015 @ 15:48
    Moran
    0

    Anybody knows how?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies