Esempio n. 1
0
 function getPackingSlipLink()
 {
     $member = Member::currentUser();
     if ($member && $member->IsShopAdmin()) {
         if ($this->IsSubmitted()) {
             return Director::AbsoluteURL(OrderConfirmationPage::get_order_link($this->ID)) . "?packingslip=1";
         }
     }
 }
 function getPackingSlipLink()
 {
     if (Permission::check(Config::inst()->get("EcommerceRole", "admin_permission_code"))) {
         if ($this->IsSubmitted()) {
             return Director::AbsoluteURL(OrderConfirmationPage::get_order_link($this->ID)) . "?packingslip=1";
         }
     }
 }