Hello, we will add the datepicker into opc soon, right now it works as a shipping method. (as here
http://www.dekeukenvanthijs.nl/)
We found a way to render the cmsmart.net
date picker within our solution and you may use this code with the /components/com_onepage/themes/YOUR THEME/onepage.unlogged.tpl.php (and logged)
search for
- Code: Select all
<div id="ajaxshipping" style="width: 100%;">
<?php echo $shipping_method_html; ?>
</div>
and right after this section (NOT INSIDE !) put this code to render the cmsmart datepicker:
- Code: Select all
<?php
if (class_exists('plgSystemDelivery_date'))
{
$dispatcher = JDispatcher::getInstance();
jimport( 'joomla.plugin.helper' );
$plugin = JPluginHelper::getPlugin('system', 'delivery_date');
$arr = array();
foreach ($plugin as $key=>$val)
$arr[$key] = $val;
//$dt->loadView();
class dt extends plgSystemDelivery_date
{
public function loadData()
{
$this->loadCSS();
$this->loadJS();
return $this->loadView();
}
}
$dt = new dt($dispatcher, $arr);
$content = $dt->loadData();
echo $content;
}
?>
Pls note the cmsmart devery plugin renders close to the customer note, so in case of our OPC sandwitch theme, it will be hidden by default. Also error reporting must be disabled for the plugin to work (as it gives lot's of errors).
Best Regards,
Stan