static function populateTemplateForm($form) { //rebuild the variable cache to ensure the use of the latest DB values basket_plus::reset_var_cache(); $form->configure->PAYMENT_DETAILS->value(basket_plus::getBasketVar(PAYMENT_DETAILS)); $form->configure->CUSTOMER_DETAILS->value(basket_plus::getBasketVar(CUSTOMER_DETAILS)); $form->configure->ORDER_COMPLETE_PAGE->value(basket_plus::getBasketVar(ORDER_COMPLETE_PAGE)); $form->configure->ORDER_PAID_COMPLETE_PAGE->value(basket_plus::getBasketVar(ORDER_PAID_COMPLETE_PAGE)); $form->configure->ORDER_THANKYOU->value(basket_plus::getBasketVar(ORDER_THANKYOU)); $form->configure->ORDER_DETAILS->value(basket_plus::getBasketVar(ORDER_DETAILS)); $form->configure->EMAIL_TEMPLATE_STYLE->value(basket_plus::getBasketVar(EMAIL_TEMPLATE_STYLE)); $form->configure->ORDER_COMPLETE_EMAIL_SUBJECT->value(basket_plus::getBasketVar(ORDER_COMPLETE_EMAIL_SUBJECT)); $form->configure->ORDER_PAID_EMAIL_SUBJECT->value(basket_plus::getBasketVar(ORDER_PAID_EMAIL_SUBJECT)); $form->configure->ORDER_PAID_EMAIL->value(basket_plus::getBasketVar(ORDER_PAID_EMAIL)); $form->configure->ORDER_PAID_DELIVERED_EMAIL_SUBJECT->value(basket_plus::getBasketVar(ORDER_PAID_DELIVERED_EMAIL_SUBJECT)); $form->configure->ORDER_PAID_DELIVERED_EMAIL->value(basket_plus::getBasketVar(ORDER_PAID_DELIVERED_EMAIL)); $form->configure->ORDER_LATE_PAYMENT_EMAIL_SUBJECT->value(basket_plus::getBasketVar(ORDER_LATE_PAYMENT_EMAIL_SUBJECT)); $form->configure->ORDER_LATE_PAYMENT_EMAIL->value(basket_plus::getBasketVar(ORDER_LATE_PAYMENT_EMAIL)); $form->configure->ORDER_DELIVERED_EMAIL_SUBJECT->value(basket_plus::getBasketVar(ORDER_DELIVERED_EMAIL_SUBJECT)); $form->configure->ORDER_DELIVERED_EMAIL->value(basket_plus::getBasketVar(ORDER_DELIVERED_EMAIL)); $form->configure->ORDER_DELIVERED_NOTPAID_EMAIL_SUBJECT->value(basket_plus::getBasketVar(ORDER_DELIVERED_NOTPAID_EMAIL_SUBJECT)); $form->configure->ORDER_DELIVERED_NOTPAID_EMAIL->value(basket_plus::getBasketVar(ORDER_DELIVERED_NOTPAID_EMAIL)); $form->configure->ORDER_DELAYED_EMAIL_SUBJECT->value(basket_plus::getBasketVar(ORDER_DELAYED_EMAIL_SUBJECT)); $form->configure->ORDER_DELAYED_EMAIL->value(basket_plus::getBasketVar(ORDER_DELAYED_EMAIL)); $form->configure->ORDER_CANCELLED_EMAIL_SUBJECT->value(basket_plus::getBasketVar(ORDER_CANCELLED_EMAIL_SUBJECT)); $form->configure->ORDER_CANCELLED_EMAIL->value(basket_plus::getBasketVar(ORDER_CANCELLED_EMAIL)); $form->configure->ORDER_EMAIL_CLOSING->value(basket_plus::getBasketVar(ORDER_EMAIL_CLOSING)); $form->configure->ORDER_EMAIL_FOOTER->value(basket_plus::getBasketVar(ORDER_EMAIL_FOOTER)); $form->configure->ORDER_EMAIL_LOGO->value(basket_plus::getBasketVar(ORDER_EMAIL_LOGO)); }