I know this was brought up before and I am sure it's something that is on the list to be worked on.

But I was wondering, when going to checkout and a new customer goes to login, we get the shipping method errors on the left of the page.
I have next to no up to date coding experience, so I can only ask in theory.
Took computer programming through high school and 1st year university, and dropped out for another occupation.
Really wished I kept it up. Would definitely come in handy now.

Could it not be setup as:

If not logged in, shipping method box states "Please login or register to view shipping methods"
else show shipping methods.
Monday, October 17 2016, 11:41 PM
Share this post:
Responses (49)
  • Accepted Answer

    Friday, November 11 2016, 09:29 PM - #Permalink
    I understand your frustration @Breck, you bought something and it doesn't work as expected. So, this is the developer's problem at first place. But when you let Arastta managers knew it, so we will check the issue as Arastta managers.

    We do our best to check the extensions and validate if they work as expected after they are submitted to the marketplace. Sometimes we can (and did) miss something but what is important is that we take all necessary actions after we are reported.

    Arastta is a community-driven, Open Source project. We need volunteers to share work load. For example, @Rune (who replied you in this topic) volunteers his time for Arastta as moderator, translator, developer etc. We have some other valuable volunteers, too. So, please take it easy before blaming the whole project or marketplace.

    Regards
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 18 2016, 04:25 PM - #Permalink
    Would be nice if you told what shipping you have set up, and what error you get ...?!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, October 19 2016, 01:00 AM - #Permalink
    Sorry. Figured it was talked about enough that it was a known issue.

    Error:

    Notice: Undefined index: firstname in /home/valleybee/store.valleybeekeeping.com/catalog/model/shipping/fedex.php on line 101Notice: Undefined index: lastname in /home/valleybee/store.valleybeekeeping.com/catalog/model/shipping/fedex.php on line 101Notice: Undefined index: company in /home/valleybee/store.valleybeekeeping.com/catalog/model/shipping/fedex.php on line 102Notice: Undefined index: address_1 in /home/valleybee/store.valleybeekeeping.com/catalog/model/shipping/fedex.php on line 106Notice: Undefined index: company in /home/valleybee/store.valleybeekeeping.com/catalog/model/shipping/fedex.php on line 117
    Please select the preferred shipping method.

    Fedex

    ERROR

    Using fedex, but I assume it would happen with any shipping module that has to provide a shipping quote.

    The problem is the when an unregistered user starts to register, he enters his name, email, phone number, and password.
    Then when you click next, it then asks for your address information, the at the same time, the errors pop up because it's trying to provide shipping quotes before the user enters their info.
    The issue is that the shipping quotes are one step too soon. They should appear till after the customer enters their shipping information.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 21 2016, 12:39 PM - #Permalink
    People don't remember, or find the old posts. Also new helpers doesn't know. Plus the fact that people often say they have the same issue, while it's not ... So please always include all relevant info, or link to previous cases, or just follow up on them. ;)

    Does the Fedex module work better in latest version, Arastta 1.4.2? Cüneyt fixed some checkout issues in it.
    If not, the module need some rewrite. T.ex. my shipping module works nicely now, with it's fallback to zone 1 (store address): https://arastta.org/forum/fedex-shipping-extension-error-improvements#reply-1966
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 21 2016, 03:11 PM - #Permalink
    Well I logged into my site and attempted the update. It seemed to take a long time, and eventually the next page came up with an error, but I didn't write it down or remember what it was. Came up with word. "trigger" or "triggered". That's the only thing I remember. Now I can't access the admin area. That's at store.valleybeekeeping.com.

    So I went to the old test site valleybeekeeping.com/store and it's files are still the old version which let me in. Updated fine. I guess I'll just have to copy the files over from the subfolder to the subdomain and see if it fixes it.

    But after updating, still getting the same errors.

    Notice: Undefined index: firstname in /home/valleybee/public_html/store2/catalog/model/shipping/fedex.php on line 101Notice: Undefined index: lastname in /home/valleybee/public_html/store2/catalog/model/shipping/fedex.php on line 101Notice: Undefined index: company in /home/valleybee/public_html/store2/catalog/model/shipping/fedex.php on line 102Notice: Undefined index: address_1 in /home/valleybee/public_html/store2/catalog/model/shipping/fedex.php on line 106Notice: Undefined index: company in /home/valleybee/public_html/store2/catalog/model/shipping/fedex.php on line 117
    Please select the preferred shipping method.

    Fedex

    ERROR
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 21 2016, 03:18 PM - #Permalink
    So then ...
    Rune Rasmussen wrote:
    If not, the module need some rewrite. T.ex. my shipping module works nicely now, with it's fallback to zone 1 (store address): https://arastta.org/forum/fedex-shipping-extension-error-improvements#reply-1966


    Also, again, turn of the error display to hide the notices, they doesn't matter much ...
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, October 23 2016, 01:25 AM - #Permalink
    Not sure what your trying to say in the above reply.
    And if I turned off the error display, then I would never know that there is a problem.
    Turning of the errors removes the error messages, but still doesn't fix the problem.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, October 23 2016, 11:12 AM - #Permalink
    Simple, the module needs a rewrite to fit your requirements and needs. And, someone having interest in that module should make that happen, in some way.

    It doesn't help you or the users to display NOTICES on a live site. You have a log file you can activate and check, take a look at the settings, and make yourself familiar with them, please.

    Error display should never be on, on a live site/store, revealing detailed paths etc.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, October 23 2016, 11:32 AM - #Permalink
    PS! Notice, Warning, Error, Fatal Error - it's quite different things.

    Not all is a real problem, and if someone don't read them right, they are of no help. ;)

    Notice = Run-time notices. The script found something that might be an error, but could also happen when running a script normally

    Ref http://www.w3schools.com/php/php_ref_error.asp

    Only problem with the FedEx module is bad error handling, outputting that ERROR at the end. Instead of hiding the hole thing, or display a usefull note like my Shipping Guide module for Bring/Posten.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, October 23 2016, 12:41 PM - #Permalink
    Install and test this, from admin or by upload.
    It's just a simple quickfix, displaying the actual error code and message returned by FedEx.

    Should give you FedEx users a clue on what to look for, and where to improve it further if desired.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 24 2016, 03:28 PM - #Permalink
    I don't understand why you would suggest that all the shipping modules that capture shipping quotes have to be rewritten to pass incorrect information and get a incorrect quote from the shippers, when the real problem is the cart attempts to get these quotes before the correct address information is entered.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 24 2016, 03:33 PM - #Permalink
    No, it's not the cart who attempts to get the quotes, but the shipping module(s) ...
    The modules are mostly made for a several step cart (OC).

    Did you care to look at, and test the patch?

    You can extend it to not display anything before the required info is entered. Your choice.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 24 2016, 09:32 PM - #Permalink
    I disagree to a point. The shipping modules are only a script to act as a go between for the cart and the shipper. The shipping module only gets shipping quotes when requested to do so by the cart. In this case the cart asks the shipping module to obtain a shipping quote from Fedex before all the parameters have been entered. Altering the module to provide false information to obtain incorrect fees isn't the proper fix. It's just passing it off as a bad bandaid solution.

    I'll add the file you supplied just to get it to work, but it's not the ideal fix.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 24 2016, 09:35 PM - #Permalink
    So I uploaded the file you supplied and still same errors.
    And I cleared the cache in case you ask.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 24 2016, 10:44 PM - #Permalink
    No, the cart only loads the shipping modules. It doesn't handle anything beyond that. And you didn't care to read what I wrote, the handling can be whatever, it doesn't need to display a shit if you don't like to - but other actually prefers it. A lot of big shops using other systems also do ...

    This also allows us to do cool things with them. Before I thought like you, that the cart needed a change, but not after starting re-coding my own modules, re-thinking the possibilities it gives us ...

    Same errors, like those not important notifications you should disable? If you did install it correctly it change that part where it's standing ERROR in the FedEx module ...
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 24 2016, 11:22 PM - #Permalink
    Really? When the page comes up to display shipping, the cart doesn't communicate with the module and tell it to get shipping quotes and then provide details the module requires to get that info?

    Anyway, I did like you said. I downloaded the files you said to download and uploaded them where the were supposed to go.
    I turned off all the error messages like you said. I cleared the cache.

    Did a test transaction, and under delivery method, I see:

    Delivery Method
    Please select the preferred shipping method.

    Fedex

    ERROR
    Pickup

    Pickup From Store - $0.00


    Fedex still showing "ERROR".
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 25 2016, 04:06 AM - #Permalink
    So here's an update.

    I installed the cart on another website and I purchased the Canada Post shipping extension.
    Added an item to the cart, and then entered the name, email, telephone # and password, and the next thing to come up is the registration details, but the Delivery Method again appears to soon, so I get errors with the Canada Post extension.

    Delivery Method
    Please select the preferred shipping method.

    Canada Post

    Error Server: /rs/ship/price: cvc-simple-type 1: element {http://www.canadapost.ca/ws/ship/rate-v2}postal-code of type {http://www.canadapost.ca/ws/ship/rate-v2}postalcodetype may not be empty
    Flat Rate

    Flat Shipping Rate - $5.00

    Again, it's because it requires a postal code to get a quote.
    So using your logic, all the extensions that require details to get shipping quotes I guess have to be rewritten to work with this cart.

    Again, I'll ask the question, can the cart be coded so that if the customer isn't logged in, the delivery method is ignored and will not appear?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 25 2016, 09:25 AM - #Permalink
    Breck Demers wrote:
    Really? When the page comes up to display shipping, the cart doesn't communicate with the module and tell it to get shipping quotes and then provide details the module requires to get that info?


    Yes, really. It doesn't tell it to do anything. It just loads it. All handling beyond that is in the module itself.

    Remember to go to modification, to apply the patch, if you uploaded manually. It's like every other install of modifications.
    You can see it's working on the image I provided above, displaying postcode missing.

    Breck Demers wrote:
    So using your logic, all the extensions that require details to get shipping quotes I guess have to be rewritten to work with this cart.

    They really should yes, as they are made for a different cart/checkout. They could be made so much cooler then.

    And yes, you can code the cart any way you like, e.g. by using modifications or template overrides. But don't expect personal needs to be made global, e.g. it works perfect for those using fixed shipping, and they are many. And also works perfect for those who want to give a estimate, to make people fill the data, and don't abandon the cart because of missing shipping estimates.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 25 2016, 03:23 PM - #Permalink
    I went to modifications and it's not clear how to apply a patch.
    I selected the module and clicked on refresh and I guess it did something.
    Poorly designed if that's the intension. Who would know unless told.

    So I did another test transaction and now a different error message.

    Fedex

    ERROR - Code: 521
    Destination postal code missing or invalid.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 25 2016, 03:37 PM - #Permalink
    By reading documentation maybe? ;) Anyhow I assumed you had installed several modifications/extensions already, or at least peaked around in docs, but here they are: https://arastta.org/docs/user-manual/extensions/modifications

    But now you see it's possible to change the behaviour and display easily, by overriding the code. Great. :)

    If you prefer you can add custom error text based on returned error code, or by adding your own logic, or simply hide the hole shipping output until required info is added. And you can of course easily hide the 'ERROR - Code: 521' too, by modifying the patch.

    Also you can make it a no-error style, removing the red formatting, and use t.ex. the message support instead:
    https://github.com/arastta/arastta/pull/525

    If you're not a coder, consider hiring some, or sponsor development in other ways, to get it exactly as you like.
    The reply is currently minimized Show
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.