\CountryPrice_OrderDOD
Adds functionality to Order
Synopsis
class CountryPrice_OrderDOD
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $searchable_fields = ;
- private static array $field_labels = ;
- private static array $summary_fields = ;
- private static integer $_number_of_times_we_have_run_localise_order = 0;
- private static boolean $only_allow_within_country_sales = false;
- // methods
- public static void localise_order()
- public void onInit()
- public void onCalculateOrder()
- public void updateCMSFields()
- public void onAfterWrite()
- public void canView()
- public void canEdit()
- public void canCreate()
- public Distributor getDistributor()
- protected void setCountryDetailsForOrder()
- public void updateReplacementArrayForEmail()
Hierarchy
Extends
- DataExtension
Members
private
- $_number_of_times_we_have_run_localise_order
- $db
- $field_labels
- $has_one
- $only_allow_within_country_sales
- $searchable_fields
- $summary_fields
Methods
protected
- setCountryDetailsForOrder() — this needs to run as part of the order live update
public
- canCreate() — it is safer to only allow creation on the front-end...
- canEdit()
- canView()
- getDistributor()
- localise_order() — this method basically makes sure that the Order has all the localised stuff attached to it, specifically the right currency
- onAfterWrite() — Event handler called after writing to the database.
- onCalculateOrder()
- onInit()
- updateCMSFields()
- updateReplacementArrayForEmail() — 1. adds distribut emails to order step emails ... if $step->SendEmailToDistributor === true