Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
There is an extension function like this:ssjal wrote:hi
There should be a delivery date field at the checkout page so that the customer can select the date at which he wants the product to be delivered.
Thanks...
http://www.opencart.com/index.php?route ... on_id=2079
bingo
One Page Checkout Professional - More flexible and powerful one page checkout solution.
One Page Checkout Standard - Best one page checkout solution,separate module,no core files replace.
Product Import Export - Bulk insert update download product excel format.
Order Manager - help you manage orders more effectively.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Extra steps to be applied for the catalog template. The following example is based on the default template. To all those using custom templates must find their way of integrating these instructions on their own or rather as a custom job:
1 - In catalog/view/theme/default/template/checkout/shipping_method.tpl file,
Add the following where you feel is best after this line:
Code: Select all
<?php foreach ($shipping_method['quote'] as $quote) { ?>
Code: Select all
<?php if (isset($quote['based_date']) && (int)$quote['based_date'] == 1) { ?>
<?php echo $text_based_date; ?><input type="text" name="date_delivery" value="<?php echo (!empty($date_delivery)) ? $date_delivery : date('Y-m-d'); ?>" id="date-delivery" size="12" />
<?php } ?>
add:
Code: Select all
<script type="text/javascript"><!--
$(document).ready(function() {
$('#date-delivery').datepicker({dateFormat: 'yy-mm-dd'});
});
//--></script>
find:
Code: Select all
data: $('#shipping-method input[type=\'radio\']:checked, #shipping-method textarea'),
Code: Select all
data: $('#shipping-method input[type=\'radio\']:checked, #shipping-method textarea, #date-delivery input[type=\'text\']'),
find:
Code: Select all
<b><?php echo $text_shipping_method; ?></b> <?php echo $shipping_method; ?>
Code: Select all
<?php if (!empty($delivery_date)) { ?>
<br /><b><?php echo $text_based_date; ?></b> <?php echo $delivery_date; ?>
<?php } ?>
find:
Code: Select all
<b><?php echo $text_shipping_method; ?></b> <?php echo $shipping_method; ?>
Code: Select all
<?php if (!empty($text_based_date)) { ?>
<br /><b><?php echo $text_based_date; ?></b>
<?php } ?>
Code: Select all
ALTER TABLE `oc_order` ADD `date_delivery` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
This should work.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
i have a question regarding the same.
Eg: if i use Fedex API for getting shipping quotes, the delivery dates are decided by api and the customer would not be able to select the delivery date.
but if the customer wants to give pre-order(advance booking) of the products say the products have to be delivered after a week, how can customer provide the delivery date.
Attachments
fedex.jpg (26.46 KiB) Viewed 5349 times
Since manufacturers would already provide the time period, the tracking ID would need to be provided to customers upon confirmed checkout so for them to go on Fedex website OR to use the tracking ID from their account if the author of the Fedex contribution did integrated this feature from their account already.but if the customer wants to give pre-order(advance booking) of the products say the products have to be delivered after a week, how can customer provide the delivery date.
This methodology wouldn't require for customers to fill out their own time of delivery since shippers already takes that decision politically once the option selected from your store by customers.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 64 guests