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.
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.
In Extensions
Share this post:
Responses (49)
-
Accepted Answer
-
Accepted Answer
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. -
Accepted Answer
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 -
Accepted Answer
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 -
Accepted Answer
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 ... -
Accepted Answer
-
Accepted Answer
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. -
Accepted Answer
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. -
Accepted Answer
-
Accepted Answer
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. -
Accepted Answer
-
Accepted Answer
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. -
Accepted Answer
-
Accepted Answer
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 ... -
Accepted Answer
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". -
Accepted Answer
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? -
Accepted Answer
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. -
Accepted Answer
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. -
Accepted Answer
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. -
Accepted Answer
You keep saying to fix the code myself or hire someone to do it.
I had a fix in mind, and I asked the question several times, but you chose to ignore the question and the problem and try to convince me the the cart doesn't have an issue with the steps it takes.
Again, the cart has a 2 stage registration.
1 - name, email, phone # and password.
2 - completed address.
But for some reason you think it is ok to throw obtaining delivery methods in the middle of the 2 registration steps and think because it kicks back a bunch of errors is ok.
I might not know this code, but I was a programmer of other languages many years ago. Things should flow properly and smooth, and this doesn't do so.
Instead you decide to accuse all the people that have made shipping modules to have incorrectly done so.
So my next question would be, now that I have spent $40USD on a module that doesn't work with the cart as it currently is, how do I go about getting my money back?
And I don't know why it is allowed to charge for broken modules. That would be fraud. So do I file a fraud claim with my credit card company now?
I have asked the person to correct his module, but since I read in another thread the same mention of the same problems, I am sure they have the same views as me in their replies.
Your attitude is rather disappointing and not so helpful when you attempt to BS people who know better.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.