icaroamb Posted February 13, 2021 Share Posted February 13, 2021 (edited) Hello, I'm using the "delivery date" module, I found the module very interesting, now I had a question, how could I insert another option for calculating delivery data? Like I put a new input that is not registered for the product, so that the module, in addition to the delivery time, also makes a calculation with a possible production time for the product, already properly registered on the product. In the image I put for example the input "ean13", if in it we have for example a number 5. $date_minimal_time = $date_now + ($carrier_rule['minimal_time'] * 24 * 3600)+ ($product['ean13'] * 24 * 3600) + (Configuration::get('DOD_EXTRA_TIME_PREPARATION') * 24 * 3600); $date_maximal_time = $date_now + ($carrier_rule['maximal_time'] * 24 * 3600)+ ($product['ean13'] * 24 * 3600) + (Configuration::get('DOD_EXTRA_TIME_PREPARATION') * 24 * 3600); if in the place of "$ product ['ean13']" I put the number I want directly he already does the right account the way I want, but I need that value to come out of the product registration. Prestashop version 1.6.1.24 Edited February 13, 2021 by icaroamb (see edit history) Link to comment Share on other sites More sharing options...
icaroamb Posted February 17, 2021 Author Share Posted February 17, 2021 Standard prestashop module, it calculates the delivery time based on the shipping time 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