/**
  * Returns the "copy order" link
  * @param Int | String $orderID - not used in CartPage
  * @return String (URLSegment)
  */
 public static function copy_order_link($orderID)
 {
     return OrderConfirmationPage::find_link() . "copyorder/" . $orderID . "/";
 }
예제 #2
0
 function getRetrieveLink()
 {
     if ($this->IsSubmitted()) {
         //add session if not added yet...
         if (!$this->SessionID) {
             $this->SessionID = substr(md5(microtime()), 0, 32);
             $this->write();
         }
         return Director::AbsoluteURL(OrderConfirmationPage::find_link()) . "retrieveorder/" . $this->SessionID . "/" . $this->ID . "/";
     } else {
         return Director::AbsoluteURL("/shoppingcart/loadorder/" . $this->ID . "/");
     }
 }
예제 #3
0
 function getRetrieveLink()
 {
     if ($this->IsSubmitted()) {
         if (!$this->SessionID) {
             $this->SessionID = session_id();
             $this->write();
         }
         return Director::AbsoluteURL(OrderConfirmationPage::find_link()) . "retrieveorder/" . $this->SessionID . "/" . $this->ID . "/";
     } else {
         return Director::AbsoluteURL("/shoppingcart/loadorder/" . $this->ID . "/");
     }
 }
 /**
  *@return String (URLSegment)
  **/
 public function OrderConfirmationPageLink()
 {
     return OrderConfirmationPage::find_link();
 }