Community Forums

Delivery Date at checkout

Enter all OpenCart 1.x feature requests here. One idea per topic. Please search the forum to see if your feature has already been requested

Delivery Date at checkout

Postby ssjal » Sat Apr 14, 2012 11:07 am

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...
ssjal
 
Posts: 90
Joined: Thu Sep 17, 2009 3:45 am

Re: Delivery Date at checkout

Postby straightlight » Sat Apr 14, 2012 2:40 pm

This does sound like a good idea. Although, what would happen if the delivery date is selected from an API service ? Selecting from API, it is rather relied on shipping manufacturers to decide when the product would be delivered politically based on their provided service.
Regards,
Straightlight
straightlight
 
Posts: 2244
Joined: Mon Nov 14, 2011 10:38 am
Location: Canada, ON

Re: Delivery Date at checkout

Postby bingo » Sat Apr 14, 2012 2:47 pm

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...


There is an extension function like this:
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.
User avatar
bingo
 
Posts: 135
Joined: Sat Sep 03, 2011 5:57 pm

Re: Delivery Date at checkout

Postby straightlight » Sat Apr 14, 2012 2:53 pm

That extension does not seem to instantiate between the customers delivery date option and the API provided services. A contribution should be developed or expanded from an already published contribution knowing whether it's about an API manufacturing service delivery date or rather a customer based regarding the delivery date.
Regards,
Straightlight
straightlight
 
Posts: 2244
Joined: Mon Nov 14, 2011 10:38 am
Location: Canada, ON

Re: Delivery Date at checkout

Postby straightlight » Sat Apr 14, 2012 6:38 pm

Done: http://www.opencart.com/index.php?route ... on_id=5969

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) { ?>


add this code:

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 } ?>


Then, at the very end of the file,

add:

Code: Select all
<script type="text/javascript"><!--
$(document).ready(function() {
   $('#date-delivery').datepicker({dateFormat: 'yy-mm-dd'});
});
//--></script>


2 - In catalog/view/theme/default/template/checkout/checkout.tpl file,

find:

Code: Select all
data: $('#shipping-method input[type=\'radio\']:checked, #shipping-method textarea'),


replace with:

Code: Select all
data: $('#shipping-method input[type=\'radio\']:checked, #shipping-method textarea, #date-delivery input[type=\'text\']'),


3 - In catalog/view/theme/default/template/account/order_info.tpl file,

find:

Code: Select all
<b><?php echo $text_shipping_method; ?></b> <?php echo $shipping_method; ?>


add after:

Code: Select all
<?php if (!empty($delivery_date)) { ?>
    <br /><b><?php echo $text_based_date; ?></b> <?php echo $delivery_date; ?>
<?php } ?>


4 - In catalog/view/theme/default/template/mail/order.tpl file,

find:

Code: Select all
<b><?php echo $text_shipping_method; ?></b> <?php echo $shipping_method; ?>


add after:

Code: Select all
<?php if (!empty($text_based_date)) { ?>
    <br /><b><?php echo $text_based_date; ?></b>
<?php } ?>


In PHPMyAdmin, execute the following query from your OC database:

Code: Select all
ALTER TABLE `oc_order` ADD `date_delivery` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';


Note: Change the oc_ prefix into the real prefix name if using another prefix name.

This should work.
Regards,
Straightlight
straightlight
 
Posts: 2244
Joined: Mon Nov 14, 2011 10:38 am
Location: Canada, ON

Re: Delivery Date at checkout

Postby ssjal » Mon Apr 16, 2012 11:13 pm

Thanks straightlight for this excellent module...

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
fedex.jpg (26.46 KiB) Viewed 2544 times
ssjal
 
Posts: 90
Joined: Thu Sep 17, 2009 3:45 am

Re: Delivery Date at checkout

Postby straightlight » Tue Apr 17, 2012 6:06 am

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.


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. ;)

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.
Regards,
Straightlight
straightlight
 
Posts: 2244
Joined: Mon Nov 14, 2011 10:38 am
Location: Canada, ON

Re: Delivery Date at checkout

Postby phanvua8 » Mon Aug 27, 2012 4:49 am

When i choose, it always said "Please select the Delivery Date."
Attachments
deliverydate.JPG
deliverydate.JPG (36.07 KiB) Viewed 2157 times
phanvua8
 
Posts: 8
Joined: Mon Aug 13, 2012 1:17 am

Re: Delivery Date at checkout

Postby globalwebdesign » Wed Oct 03, 2012 11:09 am

I am relatively new to OpenCart, so it's very likely I missed something during the installation. But I can't get the Based Date option to appear in the Admin section. VQMod is installed, I uploaded the files and modified the templates and database as specified, but I still don't see anything new in the Admin section. Am I missing something?
globalwebdesign
 
Posts: 1
Joined: Wed Oct 03, 2012 11:00 am


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 17 guests

Hosted by Arvixe Web Hosting