
Originally Posted by
mrmeech
I am pretty sure that the calendar .js file itself is generating a calendar button. The release only has the compiled version of the javascript file, but i'll attach the exploded (readable) version for you to sift through too.
This is the site for the calendar itself and might be very helpful to figuring this out:
http://electricprism.com/aeron/calendar/
Found the problem after reading through the website - (thank you very helpful)
It turns out that you have to label each field that you want the calendar to display on different (had a suspicion about that)
so on here tpl_checkout_shipping_default.php this is what i did:
PHP Code:
<!-- Bof Ship Date -->
<fieldset class="shipping" id="order_delivery_date">
<legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>
<label for="date1">Date</label>
<input class="calendar" readonly="readonly" id="date1" name="date1" type="text">
</fieldset>
<!-- Eof Ship Date -->
<!-- Bof Cancel Ship Date -->
<fieldset class="shipping" id="order_cancel_date">
<legend><?php echo TABLE_HEADING_CANCEL_DATE; ?></legend>
<label for="date2">Date</label>
<input class="calendar" readonly="readonly" id="date2" name="date2" type="text">
</fieldset>
<!-- Eof Cancel Ship Date -->
and had to change \includes\modules\pages\checkout_shipping\jscript_calendar_head.php
PHP Code:
?>
<script type="text/javascript">
window.addEvent('domready', function() {
myCal1 = new Calendar({ date1: 'Y-m-d' }, { blocked: ['24-25,31 12 *', '0 * * 0'], direction: 3, draggable: false });
myCal2 = new Calendar({ date2: 'Y-m-d' }, { blocked: ['24-25,31 12 *', '0 * * 0'], direction: 3, draggable: false });
});
</script>
<?PHP /*
I am testing now and I can add it as an update if anyone would like.
Bookmarks