in

dashCommerce

An ASP.NET Open Source e-Commerce Application

LOTS of Questions...

Last post 06-26-2008 3:04 PM by MrBruce. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 06-20-2008 11:10 AM

    • MrBruce
    • Top 10 Contributor
    • Joined on 02-11-2008
    • Juno Beach, FL
    • Posts 120

    LOTS of Questions...

    I'm now running a local version of my site for testing, and trying to figure out how to step through things and see what's happening, and while I'm learning I'm coming up with a number of questions... maybe I'll find the answers to some items as I learn more, but meanwhile, perhaps some kind soul could help out here with some answers/directions:

    1. I'd like to remove Country from display OR only allow United States to show as my client cannot ship outside the U.S. and its possessions. Where do I start?
    2. On the checkout.aspx page, after filling in the Billing & Shipping Information, the Shipping Method tab is always blank - except for the Continue button. [* See Note Below!]
    3. Shouldn't there be a Simple way for the user to set a flat shipping rate per order without using the shipping provider?
    4. On the cart.aspx page, where would I add logic that evaluates the order total, and if it is under a specified amount, throw an error message "Minimum Order is $XX.XX."
    5. When one goes into the My Account area and selects Details of an order, there is no way back (other than the browser's Back button). Shouldn't that detail be within the tab panel?
    6. I've added all of the Region Code Tax Provider info for the state of Florida and configured the Tax Provider, and yet when I go to the cart, signed in as someone from Florida, no tax appears. What am I missing?

    * I've tried the following and have not yet had any luck:

    Naz:

    I guess what you could do is hack the SimpleWeightShippingProvider.cs by changing line

     shippingOption.Rate = simpleWeightShippingRate.AmountPerUnit * order.TotalWeight;

    to

            if (order.Total > 70 && order.Total < 200)
                shippingOption.Rate = (decimal)24.95;
            else
                if (order.Total >= 200)
                    shippingOption.Rate = 0;
                else
                    shippingOption.Rate = -1;

    and then in checkout.aspx.cs check if rate = -1 and display some sort of message.

     

    --
    Bruce
  • 06-23-2008 10:40 AM In reply to

    • MrBruce
    • Top 10 Contributor
    • Joined on 02-11-2008
    • Juno Beach, FL
    • Posts 120

    Re: LOTS of Questions...

    Okay, I've undone the changes I'd made, rebuilt the solution, uploaded the changed bin files and I'm still getting an error. It happens here:

    checkout.btnShippingMethod_Click

    And the details are as follow:

    System.NullReferenceException: Object reference not set to an instance of an object.
       at MettleSystems.dashCommerce.Web.checkout.btnShippingMethod_Click(Object sender, EventArgs e) in C:\Users\Bruce\Documents\Visual Studio 2008\WebSites\AquaticsToGo\Web\checkout.aspx.cs:line 481

    In that page of code, Line 481 reads:

    OrderController.SetShipping(WebUtility.GetUserName(), shippingAmount, rblShippingOptions.SelectedItem.Text);

    Can anybody shed any light on what's happening?

    --
    Bruce
  • 06-25-2008 8:53 AM In reply to

    • MrBruce
    • Top 10 Contributor
    • Joined on 02-11-2008
    • Juno Beach, FL
    • Posts 120

    Re: LOTS of Questions...

    Answer

    Thanks for the overwhelming number of responses! 

    In the interest of helping others who might have similar problems, let me explain that a large part of my problem regarding Shipping & Tax had to do with configuration! I have not found this explained anywhere!

    When setting up your products, the product apparently must have something indicated for Weight. Similarly, when configuring Shipping Configuration, you cannot use a zero value for Amount Per Unit. The minute I stumbled upon this, all of a sudden things begin functioning on the checkout page!  Joy!!!

    I'm trying to get the total Shipping & Handling amount to be $24.95... as long as the minimum order amount of $70.00 has been satisfied, and to have that amount be zero (Free Shipping) if the order total is $200.00 or more.

    WHAT IF... I set the weight of the product to .001...  could I then change the logic somewhere so that the total order weight gets rounded up to the next highest amount? I'm thinking this might work, so that's where I'm heading in my experimentation! Can anyone provide a clue as to where/how I might make this change?????

     

    [EDIT] Maybe the title of this thread is a little scary? I'm going to make small questions in new threads....

    --
    Bruce
  • 06-25-2008 4:48 PM In reply to

    Re: LOTS of Questions...

    Hi Bruce,

    I once wrote a thread back in the dashCommerce 2.2 days on how I created what I call KISS - Keep It Simple Shipping.  I added fields to the product table such as UPS_Ground_Amt, USPS_Amount, FEDEX_AMT, Insuarance_Amt and so forth.  It was obviously customized for this one customer because everyone seems to handle shipping differently.  They wanted to have 1 set shipping fee for each product.

    Since they didn't have the weights and measures of the boxes stored anywhere, this was a quick and dirty way to get them up and going.  I also had to modify the cart calulation code in order to overrride how it was calculating the shipping and taxes.  I'll dig up the documentation and see how to fit it in to DC3.  I have to do something similar so it might be as early as tomorrow.

    Louis

  • 06-25-2008 10:05 PM In reply to

    • MrBruce
    • Top 10 Contributor
    • Joined on 02-11-2008
    • Juno Beach, FL
    • Posts 120

    Re: LOTS of Questions...

    Thanks, Louis, for your willingness to assist, but it doesn't sound like what you're offering will do me any good... we have one flat shipping fee PER ORDER, not per product.

    I appreciate your response!!!   Drinks

    --
    Bruce
  • 06-26-2008 2:23 PM In reply to

    Re: LOTS of Questions... Shipping Costs

    I have done this on my website , but it is version 1.1 .  I modified the BindShipping procedure in checkout.aspx where it evaluated the package and shipping options.  Based on the value of the order, I added just one list item that specified the method and price of shipping.  So the user doesn't have any choice, but it is set according to our policies.  The code is below.

    Private Sub BindShipping(ByVal package As PackageInfo)

    Dim shipitem As New WebControls.ListItem

    radShipChoices.DataTextField = "Service"

    radShipChoices.DataValueField = "Rate"

    Select Case currentOrder.OrderTotal
    Case Is < 30.0

    shipitem.Text = "UPS Ground - $5.95"

    shipitem.Value = 5.95

    Case Is < 100.0

    shipitem.Text = "UPS Ground - $7.95"

    shipitem.Value = 7.95

    Case Else

    shipitem.Text = "UPS Ground - Free"

    shipitem.Value = 0.0

    End Select

    'radShipChoices.DataBind()

    radShipChoices.Items.Add(shipitem)

    radShipChoices.SelectedIndex = 0

    'localize it using the C formatter for local currency

    Dim dRate As Decimal = 0

    For Each l As ListItem In radShipChoices.Items

    dRate = Decimal.Parse(l.Value)

    l.Text &= ": " & dRate.ToString("C")

    Next l

    'set the Profile Shipping Bits

    Profile.CurrentOrderShipping = Decimal.Parse(radShipChoices.SelectedValue)

    Profile.CurrentOrderShippingMethod = radShipChoices.SelectedItem.Text

    End Sub

  • 06-26-2008 3:04 PM In reply to

    • MrBruce
    • Top 10 Contributor
    • Joined on 02-11-2008
    • Juno Beach, FL
    • Posts 120

    Re: LOTS of Questions... Shipping Costs

    Thanks for sharing!

    --
    Bruce
Page 1 of 1 (7 items)