tUb26 Posted March 31, 2014 Share Posted March 31, 2014 (edited) Hello! My question is, how can I install the same module same module more than one times? I guess I have to change the code in some module files, but I don't know exactly what. Or is it specific for every module? The module I want to install in a new copy: productaccessories (http://www.prestashop.com/forums/topic/46505-module-product-accessories/) Thanks for the answers. Edited March 31, 2014 by tUb26 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 31, 2014 Share Posted March 31, 2014 for what purposes you want to install this module two times? maybe there is a lot easier way to achieve what you expect. modification like that needs huge customization of module code, and in some cases also module database etc. at the end: everything depends on module, how it is coded etc. Link to comment Share on other sites More sharing options...
tUb26 Posted April 1, 2014 Author Share Posted April 1, 2014 Hey vekia! Thank you for your quick response! Well the reason is that the productacessories module is already installed, to show the accessories for the given product. But I need a module for the custom related products aswell. I know, that PrestaShop automatically give a related product section to the product page, if there is at least one more product in the same category, but I would like to set these products myself, because some products that I want to add as related are not in the same category as the given product. Productacessories module would be a solution for that, but as I mentioned it is already installed and I didn't find any alternative solution. Link to comment Share on other sites More sharing options...
tUb26 Posted April 3, 2014 Author Share Posted April 3, 2014 Are there any solution for this? Link to comment Share on other sites More sharing options...
malixmalix Posted April 10, 2014 Share Posted April 10, 2014 Before I make a new topic I will try to glue myself to this one. I have similar issue. I would like to put on first page 3 or 4 times HomeFeatured Module. Why? My customer would like to have separate featured products for few categories and each has it's own title. for ex. Shoes 1 2 3 4 5 6 Jeans 1 2 3 4 5 6 etc. maybe there is some other easy way to do this. all the best to you guys!! Lukas Link to comment Share on other sites More sharing options...
dioniz Posted April 10, 2014 Share Posted April 10, 2014 One way to do it, is to copy module and then change filenames like homefeatured2 and classes in homefeatured.php. Maybe there's some module to do this in Addons Link to comment Share on other sites More sharing options...
malixmalix Posted April 10, 2014 Share Posted April 10, 2014 hey Dioniz. I was trying to do this but without a success. I will try one more time. I changed for sure names from homefeatured to homefeatured2 and inside tpl and php files I changed all homefeatured strings into homefeatured2 Link to comment Share on other sites More sharing options...
dioniz Posted April 10, 2014 Share Posted April 10, 2014 Try again and be sure to replace all occurencies and they are case sensitive Link to comment Share on other sites More sharing options...
tUb26 Posted April 11, 2014 Author Share Posted April 11, 2014 (edited) Yeah I tried that too, but no luck. I think that's because it doesn't matter that I rename the files and strings from let's say homefeatured to homefeatured2, the module will create and use the same database tables and fields as the other one. Edited April 11, 2014 by tUb26 (see edit history) Link to comment Share on other sites More sharing options...
dioniz Posted April 11, 2014 Share Posted April 11, 2014 That's why i said all occurencies. You can change HOME_FEATURED_NBR to HOME_FEATURED2_NBR for database and so on. I copied few modules like this and it works for me. Link to comment Share on other sites More sharing options...
malixmalix Posted April 12, 2014 Share Posted April 12, 2014 I did it one more time. But this time, slow and easy and WORKS PERFECT!! For homefeatured module you don't need to change anything in database. Just be sure to change all strings contain "homefeatured" into "homefeatured2" etc. As an extra feature I kick out additional homefeatured.css to keep all in one style file. Thanks guys for help. The answer is always to do things with head with no rush 1 Link to comment Share on other sites More sharing options...
vekia Posted April 13, 2014 Share Posted April 13, 2014 and if you change the number of products - i bet that it will be changed for both modules Link to comment Share on other sites More sharing options...
malixmalix Posted April 13, 2014 Share Posted April 13, 2014 if so it's good for me because I want them to look the same. I found your tutorial how to change category to be shown in homefeatured module and for me all of those options works just perfect. Thanks for help Link to comment Share on other sites More sharing options...
vekia Posted April 13, 2014 Share Posted April 13, 2014 glad to hear that one of my guide could help you :-) any chance to see it live somewhere? im so curious about final effect 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