I recently installed Shipping Director v1.29 and am having some trouble with getting it to work correctly. My goal is to restrict shipping for certain items to ground if there is a certain type of product in the shopping cart. I'm hoping that this can be done either by part SKUs or categories. Below is what I have atm.
Each time I run "Test", it says "Shipping options could not be loaded."
Also, the shipping methods aren't displaying to the user in the checkout process. I don't know if it has to do with using the free trial version of SD, or what it is. All I know is that it hasn't shown up yet.
I would greatly appreciate any help anybody has to offer!
Your 1st expression ' [$Name].Contains("Ground") ? [$Name] : "" ' should just be ' true ' (no quotes ;) The 1st "Expression" field is a "condition" expression (and determines whether the entire Option is used). You only want your expression in the "Name Expression" field which determines if a particular method of the external shipping provider is shown to customer.
Maybe I misunderstood what the difference between 'Expression' and 'Name Expression' were. I changed both Name Expressions to 'true' (minus quotes) for my Options, however it is still failing.
This is what I currently have. The space between the Rate Expression and Name Expressions is where the Surcharge Expression would be, which I don't have/need.
I forgot to mention that there are 2 items in the shopping cart. After removing an item (not the one I'm looking for in the expression), I receive the following entry in the system log:
It turns out that for a reason I don't know, I had two users with the same username/email in the database. Because of that, I believe that SD was running twice, returning True for one user, and False for the other and simultaneously giving me a headache.
After removing one of the users from the database and running the Test again, my shipping options are showing up nicely on the page.
Also, keep in mind that Expression (condition) should evaluate to a Boolean. The Name Expression should evaluate to a String (method name that the customer sees, or "" empty string to suppress that method). So, Name Expression should not be 'true'. Leave it blank if you don't need it.
I'm not sure why nopCommerce is so limited when it comes to this, but SD has proven itself to be a reliable tool to achieve the functionality that I need for my website. If I run into any issues in the future, I will be sure to let support know. Thanks again!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.