Find Jobs
Hire Freelancers

PrestaShop module that triggers on each new order

€30-250 EUR

Closed
Posted over 8 years ago

€30-250 EUR

Paid on delivery
This trigger is related to all values in Carrier and Store module. Attached 2 screenshots of where all related data is. General description Our PrestaShop is a multistore of a food delivery store. We delivery very fast, in less than 30 minutes each order, on scooter or bicycle. Our carriers can handle 2 or 3 orders on each delivery trip, so we need some intelligence to assign orders automatically to next available carrier. First thing we need is to add a "carrier" selector on AdminOrders controller, where it allows to link this order manually to any available carrier of this multi-store. Details: We need to execute some actions every 5 seconds; if there is an order with status "Order accepted" (status ID 2), then: 1- Store all values of module "Carriers and stores" in a text log file, like this: date;time;carrier_id;carrier_name;carrier_status;carrier_vehicle;idle_time;commute_time;max_orders_per_carrier;current;delivery_time;pending_orders;this_store_current_waiting_time;open_close_status;max_reply_time;max_statusnew_time 2- // Check if a carrier is available and if that carrier has room to carry another order If (carrier_1_status = waiting or returning) and carrier_pending_orders < max_orders_per_carrier then // We need to link carrier ID to order ID - assign carrier ID to Order // We increase this carrier delivery time; each carrier needs like 20 minutes to delivery an order. But if he is carrying an order already then his next order will be delivered later. So we increase his current delivery_time by adding the value carrier_commute_time (the time it usually takes for a carrier to delivery a single order) - carrier_delivery_time = +carrier_commute_time // If carrier has been waiting for too long, maybe he is disconnected. Then we have to send him a wake up signal, a message so he gets notified and can be back to work. If carrier is available for next order, then we send order details to him (each order has a detail box, check attached) and we put order to status 18 so our warehouse starts preparing it - if this_carrier_idle_time < (minutes from last order was delivered) then send "wake up" message to Carrier else set order status to new (status id = 18) and (send order_details to carrier 1) // Each store can have more than one carrier. If first carrier was busy, then we check next one availability 3- if 2 wasn't possible try next carrier 4-Store all values in log again like step 1
Project ID: 8993098

About the project

7 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
7 freelancers are bidding on average €269 EUR for this job
User Avatar
Hi I have gone through the details of your project and we find it well within our capabilities. I offer a wide range of services, including Web design, PHP/MySQL web application development, Open sources like Joomla, Os-commerce,vBulletin , Zen cart-Drupal , android and IOS , I can create and deliver the project as per the information.I have skilled, expert programmers I'm very excited to assist you in making your Sites successful – please feel free to contact me directly to discuss this position further. Thanks
€195 EUR in 8 days
4.7 (540 reviews)
8.4
8.4
User Avatar
Hi, I am interested for the offer.I am among the top 3 Prestashop developer in Freelancer.com . Lets discuss more in details. Thanks Showcase Projects: https://www.freelancer.com/projects/php/XML-product-import-feed.html https://www.freelancer.com/projects/php/Create-Custom-Prestashop-Module.html https://www.freelancer.com/projects/Prestashop/Looking-for-Prestashop-Expert-develop.html https://www.freelancer.com/projects/PHP-eCommerce/Prestashop-module-development.html https://www.freelancer.com/projects/PHP-MySQL/Calculation-module-for-prestashop.html https://www.freelancer.com/projects/Prestashop/Prestashop-orders-via-API-webservice.html https://www.freelancer.com/projects/PHP-Software-Architecture/Write-prestashop-module.html http://www.freelancer.com/projects/PHP-Software-Architecture/Create-module-prestashop-for-sync.html https://www.freelancer.com/projects/PHP-MySQL/Import-module-for-Prestashop-order.html http://www.freelancer.com/projects/PHP-Prestashop/Prestashop-module-keep-products-stock.html https://www.freelancer.com/projects/PHP-MySQL/modify-multi-seller-vendor-module.6365538.html https://www.freelancer.com/projects/PHP-eCommerce/Prestashop-module-development.html https://www.freelancer.com/projects/eShipper-module-for-Prestashop-Repost.html
€200 EUR in 7 days
4.9 (378 reviews)
7.4
7.4
User Avatar
NOTE: everything needs to be discussed and negotiated first. the default terms are placed to ensure such discussion takes place before job is awarded. In pursuance to "Milestone Payments" as in Freelancer terms and conditions, first milestone payment needs to be deposited on Freelancer within a day, ibapi is awarded the project, failing which the awarding of the project by the seller will be deemed void and the offer by ibapi will be deemed to have been retracted. not be accepted by ibapi. first milestone becomes payable after requirement analysis is done. requirement analysis is "Contract-style requirement lists" as defined under "Requirements_analysis" in wikipedia. Explanation: this is essentially an upfront payment. first milestone deposited before job is accepted and paid after requirement analysis as explained in message board.
€236 EUR in 4 days
4.9 (152 reviews)
7.2
7.2
User Avatar
hi, we are able to complete this work with its innovative ideas and excellent customer service. we will make some different to your expectation. we are available via Skype, phone and e-mail and are always open for discussion of progress, issues, functionality changes etc I'll be glad to continue our discussion and hope to talk to you soon. waiting for your prompt reply. i have read your requirement and i will do that real quickly if u want to any query or question then come on chat on freelancer.com Thanks Nammy Makwana Creativeitech
€200 EUR in 7 days
5.0 (162 reviews)
7.0
7.0

About the client

Flag of SPAIN
Sant Joan Despi, Spain
4.9
50
Payment method verified
Member since May 31, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.