Ejemplo n.º 1
0
 function ToString()
 {
     $sc[] = $this->Name;
     $sc[] = $this->Url;
     $sc[] = $this->Category;
     $str = GetStream($sc);
     return UUEncode($str);
 }
Ejemplo n.º 2
0
 function GetLogCheckOut()
 {
     $strCustomData = $this->GetCustomData();
     $strData = "";
     $strReferrerData = $this->GetReferrerData();
     // fill all products
     $Prod = new ProductCOHolder();
     if (count($this->ProductsArray) > 0) {
         for ($i = 0; $i < count($this->ProductsArray); $i++) {
             $Prod->ProductList[$i]["SKU"] = $this->ProductsArray[$i]["SKU"];
             $Prod->ProductList[$i]["Variant"] = $this->ProductsArray[$i]["Variant"];
             $Prod->ProductList[$i]["Discount"] = $this->ProductsArray[$i]["Discount"];
             $Prod->ProductList[$i]["Price"] = $this->ProductsArray[$i]["Price"];
             $Prod->ProductList[$i]["Quantity"] = $this->ProductsArray[$i]["Quantity"];
             $Prod->ProductList[$i]["Coupon"] = $this->ProductsArray[$i]["Coupon"];
         }
     }
     $strProductDetails = $Prod->ToString();
     if (!($strProductDetails == "" || trim($strProductDetails) == "")) {
         $strData .= "0d_pdco=" . $strProductDetails;
     }
     // fill cart info
     $cartHolder = new CartInfoHolder();
     $cartHolder->CartID = $this->sCartID;
     $cartHolder->Coupon = $this->sCartCoupon;
     $cartHolder->Discount = $this->fCartDiscount;
     $cartHolder->ProductCount = $this->iCartProductCount;
     $cartHolder->SubTotal = $this->fCartSubTotal;
     $strCartInfo = $cartHolder->ToString();
     if (!($strCartInfo == "" || trim($strCartInfo) == "")) {
         $strData .= "0d_ci=" . $strCartInfo;
     }
     if (!($this->sOrderID == "" || trim($this->sOrderID) == "")) {
         $strData .= "0d_oid=" . UUEncode($this->sOrderID);
     }
     if (!($strReferrerData == null || $strReferrerData == "" || trim($strReferrerData) == "")) {
         $strData .= "0d_ref=" . $strReferrerData;
     }
     if (!($strCustomData == "" || trim($strCustomData) == "")) {
         $strData .= "0d_cd=" . $strCustomData;
     }
     return $strData;
 }