Initial Commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace DigressivePrice\Controller;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Thelia\Controller\Front\BaseFrontController;
|
||||
use Thelia\Model\ProductSaleElementsQuery;
|
||||
|
||||
/**
|
||||
* Class DigressivePriceFrontController
|
||||
* @package DigressivePrice\Controller
|
||||
*/
|
||||
class DigressivePriceFrontController extends BaseFrontController
|
||||
{
|
||||
/**
|
||||
* @return mixed|\Symfony\Component\HttpFoundation\Response
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function updateTableAction($pseId)
|
||||
{
|
||||
if (null !== $pse = ProductSaleElementsQuery::create()->findPk($pseId)) {
|
||||
|
||||
return $this->render(
|
||||
'digressive-price/product-details-bottom',
|
||||
[
|
||||
'pse_id' => $pse->getId(),
|
||||
'product_id' => $pse->getProductId()
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
return new Response('');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user