Jump to content

papaja

Members
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Activity
    User/Merchant

papaja's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thank you Tung, Vekia. As I dived deeper into my module development and checked newsletter block module I have realized that what I really need is newsletter block module on some steroids For example I need First name and Last name as columns in db table. And Vekia clarified that Module like newsletter block does not have hooks. So, should I: - create new module using newsletter block as starting point or - modify newsletter block module?
  2. Hello everyone, I am just starting to get my feet wet with PS development. I would like to learn to do it right or best way from beginning, so I have few general questions. Let's say that I want to collect email addresses of newsletter subscribers from my PS and send them using web services to our other software. I want everything in PS to continue working pretty much as it is working now which means user can subscribe using newsletter block in the footer or subscribe/unsubscribe while creating/modifying account. In order to capture these two events, should I modify newsletter block module and account creation/modification logic or should I create a separate module and somehow hook it into these events or something else? If I create my own module I would also like it to show pop-in to some visitors asking for newsletter subscription. I want to say that module will have some html and css for the front end. If I use module which has html and css for front office, can that module be hooked into events of other modules or should I create 2 modules: one for collecting emails (visual) and another for hooking into every place where emails are collected (non visual )?
  3. Hi, I've used https://validator.prestashop.com/generator to generate very basic module. I installed module and observed following: After I switch from no to yes and fill email and password fields and click save, data is saved in database. However, switch field returns to no regardless of database field being set to 1. What is even worse, as soon as I go back to modules list and click on configure, module configuration shows and data in database is set to null for all module fields. Is this expected behavior or should I modify generated code in order to: 1. Switch stays green after clicking save, 2. Preserve data in database and load it on clicking configure? I have attached module as it came from generator. mymodule.zip
×
×
  • Create New...