ProductController
class ProductController extends AbstractSeoCrudController
Manages products
Traits
Constants
EMPTY_FORM_NAME |
|
CONTROLLER_TYPE |
|
TEMPLATE_404 |
|
Methods
return an instance of \Swift_Mailer with good Transporter configured.
No description
Helper to append a message to the admin log.
This method process the rendering of view called from an admin page
No description
Load a object for modification, and display the edit template.
Save changes on a modified object, and either go back to the object list, or stay on the edition page.
Update object position (only for objects whichsupport that)
Online status toggle product
Update SEO modification, and either go back to the object list, or stay on the edition page.
Attributes ajax tab loading
Related information ajax tab loading
return a list of document which will be displayed in AJAX
No description
No description
No description
No description
No description
No description
Update accessory position
Update related content position
Change product template for a given product.
Update product attributes and features
No description
No description
No description
No description
A a new combination to a product
A a new combination to a product
Process the change of product's PSE list.
Update default product sale element (not attached to any combination)
Build combinations from the combination output builder
Invoked through Ajax; this method calculates the taxed price from the untaxed price, and vice versa.
Calculate tax or untax price for a non existing product.
Calculate all prices
No description
No description
No description
No description
No description
Details
in
BaseController at line 128
EventDispatcher
getDispatcher()
Return the event dispatcher,
in
BaseController at line 138
Translator
getTranslator()
return the Translator
in
BaseController at line 545
MailerFactory
getMailer()
return an instance of \Swift_Mailer with good Transporter configured.
in
BaseController at line 569
BaseForm
createForm($name, $type = 'form',
array $data = array(),
array $options = array())
in
BaseController at line 589
ContainerInterface
getContainer()
in
BaseAdminController at line 90
string
getControllerType()
in
BaseAdminController at line 52
adminLogAppend($resource, $action, $message, $resourceId = null)
Helper to append a message to the admin log.
in
BaseAdminController at line 71
Response
processTemplateAction(
string $template)
This method process the rendering of view called from an admin page
at line 92
__construct()
in
AbstractCrudController at line 290
Response
defaultAction()
The default action is displaying the list.
in
AbstractCrudController at line 305
Response
createAction()
Create a new object
in
AbstractCrudController at line 392
Response
updateAction()
Load a object for modification, and display the edit template.
in
AbstractCrudController at line 417
Response
processUpdateAction()
Save changes on a modified object, and either go back to the object list, or stay on the edition page.
in
AbstractCrudController at line 506
updatePositionAction()
Update object position (only for objects whichsupport that)
at line 476
setToggleVisibilityAction()
Online status toggle product
in
AbstractCrudController at line 605
Response
deleteAction()
Delete an object
in
AbstractSeoCrudController at line 149
Response
processUpdateSeoAction()
Update SEO modification, and either go back to the object list, or stay on the edition page.
at line 111
loadAttributesAjaxTabAction()
Attributes ajax tab loading
at line 124
loadRelatedAjaxTabAction()
Related information ajax tab loading
at line 552
Response
getVirtualDocumentListAjaxAction($productId, $pseId)
return a list of document which will be displayed in AJAX
at line 585
getAvailableRelatedContentAction($productId, $folderId)
at line 610
addRelatedContentAction()
at line 636
deleteRelatedContentAction()
at line 664
getAvailableAccessoriesAction($productId, $categoryId)
at line 689
addAccessoryAction()
at line 715
deleteAccessoryAction()
at line 744
updateAccessoryPositionAction()
Update accessory position
at line 757
updateContentPositionAction()
Update related content position
at line 773
mixed|Response
setProductTemplateAction(
int $productId)
Change product template for a given product.
at line 802
RedirectResponse|Response
updateAttributesAndFeaturesAction(
int $productId)
Update product attributes and features
at line 881
addAdditionalCategoryAction()
at line 907
deleteAdditionalCategoryAction()
at line 935
getAttributeValuesAction($productId, $attributeId)
at line 960
addAttributeValueToCombinationAction($productId, $attributeAvId, $combination)
at line 1009
addProductSaleElementAction()
A a new combination to a product
at line 1035
deleteProductSaleElementAction()
A a new combination to a product
at line 1180
updateProductSaleElementsAction()
Process the change of product's PSE list.
at line 1190
updateProductDefaultSaleElementAction()
Update default product sale element (not attached to any combination)
at line 1220
buildCombinationsAction()
Build combinations from the combination output builder
at line 1312
priceCalculator()
Invoked through Ajax; this method calculates the taxed price from the untaxed price, and vice versa.
at line 1346
JsonResponse
calculatePrice()
Calculate tax or untax price for a non existing product.
For an existing product, use self::priceCaclulator
at line 1381
JsonResponse
loadConvertedPrices()
Calculate all prices