Add plugin

Please post your issues and questions about One Page Checkout for Virtuemart 2 to this forum.

Add plugin

Postby sinane.g@.....com » Tue Dec 03, 2013 4:16 pm

can i add plugin for delivery date and time on OPC ?
sinane.g@.....com
 
Posts: 5
Joined: Tue Dec 03, 2013 4:06 pm

Re: Add plugin

Postby admin » Wed Dec 04, 2013 4:44 pm

hello, we already have a plugin that handles
- pickup in store with custom pickup data and time
- delivery at a specific time and date

but these would require a cusmization from our side.

let us know if you are interested in a simple "delivery date" option, or if you need further logic such as
- delivery only per opening hours
- blocked delivery per already ordered hours
- time picker
- pickup in store and delivery at a time/date

best regards,
stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Add plugin

Postby sinane.g@.....com » Thu Dec 05, 2013 1:43 am

Hej

I have a plugin from CMSmart.com
The name of the plugin is Delivery date and time, but this program doesn't work on your checkout plugin.
I want only the time and date from the costumer, but the costumer shall choose date from the calender.
I dont want any specific tings.
sinane.g@.....com
 
Posts: 5
Joined: Tue Dec 03, 2013 4:06 pm

Re: Add plugin

Postby sinane.g@.....com » Thu Dec 05, 2013 2:19 am

I wrote it wrong 'cmsmart.net '
sinane.g@.....com
 
Posts: 5
Joined: Tue Dec 03, 2013 4:06 pm

Re: Add plugin

Postby sinane.g@.....com » Fri Dec 06, 2013 5:24 pm

you said , you have a plugin for delivery date and time . how kan i get it ?

sinan
thanks
sinane.g@.....com
 
Posts: 5
Joined: Tue Dec 03, 2013 4:06 pm

Re: Add plugin

Postby admin » Fri Dec 06, 2013 7:14 pm

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
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Add plugin

Postby sinane.g@.....com » Sat Dec 07, 2013 1:47 pm

thanks a lot this solution works very well for me. but i have new problem . shipping cost is not added to the total sum
Attachments
prtsc_2.jpg
prtsc_2.jpg (64.59 KiB) Viewed 18416 times
prtsc_1.jpg
prtsc_1.jpg (59.18 KiB) Viewed 18416 times
sinane.g@.....com
 
Posts: 5
Joined: Tue Dec 03, 2013 4:06 pm

Re: Add plugin

Postby admin » Sun Dec 08, 2013 10:37 pm

Hello,acording to your image there is no payment available for the given address or the shoppergroup. Pls try latest opc version, or make sure that there is at least one payment available. Best regards,stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 2