Kaudaj Posted May 13, 2023 Share Posted May 13, 2023 (edited) Discover the infinite Blocks experience. TRY IT NOW! => Why blocks? A banner, a slider, a text... What are all these things? Content blocks. Natively, you can display them through one dedicated module for each of them: ps_banner, ps_imageslider, ps_customtext. But they have a major problem: flexiblity. For each "block type", you have one module, one configuration, one block per hook. Who hasn't thought of duplicating these modules? Here comes the idea to make a module that allows you to add multiple independent blocks. Each one has its own type, own options, own location. => And page builders? Page builders have more or less the same goal. I would say it's still a matter of advantages and disadvantages. Of my own experience, I would sum up like this: Advantages of page builders More user-friendly Directly usable in the front-office Advantages of kjblocks Lighter render, much less superfluous HTML code Very extensible and configurable Made exclusively for PrestaShop: optimized, multistore, consitent interfaces, maintained I'm working on the user-friendly aspect, but this module will probably never be as user-friendly as the page builders. It's maybe not even the goal. The goal is mainly to keep it simple, optimized and flexible. => Extensions This module is free and can be extensible by any developer for specific needs. It means that anyone can add their own block types with through the extensions concept. If you're a developer, check out the extension example on GitHub. If you're not developer or/and you have common needs, you can buy directly the official extensions on PrestaShop Addons to add new types to your collection: Not available yet, coming soon... => Download PrestaShop >= 1.7.8: kjblocks-v1.1.1.zip => Useful links Documentation: readme_en.pdf Live demo: https://prestashop-demo.kaudaj.com/kjblocks/admin7etb657grfg YouTube: https://youtu.be/DWbMUzpRiiA GitHub: https://github.com/Kaudaj/kjblocks Example extension: https://github.com/Kaudaj/kjblocksexampleextension => Changelog 1.1.1: PS 1.7.8 backward compatibility 1.1.0: PS 8.0 compatibility 1.0.0: First release Edited July 23, 2023 by Kaudaj Add version 1.1.1 (see edit history) 2 Link to comment Share on other sites More sharing options...
DNK-LUIFER Posted May 15, 2023 Share Posted May 15, 2023 En 13/5/2023 a las 4:49 PM, Kaudaj dijo: Discover the infinite Blocks experience. TRY IT NOW! => Why blocks? A banner, a slider, a text... What are all these things? Content blocks. Natively, you can display them through one dedicated module for each of them: ps_banner, ps_imageslider, ps_customtext. But they a major problem: flexiblity. For each "block type", you have one module, one configuration, one block per hook. Who hasn't thought of duplicating these modules? Here comes the idea to make a module that allows you to add multiple independent blocks. Each one has its own type, own options, own location. => And page builders? Page builders have more or less the same goal. I would say it's still a matter of advantages and disadvantages. Of my own experience, I would sum up like this: Advantages of page builders More user-friendly Directly usable in the front-office Advantages of kjblocks Lighter render, much less superfluous HTML code Very extensible and configurable Made exclusively for PrestaShop: optimized, multistore, consitent interfaces, maintained I'm working on the user-friendly aspect, but this module will probably never be as user-friendly as the page builders. It's maybe not even the goal. The goal is mainly to keep it simple, optimized and flexible. => Extensions This module is free and can be extensible by any developer for specific needs. It means that anyone can add their own block types with through the extensions concept. If you're a developer, check out this extension example on GitHub: [link]. If you're not developer or/and you have common needs, you can buy directly the official extensions on Addons to add new types to your collection: Not available yet, coming soon... => Download Prestashop >= 1.7.8: kjblocks.zip => Useful links Documentation: readme_en.pdf Live demo: https://prestashop-demo.kaudaj.com/kjblocks/admin7etb657grfg YouTube: https://youtu.be/DWbMUzpRiiA GitHub: https://github.com/Kaudaj/kjblocks Example extension: https://github.com/Kaudaj/kjblocksexampleextension => Changelog 1.0.0: First release readme_en.pdf 365.96 kB · 4 downloads Works perfectly on PS 1.7.8.X You can make it compatible with PS 8.0.X or PS 8.1.X Thank you so much. 1 Link to comment Share on other sites More sharing options...
Kaudaj Posted May 15, 2023 Author Share Posted May 15, 2023 1 hour ago, DNK-LUIFER said: Works perfectly on PS 1.7.8.X You can make it compatible with PS 8.0.X or PS 8.1.X Thank you so much. Thanks for your reply! I was just thinking about this subject. I'll make all my modules compatible to 8.X in the week. However, it will probably imply that the upgrades will not be longer compatible with 1.7.X, because 8 is a major version and brings many breaking changes. 1 Link to comment Share on other sites More sharing options...
Kaudaj Posted May 16, 2023 Author Share Posted May 16, 2023 @DNK-LUIFER A new release is available! => 1.1.0: PS 8.0 compatibility kjblocks-v1.1.0.zip 1 Link to comment Share on other sites More sharing options...
fitgura Posted May 20, 2023 Share Posted May 20, 2023 Is there any chance to run a php content in a box please? Link to comment Share on other sites More sharing options...
Kaudaj Posted May 20, 2023 Author Share Posted May 20, 2023 (edited) What is exactly your use case? Should the user be able to enter his own PHP code in BO and the server would run it? If this is what you want to do, you could create a "PHP" block type which would use the eval method. However, as everyone agrees, this method is dangerous and not recommended. I would recommend creating a dedicated block type yourself (if you're a developer) and adding options to adjust the display rather than letting the merchant do the coding part (at least for PHP, HTML/JS can be considered though). If you decide to use eval method anyway, be sure to add a validation because merchant will probably save crashy code sometimes. In any case, you will have to develop your own Blocks extension. Official extensions will be released but at the moment, there are only two block types (text and container). Text type will not run php code, it will only accept html code. Moreover, I'm not sure to add this kind of block in an official extension, as it's too tricky for merchant and not safe enough. Edited May 20, 2023 by Kaudaj (see edit history) Link to comment Share on other sites More sharing options...
prestaconfig Posted May 22, 2023 Share Posted May 22, 2023 (edited) Hi @Kaudaj, I just tested it and it's work like charm! (PS 1.7.8). Did you schedule to have option for select wich products or category you can apply a block ? Goal will be to have a different text depend of category for instance. (see screenshot). Ie: Product select: Block 1 -> id_product1, id_product2 .. Category select: Block 2 -> Category 1, Subcategory11, Subcategory12 Brand select ..... Regards, Edited May 22, 2023 by prestaconfig picture small (see edit history) 1 Link to comment Share on other sites More sharing options...
prestaconfig Posted May 22, 2023 Share Posted May 22, 2023 Link to comment Share on other sites More sharing options...
Kaudaj Posted May 22, 2023 Author Share Posted May 22, 2023 Hi @prestaconfig, Thanks for your feedback. This is not planned for kjblocks itself but I note this feature for a future extension. I already planned to do an extension about product blocks and these options can be indeed interesting. But if you're in a hurry, any developer (or you) can code this. In fact, the main goal of this module is to be super extensible, so any developer can add the block type he needs! Link to comment Share on other sites More sharing options...
prestaconfig Posted May 22, 2023 Share Posted May 22, 2023 Thanks for this fast reply. I am not hurry at all and unfortunately and i am not a developer. Anyway, your job on this module is cool! I will keep an eye on the new features! Have a great day. 1 Link to comment Share on other sites More sharing options...
Kaudaj Posted July 23, 2023 Author Share Posted July 23, 2023 A new release is available! => 1.1.1: PS 1.7.8 backward compatibility kjblocks.zip 1 1 Link to comment Share on other sites More sharing options...
Andy C Posted March 4 Share Posted March 4 Using v8.3 wont let me install Oops... Upload failed. What happened? Installation of module failed. This file does not seem to be a valid module zip Link to comment Share on other sites More sharing options...
ps8modules Posted March 4 Share Posted March 4 (edited) 50 minutes ago, Andy C said: Using v8.3 wont let me install Oops... Upload failed. What happened? Installation of module failed. This file does not seem to be a valid module zip Hi. Because the module is not intended for your version of Prestashop. The developer has it clearly written. From version 1.7.8.0 to version 8.0.x ! And you have a version of Prestashop that hasn't even been invented yet. The last version of Prestashop that was released is 8.1.4 Edited March 4 by ps8modules.com (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now