wundertat Posted January 4, 2012 Share Posted January 4, 2012 Hi there! I'm a german native speaker so pls excuse my grammar. I got problems with adding the tracking number. My carrier is GLS a parcel distributor in Austria and Germany. The URL works fine. The @ is added and also works. http:// www .gls-group.eu/276-I-PORTAL-WEB/content/GLS/DE03/DE/5004.htm?txtRefNo=@&txtAction=71000 BUT it only when I put the URL manually in the adress field of my browser. The customers don't get the right email with the tracking number. The email only contains this URL http:// www .gls-group.eu/276-I-PORTAL-WEB/content/GLS/DE03/DE/5004.htm instead of this http:// www .gls-group.eu/276-I-PORTAL-WEB/content/GLS/DE03/DE/5004.htm?txtRefNo=1234&txtAction=71000 --> (for e.g. Nr.=1234) My Prestashop Version is 1.3.1 and I really appreciate your help. Thank you! Link to comment Share on other sites More sharing options...
davebox Posted May 20, 2012 Share Posted May 20, 2012 Any update? Same problem here. There has to be a way to make GLS work. Link to comment Share on other sites More sharing options...
SuperCharlie Posted May 21, 2012 Share Posted May 21, 2012 Im a total noob so maybe I am way off base.. the url seems to fail at the "?" which is probably php choking on a reserved character. I would first try getting some quotes around it and if not maybe trying to use urlencoding for the ?. Again.. noob alert.. I am completely new here. Good luck, Link to comment Share on other sites More sharing options...
davebox Posted May 21, 2012 Share Posted May 21, 2012 Thank you for your note! My exact tracking URL is the following and it breaks at the "?" http://www.gls-group.eu/276-I-PORTAL-WEB/content/GLS/NL99/EN/5004.htm?txtRefNo=@&txtAction=71000 I tried your suggestions. Sounds like Prestashop does not like saving the carrier tracking URL with quotes around the @. Also I tried urlencoding the @ but does not look like I can save it on the carrier page...anyway, thanks for trying to help. Link to comment Share on other sites More sharing options...
SuperCharlie Posted May 21, 2012 Share Posted May 21, 2012 Since Im a nooby.. where do you put in this tracking number? I just went thru the test sale in my admin and I didnt see where to put it. Ive been banging code for 20 years so maybe if I can find where it goes I can come up with somethin for ya. SC Link to comment Share on other sites More sharing options...
davebox Posted May 21, 2012 Share Posted May 21, 2012 After you change order status to "shipped", you should see the tracking no. option available at the top of the order page ( Shipping information). Thanks! Link to comment Share on other sites More sharing options...
SuperCharlie Posted May 21, 2012 Share Posted May 21, 2012 Give me a bit to work thru some tests.. Ill try and get back by this evening..got some stuff to take care of. Link to comment Share on other sites More sharing options...
SuperCharlie Posted May 22, 2012 Share Posted May 22, 2012 (edited) *deleted for below* Edited May 22, 2012 by SuperCharlie (see edit history) Link to comment Share on other sites More sharing options...
SuperCharlie Posted May 22, 2012 Share Posted May 22, 2012 Okeys.. I think I got it. This is a hack. The problem is that there is a function which searches for the @ symbol and replaces it with the tracking number. Here is how to fix this issue. Note.. use this at your own risk. back up all files before doing this. Remember that when you upgrade you will have to re-apply this hack. open the file admin-(name)/tabs/AdminOrders.php search for : str_replace('@' you will find it a few times. replace each of the search finds @ with ### (or any other unique set of url friendly chars.. I used ###) save it upload it. in the carrier setup use the url such as http://www.gls-group.eu/276-I-PORTAL-WEB/content/GLS/NL99/EN/5004.htm?txtRefNo=@&txtAction=### If you have other carriers set up with urls you will have to replace the @ with ### In back office, orders, in the set shipping # text box, only put the shipping number. such as 7100 for your example. When you click the button it saves the number, sets the admin url correctly and sends the email correctly. It works for me..but I will say again.. use at your own risk. Back Up Back Up Back Up and give it a try. Good Luck. SC Link to comment Share on other sites More sharing options...
aarones Posted May 23, 2012 Share Posted May 23, 2012 Thank you for your note! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now