Quantcast
Channel: NBStore Discussions Rss Feed
Viewing all articles
Browse latest Browse all 4081

New Post: Shipping Provider Issues - Urgent

$
0
0

Test Rig Code

    protected void StartTestRig_Click(object sender, EventArgs e)
    {
        NEvoWeb.Modules.NB_Store.XXXXXCustomShippingProvider.StarTrackShip oStarTrackShip = new NEvoWeb.Modules.NB_Store.XXXXXCustomShippingProvider.StarTrackShip();

        int PortalID = DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings().PortalId;
        string CartID = "f8fb2616-bb4f-47e9-8496-5eea5fbe8951"; //from [NB_Store_Cart] Matches Order Id 1296 from [NB_Store_Orders]
        NEvoWeb.Modules.NB_Store.CartTotals objCartTotals = new NEvoWeb.Modules.NB_Store.CartTotals();

        string ShipType = string.Empty;
        string CountryCode = string.Empty;
        int ShipMethodID = 0;

        ////getCartTotals(int PortalID, string CartID, CartTotals objCartTotals, string ShipType, string CountryCode, int ShipMethodID)
        oStarTrackShip.getCartTotals(PortalID, CartID, objCartTotals, ShipType, CountryCode, ShipMethodID);

        // Get value from Cart and display it in button text
        StartTestRig.Text = "Shipping Amount$" + objCartTotals.ShipAmt.ToString();
    }

Viewing all articles
Browse latest Browse all 4081

Trending Articles