My client want me to change the time from 17:00 to 5 PM
How can I do that??
Products
15x Drinks (Soft Drinks) $22.50
-Soft Drinks Bottled Water
-Date & Time for Catering or Same Day Pickup 2012-05-16 17:00
10x Cheese Platter (Cheese Platter) $79.50
-Date & Time for Catering or Same Day Pickup 2012-05-16 17:00
Code: Select all
<?php
$military_time = '16:40';
$standard_time = date('h:i A', strtotime($military_time));
echo $standard_time;
?>
please look at this
http://broadwaybakerycafe.com/store/ind ... duct_id=91
and this is what I am selecting
http://www.hcri.com/OpenCart/timeSelection.png
http://broadwaybakerycafe.com/store/ind ... duct_id=91
and this is what I am selecting
http://www.hcri.com/OpenCart/timeSelection.png
Well, I see now what you mean. I hadn't noticed because I was choosing times before 12 PMhcri50 wrote:please look at this
http://broadwaybakerycafe.com/store/ind ... duct_id=91
and this is what I am selecting
http://www.hcri.com/OpenCart/timeSelection.png

Open catalog/view/theme/default/template/product/product.tpl and find these commands towards the bottom of the page:
Code: Select all
$('.datetime').datetimepicker({
dateFormat: 'yy-mm-dd',
timeFormat: 'h:m'
});
$('.time').timepicker({timeFormat: 'h:m'});
Code: Select all
$('.datetime').datetimepicker({
dateFormat: 'yy-mm-dd',
timeFormat: 'hh:mm tt',
ampm: true
});
$('.time').timepicker({timeFormat: 'hh:mm tt',ampm: true});
Who is online
Users browsing this forum: No registered users and 7 guests