nopTools has released Shipping Director for NopCommerce 3.90

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
We're happy to announce the release of Shipping Director for nopCommerce 3.90


If you are upgrading from a prior version, note the following (also in the ReadMe.txt file that is in the download):

In nopCommerce 3.90, they introduced ACL for plugins per customer role (as per the release notes "Allow a store owner to manage access to plugins per customer role (ACL)"). So it can block SD, or block one of the other shipping provider plugins that SD is calling in an Option.  If you (your customers) are not getting the expected shipping methods, then be sure to check that you have not blocked them for the role.

In nopCommerce 3.90, they also combined shipping provider plugins FixedRate and ByWeight into a single "FixedOrByWeight". When shipping rates are calculated, Shipping Director will throw an error if it sees either FixedRate or ByWeight in the configuration.
Please check your configuration and make adjustments as needed.  In the Shipping.Director configuration, you should Edit the records to update Shipping.ByWeight to Shipping.FixedOrByWeight.  Similarly if you are using Shipping.FixedRate.  However, you can't now use both.  In general, you should be able to configure fixed rates right in the Shipping Director configuration. Contact us if you need help converting the Fixed Rates from the plugin into a Shipping Director configuration. (Export your configuration and send it to us). Also, if you were previously using Shipping.ByWeight and have adjusted it to Shipping.FixedOrByWeight, you should go to the configuration for the Shipping.FixedOrByWeight plugin and select "By Weight" (button in upper left of page).  Alternately, you can go to All Settings:  fixedorbyweightsettings.shippingbyweightenabled  - defaults to False, meaning use Fixed Rate, so change to True.
6 years ago
Hi!

I'm trying to use the plugin to restrict items to certain states in the USA (IE we cannot sell a certain item to certain groups of states)

I've tried to use the example here:
https://www.noptools.com/blog/31/restricted-products-cant-ship-to-outside-of-certain-countries

changes:
string: "California, Connecticut, Hawaii, Illinois, Maryland, Massachusetts, New Jersey, New York"

boolean: [IsRestrictedState10].Contains(ShippingAddress.StateProvinces)

Error: [10RoundLimit] and Items.Any(Product.Has.Category("10 Round Limit"))

the category I made was 10 Round Limit (tried this both published & unplblished)

This did not work.

Can you point me in the correct direction?

Thanks!
6 years ago
For states, see this blog example

It's an old blog - now you can use "State".  In either case, use the two-Letter ISO state codes like this:

IsRestrictedState10   String    "CA,CT, ..."

... Boolean: [IsRestrictedState10].Contains(State)
6 years ago
Thank you.  I've emailed my config to support, I believe my trial expired now lol
6 years ago
You can "Reload list of plugins" to reset the trial.  And, we'd be happy to provide you a temporary license if you need one.
6 years ago
I was able to refresh thank you :)

I am now getting this error:
Shipping Director : Error - Customer=1:[email protected]; Record=10: UPS Shipping; Expression=Shipping.UPS; Error=No property or field 'Shipping' exists in type 'QueryContext'

This is my config:
Order  Active  Type  Name  Expression  RateExpression  SurchargeExpression  NameExpression  DescriptionExpression
0  True  Option  UPS Shipping  Shipping.UPS  true      
30  True  String  IsRestrictedState10  "CA, CT, HI, IL, MD, MA, NJ, NY"        
40  True  Boolean  10RoundLimit  [IsRestrictedState10].Contains(State)        
50  True  ErrorExit  10 Round Restricted  [10RoundLimit] and Items.Any(Product.Has.Category("10 Round Limit"))        Sorry, we can't ship firearms or magazines of high capacity to your state


I have my UPS settings in that module, but it is not enabled. Shipping Director is only one enabled.

Am I missing something?
6 years ago
Put "Shipping.Director" in the Rate Expression field, and the "true" in the Expression field (condition). (without the quotes ;)  Also, you should order it so that Options are after any ErrorExits; no point calling UPS API if there is going to be an error. - e.g

100  Option  UPS Shipping    true       Shipping.UPS


(email us at support at noptools.com  for faster support)
6 years ago
I emailed yesterday still waiting to hear back :)

Shipping.Director as an option?
6 years ago
Sorry for delay; your email was in the junk mail folder.

I replied with a file corrected configuration.  Import with the "delete..." option selected.  (Export / backup what you have if you need anything in your old config)

I fixed a few things:
Shipping.UPS needs to be in Rate Expression field (not Expression field)
Text in the ErrorExit fields needs to be in double quotes
It's best to ErrorExit / check for errors before calling UPS.
6 years ago
Thank you so much for all of your help!  This seems to be working as we need!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.