Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Create extension at Zuora
- *
- * @param AppStore_Extension_Model_Product $product
- * @throws Exception
- * @return string|null Product identifier
- */
- public function createExtensionProduct($product)
- {
- /** @var $customer Mage_Customer_Model_Customer */
- $customer = Mage::getModel('customer/customer')->load($product->getDeveloperId());
- if (!$product->getEditions()) {
- return;
- }
- foreach ($product->getEditions() as $edition) {
- if ($someHelper->isGoEdition($edition, $product)) {
- $product->setZuoraName($this->getZuoraName($product, $edition));
- $this->createExtensionProduct($product);
- }
- }
- }
Add Comment
Please, Sign In to add comment