-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDealerPickup.php
More file actions
50 lines (44 loc) · 1.81 KB
/
Copy pathDealerPickup.php
File metadata and controls
50 lines (44 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
namespace DealerPickup;
use Thelia\Module\AbstractDeliveryModule;
use Thelia\Model\Country;
class DealerPickup extends AbstractDeliveryModule
{
/** @var string */
const DOMAIN_NAME = 'dealerpickup';
const SESSION_SELECTED_DEALER_ID = 'pickup_dealer_id';
const DEFAULT_DELIVERY_DAYS = 3;
const TRACKING_MESSAGE_NAME = 'dealerpickup_tracking_message';
const POSTAGE_AMOUNT = 0.0;
/*
* You may now override BaseModuleInterface methods, such as:
* install, destroy, preActivation, postActivation, preDeactivation, postDeactivation
*
* Have fun !
*/
public function isValidDelivery(Country $country)
{
return true; // This delivery method is always available
}
/**
*
* Compute and return the delivery price
*
* @param Country $country
* @return float
*/
public function getPostage(Country $country)
{
return self::POSTAGE_AMOUNT;
}
}