sameday-courier / prestashop-plugin

Prestashop (1.6 and 1.7 versions) plugin for Sameday Courier shipping
Other
4 stars 7 forks source link

Error when generating EasyBox AWB in Prestashop - LockerID depricated #99

Open crematoryro2005 opened 1 year ago

crematoryro2005 commented 1 year ago

Hello. As I told you before I have some problmes with Sameday Lockers integrations in the checkout page using One Page Checkout module from PrestaHero.com.

  1. The Show map button is visible only after the client chooses the County. Because of that I had clients that selected EasyBox as delivery method, filled all the fiield but didn't notice the new button under EasyBox and sent the order. When we tried to generate AWB for the order we received the following error: "error in generating AWB. lockerLastMile- LockerLastMile is invalid (the lockerId can be used, but is depricated)." The only way to solve it is to call the customer ask which EasyBox he wants his order to be shipped in, find the EasyBox in the Sameday Module's lockers list, take its ID, the order ID and then in PhpMyAdmin andd a new entry in the table pr_sameday_order_locker using those IDs.

The developer of One Page Checkout has a grest support, he manegd to make the Show map button visible from the start without county selection, but the issue regarding orders without Locker selected is still present.

I think a solution would be if the client selects EasyBox as shipping method, the selection of desired EasyBox from the Map to be mandatory like it is with the other fields (name, adress, city, phone, etc). This way there is no chance to receive orders without propor locker selected.

  1. I had issues with receiving Locker ID even if the client selected the proper locker. If the client selects the locker from the map before filling the adress and choosing the County, then when he chooses the County the Shipping section refreshes, the selected locker is not visible anymore on the page but if you click on the map it appears in the left side of the popup window. To be visible again you need to click on the blue button Choose EasyBox. But if you select again another County it's not visible again.

In my shop I use the module Super Speed from PrestaHero.com for cache, image resize, etc. I think this module caused loosing the Locker ID when changing the county. I changed some settings, disabled cache for Home Page, etc and it seem to work. The LockerID is received even if I select another county and it dissapears. Maybe it has to do with the cache module that affects the cookie where the locker ID is stored. Sorry I'm not an it technician, I learn everyday but I understood that the Locker ID is stored in cookie.

  1. Is there a way to integrate in the Sameday Module when generating the AWB the posibility to choose lockers from a dropdown list or by adding the Locker ID? This way if the client forgets to choose the locker and I find the prefered locker I can generate de AWB from prestashop without the need to add the IDs in the MySQL database.

Thank you.

crematoryro2005 commented 1 year ago

UPDATE:

I'm very happy with their support. I have 10 modules bought from them includin GDPR, SEO Audit, etc and all the issues I had were solved very quickly. Next month I'll buy ten more modules. As I have a close relentionship with them and many modules I negociated so that for 5 reviews posted on 5 modules I'll receive 30% discount on the future purchase. So 10 reviews brings me two discount codes of 30% each and can buy the new 10 modules in two separate puchases during next month. So 10 modules cost 750 Euros and 30% helps me. With the discount I'll buy the module Advanced Search 5 Pro very important for me in order to have SEO indexable filters.

Dori1993 commented 1 year ago

Salut, Te rog ajuta-ma si pe mine cu niste detalii, legate de aceasta problema, deoarece ma chinui cu ea de juma de an. Poti sa-mi dai te rog fisierul TPL de la Sameday lockers? Sa pot face o comparatie intre ce am eu si ce ai tu. Fisierul ar fi modules/samedaycourier/views/templates/front/_partials/checkout_lockers.tpl

crematoryro2005 commented 1 year ago

Salut.Ai atasat fisierul insa nu acolo au facut modificarea pentru blocare trimiterii comenzilor fara locker selectat, ci in fisierele modului lor One Page Checkout - onepagecheckout.jsCodul modificat din cate imi dau seama este:

 $(document).on('click','button[name="submitCompleteMyOrder"]',function(e){     e.preventDefault();     // $('.delivery-options-list input[type="radio"]:checked').each(function(){     //     var classD=$(this).attr("id");     //     if($('.'+classD+' #showLockerDetails').length && $('.'+classD+' #showLockerDetails').html()==''){     //         $('.error_map').remove()     //         $('.'+classD+' #showLockerDetails').after('Please Selecteaza EasyBox');     //         return false;     //     }     //     // });     if($('.carrier-extra-content').is(":visible") && $('.carrier-extra-content #showLockerDetails').length && $('.carrier-extra-content #showLockerDetails').html()==''){         $('.error_map').remove()         $('.carrier-extra-content #showLockerDetails').after('Trebuie sa deschizi harta si sa selectezi EasyBox-ul');         return false;

    }

Daca imi poti lasa nr de telefon poate discutam mai multe pe WhatsApp sau telefonic.Cu dezvoltatorii Sameday vad ca nu fac nimic...au disparut in ceata de cateva saptamani, nu mai raspunde nimeni la tickete.Mentionez ca nu am pregatire pe IT, insa incerc sa invat din mers si am mare noroc cu suportul celor de la PrestaHero.com Ms Cristi Tiron0745391493

On Thursday, February 23, 2023 at 08:26:03 AM GMT+2, Dori1993 @.***> wrote:

Salut, Te rog ajuta-ma si pe mine cu niste detalii, legate de aceasta problema, deoarece ma chinui cu ea de juma de an. Poti sa-mi dai te rog fisierul TPL de la Sameday lockers? Sa pot face o comparatie intre ce am eu si ce ai tu. Fisierul ar fi modules/samedaycourier/views/templates/front/_partials/checkout_lockers.tpl

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>