Jump to content

Search the Community

Showing results for tags 'controller'.

  • Search By Tags

    • controller ×
    Type tags separated by commas.
  • Search By Author

Content Type



Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


  1. On my custom module, I've a custom admin controller with a tpl, anyone knows how I can use bootstrap on that controller?
  2. Hello, I would like to know how to update the view in the backoffice using a controller from a module. I have made this controller and view, code is below: AdminModlistController.php in customizeproducts/controllers/admin <?php class AdminModlistController extends ModuleAdminController { pub...
  3. Bonjour, J'ai créé un module dans PrestaShop 8.1 où je déclare la class VirtualProductExternalLink extends \ObjectModel dans le dossier /src/Entity/ . J'ai fait un override GetFileController.php du controller GetFileControllerCore placé dans le dossier override/controllers/front/ du module...
  4. Hi, I have a module which displays table in DisplayAdminProductsExtra hook, and there are links to another controller extending ModuleAdminController. Controller is in my_module/controllers/admin/ link is: index.php?controller=AdminDetailSpecificationTables It didn't work for first t...
  5. Hello everyone ! As my pseudo say, i'm a junior developer and i have some issues with a module i'm creating. When i install my module, and click on the configure button, i have an error : "the controller is missing or invalid". I don't understand why because it's in the right f...
  6. Hello, I create new sub-menu in BO customer menu as -- Customers -- Customers -- Addresses -- MySubmenu I displayed when user click in "MySubmenu" the same page as Customers, I put in the class_name of the tab : $tab->class_name = 'Admin...
  7. I am working on a Prestashop 1.7 and need to add a new field to combinations tab in back-office product details page . I was successful in adding the field to twig file and saving the data to product table ( via product class override ). Now I need to show the saved value in the said field in comb...
  8. hi i am new to prestashop. iam using firetech module. i need to create category access nav bar on product.tpl file. can anyone help me to how to called all the categories on there.
  9. Hi community members. I was trying to override a listing controller from this path `controllers/front/listing/CategoryController.php`. As you all know you just need to copy and paste this file with the relative path into your custom module like this `modules/mymodule/override/controllers/f...
  10. Hi there, I'm writing this post because maybe you'll be able to help me as I got stuck with the module that I'm creating. I'd like to create a module adding "remove all" button to a cart that shows confirmation modal after being clicked. Up to this point I created the following: 1. Re...
  11. Hello, I'm trying to modify the layout of the frontpage and have for example two columns (hooks) inside the main container where I could attach modules. On the footer or the header it's easy because there are .tpl files (footer.tpl, product.tpl,...) I can edit and change the layout with bo...
  12. PS version (1.7.5.2) Need to override (extend) ProductController with new custom controller. PrestaShopBundle\Controller\Admin\ProductController extended (custom) controller path : modules/my_module/Controller/ service.yml path : module/my_module/config/services.yml...
  13. I want to modify the list of product displayed in the back-office of Prestashop 1.7, And at some point i want to remove some product from displayed based on condition. So i thought that i should Override the AdminProductController (older controller) but i found that this controller has been moved...
  14. Hi friends, First thanks to all fot the help you gave me. Im not a programmer, only kind of advanced user. I have a shop who some of the products have references like "s-01" or "T-01" this is with a "minus" character in the middle. This searches works well on back office, but in fron office...
  15. Hi, I overrided Product class, added a new attribute and overrided getproducts function from cart class. I need this attribute in cart-detailed-product-line.tpl. I tried to access it with {$product.my_attribute} but it doesn't work. And when I try {var_dump($product)} I can see my attribute, h...
  16. Hi, sorry for my english I'm developping a module who needs to use my custom cart-detailed.tpl when the cart is updated. I overrided the function displayAjaxRefresh in CartController to use the tpl in my module. But I can't use my cart-detailed.tpl file. I tested the full path, path starting wi...
  17. I want to make the Cart accept only one product in a way that: when i add a product to the cart it erase the old one and put the new product in place , I actually found some content on this topic, But it's so old, And they give a solution that display an error in the front office if a user...
  18. i have created a symfony controller and i added a button in the toolbar , my problem is i want to add attribute like id or class to this button any help ? this is the button
  19. Hi I am looking for a way to access product features from a custom module controller. Can anyone offer some guidance on which function I need to use, or how to go about doing this? Thanks, Etienne
  20. Hi, I am creating a front controller for MyModule, but I have an error. Fatal error: Class 'ModuleFrontController' not found Curently, my file is : <?php /* MyModule/controllers/front/MyController.php */ class MyModuleMyControllerFrontController extends ModuleFrontController {...
  21. Hi guys, I'm trying to create an Admin Controller with a csv file uploader to process it like an array. I can't find an efficient way to do it, I tried to use $this-> fields_form, but nothing is showing up. Then I did a tpl file with an input file, called in initContent,...
  22. Hello can i please can anyone help me with clear example of a working custom route to a controller in a custom module? the tutorial on that is quite unclear an i am still unable to create a working route to a controller in the module i am building. Thanks.
  23. My controller file inside my module (modules\individualpackaging\controllers\front\task.php) :- class IndividualpackagingTaskModuleFrontController extends ModuleFrontController { public function __contruct() { parent::__contruct(); } public function init() { p...
  24. Hi, I changed the main url working style a bit for my website. Normally, the prestashop link should look like this: mywebsite.com/en/catalog/... But, I installed the prestashop on a subfolder of my website. So it looked like this: mywebsite.com/shop/en/catalog... "shop" here is t...
  25. Hello I need help, I'm in trouble. I'm using the DisplayCarrierExtraContent hook. The extra content is a select option. I want to save the value to the DB. I'm trying to use ajax and controllers. I'm not very experienced and although I'm reading from different forums, I can't figure...
×
×
  • Create New...