ProductCompareController
class ProductCompareController extends Controller
Class ProductCompareController defines routes for compare
Methods
array
productCompareShowAction(ArrayCollection $productShowCompare)
Frontend route for listing all compare lists
JsonResponse
productCompareAction(ArrayCollection $productCompare)
API route for adding product to compare if user not logged
JsonResponse
compareAddNewListAction(ArrayCollection $productCompareNewJSON)
API route for adding new compare list
JsonResponse
compareRemoveProductFromListAction(ArrayCollection $productCompareRemoveProduct)
API route for removing product from compare list
JsonResponse
compareListDeleteAction(ArrayCollection $productCompareDeleteListJSON)
API route for deleting compare list
Response
productCompareAddToListAction(ArrayCollection $productCompareAddProductJSON)
API route for adding product to compare if user logged
Details
at line 43
array
productCompareShowAction(ArrayCollection $productShowCompare)
Frontend route for listing all compare lists
at line 62
JsonResponse
productCompareAction(ArrayCollection $productCompare)
API route for adding product to compare if user not logged
at line 77
JsonResponse
compareAddNewListAction(ArrayCollection $productCompareNewJSON)
API route for adding new compare list
at line 110
JsonResponse
compareRemoveProductFromListAction(ArrayCollection $productCompareRemoveProduct)
API route for removing product from compare list
at line 125
JsonResponse
compareListDeleteAction(ArrayCollection $productCompareDeleteListJSON)
API route for deleting compare list
at line 140
Response
productCompareAddToListAction(ArrayCollection $productCompareAddProductJSON)
API route for adding product to compare if user logged