Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreCalculateShippingFeeCalculateShippingFee
Previous
 
Next
New Post
2/1/2008 8:36 PM
 

Im trying to find the code for IShippingInfo CalculateShippingFee(int portalId, decimal cartWeight);

Im assuming it in DotNetNuke.Modules.Store.Providers but I can't find the source code for this. Does this code come in the source zip

 
New Post
2/2/2008 12:32 PM
 

Hi Dennis,

Basicaly, this is a call to the stored procedure Store_ShippingRates_GetShippingRate. At checkout, the Checkout.ascx control is loaded. Line 470 a ShippingProvider is created and at line 476 CalculateShippingFee is called. The provider code is in the project DotNetNuke.Store.Providers.Shipping.DefaultShippingProvider, file ShippingController.cs. ShippingController.cs inherit from IShippingProvider and implement IShippingInfo (read bellow for interface references). Then CalculateShippingFee call the method GetShippingFee from the dataprovider (file DataProvider.cs in DotNetNuke.Store.Providers.Shipping.DefaultShippingProvider).

The base interfaces are declared in the project DotNetNuke.Store.Providers, Shipping folder. The interface IShippingInfo is in the file IShippingInfo.cs, IShippingProvider is in the file IShippingProvider.cs.

It's a little bit complex because the use of provider model, but with this step you will be able to understood how it works (I hope).

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
2/6/2008 2:50 AM
 

If shipping is not known until time of checkout (based on location of user, and user finding out how much it would cost to ship via a ups.com lookup or somthing, could there be a way to add a text box for the user to enter the amount to pay for shipping on the checkout screen? and not use the built in shipping?

 
New Post
2/6/2008 10:22 AM
 

Hi David,

You'r right, the shipping cost is calculated at checkout, but you can't simply add a text box. Because there is several ways for calculate shipping:

  1. By weight (as in the current provider).
  2. By total order amount.
  3. By destination.
  4. Any combinations of the preceding ones.

In all cases, we need to know the final order content and/or the destination. This is why the shipping cost is calculated at checkout. Because the Store module is provider based, any one can create is hown shipping provider for his specific needs.

If you want to give shipping informations to the client's store, may be the simple way is to add a Text/HTML module on the Catalog page. Thus, you could specify common shipping prices. Give me more detailled information about your needs, may be I will be able to suggest a better solution.

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
2/19/2008 3:44 AM
 

Hi,

How do i get the shipping post code once the user has entered it so i can calculate shipping when they select the country and thus do a postback.  I cant find anyway in the code to do this simple task.

I have to calculate shipping based on weight and destination, the provider interface only passes the weight, I need the postcode as well.  the interface should really be passing the weight, destination address and the dimensions to allow us to implement any type of shipping calcs.

Please help, Im going nuts on this one.

 


Philip Beadle - Employee
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreCalculateShippingFeeCalculateShippingFee


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out