/** returns the url of the checkout or null if there is a error */ public function goToCheckout($sizeID, $appearance) { $sizes = $this->productType->getSizes(); if (isset($sizes[$sizeID])) { // echo "size :".$sizes[$sizeID]; // echo "appearance :".$this->product->getDefaultAppearanceID(); $checkout = new CheckoutController(); if ($this->useShopCheckout) { return $checkout->checkout($this->article, $this->shopID, $sizeID, $this->product->getDefaultAppearanceID()); } else { return $checkout->checkout($this->article, NULL, $sizeID, $this->product->getDefaultAppearanceID()); } } return NULL; }