Category: prestashop-1.7

Prestashop. How can allow anonymous users accses to custom symfony controller?

I have some question What are you thinking, is it possible to use custom Symfony route without authorization I have custom additional Entity (in module) and need response JSON content for anonymous users (API) But when I try to allow…

Creating and accessing custom module’s REST routes in Prestashop 1.7.5

I am trying to create a custom controller in my Prestashop 1.7.5 module. I created a custom controller: # /var/www/html/modules/Profit/src/controller/ProductProfitController.php namespace ProfitController; use PrestaShopBundleControllerAdminFrameworkBundleAdminController; use SymfonyComponentHttpFoundationJsonResponse; class ProductProfitController extends FrameworkBundleAdminController { public function test() { return JsonResponse(); } } I…