\AUPostDeliverModifier
Calculates the shipping cost of an order by using the delivery rate calculator (DRC) of the australian post
Synopsis
class AUPostDeliverModifier
extends OrderModifier
{
- // members
- public static array $db = ;
- public static string $singular_name = "Australian Delivery";
- public static string $plural_name = "Australian Deliveries";
- protected static $shippingAddress;
- protected static String $url = 'http://drc.edeliver.com.au/ratecalc.asp?';
- protected static Boolean $allow_pick_up = false;
- protected static String $pickup_post_code = 2000;
- protected static Integer $assumed_dimension = 160;
- protected static Integer $minimum_weight = 0;
- protected static Float $handling_charge = 2;
- protected static Float $error_value = 9.99;
- public static Array $service_types = ;
- protected static $service_type;
- private static AUPostDeliverModifier $calculated_total_in_memory = NULL;
- // methods
- public void getCMSFields()
- public void i18n_single_name()
- public void i18n_plural_name()
- public static void set_url()
- public static void get_url()
- public static void set_allow_pick_up()
- public static void get_allow_pick_up()
- public static void set_pickup_post_code()
- public static void get_pickup_post_code()
- public static void set_assumed_dimension()
- public static void get_assumed_dimension()
- public static void set_minimum_weight()
- public static void get_minimum_weight()
- public static void set_handling_charge()
- public static void get_handling_charge()
- public static void set_error_value()
- public static void get_error_value()
- public static void get_service_type()
- public static void set_service_type()
- public void runUpdate()
- public void updateIsPickUp()
- public void updateCountry()
- public void updatePostalCode()
- public void showForm()
- public Object getModifierForm()
- public Boolean ShowInTable()
- protected String LiveName()
- public String LiveTableSubTitle()
- protected Boolean LiveIsPickup()
- protected String LiveCountry()
- protected Double LiveTotalWeight()
- protected String LivePostalCode()
- protected String LiveServiceType()
- public Double LiveCalculatedTotal()
- public void LiveTableValue()
- public void onBeforeWrite()
- public Boolean HideInAjaxUpdate()
Hierarchy
Extends
- OrderModifier
Tasks
Line | Task |
---|---|
275+ | : add option to choose delivery option (fast post, slow post, etc...) |
318+ | return the type of delivery! Maybe we can get the customer to choose the type of delivery? |
Members
private
- $calculated_total_in_memory — AUPostDeliverModifier
protected
- $allow_pick_up — Boolean
- $assumed_dimension — Integer
- $error_value — Float
- $handling_charge — Float
- $minimum_weight — Integer
- $pickup_post_code — String
- $service_type — string
- $shippingAddress
- $url — String
public
- $db
- $plural_name
- $service_types — Array
- $singular_name
Methods
protected
- LiveCountry() — Used to save Country to database
- LiveIsPickup() — standard Order Modifier Method
- LiveName() — standard Order Modifier Method
- LivePostalCode()
- LiveServiceType()
- LiveTotalWeight()
public
- HideInAjaxUpdate() — some modifiers can be hidden after an ajax update (e.g. if someone enters a discount coupon and it does not exist).
- LiveCalculatedTotal() — Calculates the extra charges from the order based on the weight attribute of a product ASSUMPTION -> weight in grams
- LiveTableSubTitle()
- LiveTableValue()
- ShowInTable()
- getCMSFields() — return Object FieldObjetSet standard SS method
- getModifierForm() — standard Order Modifier method
- get_allow_pick_up()
- get_assumed_dimension()
- get_error_value()
- get_handling_charge()
- get_minimum_weight()
- get_pickup_post_code()
- get_service_type()
- get_url()
- i18n_plural_name()
- i18n_single_name()
- onBeforeWrite()
- runUpdate() — updates database fields
- set_allow_pick_up()
- set_assumed_dimension()
- set_error_value()
- set_handling_charge()
- set_minimum_weight()
- set_pickup_post_code()
- set_service_type()
- set_url()
- showForm()
- updateCountry()
- updateIsPickUp()
- updatePostalCode()