-
Notifications
You must be signed in to change notification settings - Fork 1
/
Manage.php
29 lines (20 loc) · 884 Bytes
/
Manage.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
namespace Ess\M2ePro\Controller\Adminhtml\Amazon\Listing\Product\Variation;
use Ess\M2ePro\Controller\Adminhtml\Amazon\Main;
class Manage extends Main
{
public function execute()
{
$productId = $this->getRequest()->getParam('product_id');
if (empty($productId)) {
$this->setAjaxContent('You should provide correct parameters.', false);
return $this->getResult();
}
$listingProduct = $this->amazonFactory->getObjectLoaded('Listing\Product', $productId);
$listingProduct->getChildObject()->getVariationManager()->getTypeModel()->getProcessor()->process();
$tabs = $this->createBlock('Amazon\Listing\Product\Variation\Manage\Tabs');
$tabs->setListingProduct($listingProduct);
$this->setAjaxContent($tabs);
return $this->getResult();
}
}