Jump to content
musicmaster

[Free Script] Prestools Suite: Mass Edit, Order Edit And Much More

Recommended Posts

 

I have uninstalled and deleted all prestools files, and I have reinstalled the 1.0.4, this seems ok!
Thank's a lot!

  • Like 1

Share this post


Link to post
Share on other sites

Hi,

Could you help me....For product-edit.php I would want to save check boxes according to my preferences. At the moment all check boxes are set for "Show" but I want to set some of them on "HIDE", other to set on "EDIT" Also that I would want by default to use "TinyMCE TinyMCE-deluxe" for description and description_short

I now that I have to edit any file but I do know which one. I hope that you can help me. Please check the screenshot attached

settings.jpg

Share this post


Link to post
Share on other sites

You can set the variable $default_product_fields in settings1.php to set which fields you get in product edit. Not showing is not the same as hiding but I hope that solves that part of your problem enough.

As for the tinymce issue, I will have to think about it. The reason it isn't there is that I am afraid that opening hundred Tinymce boxes at once might be quite resource intensive. If you want to look yourself: it is in the switchDisplay() function in the product-edit6.js file.

Share this post


Link to post
Share on other sites
15 minutes ago, musicmaster said:

You can set the variable $default_product_fields in settings1.php to set which fields you get in product edit. Not showing is not the same as hiding but I hope that solves that part of your problem enough.

As for the tinymce issue, I will have to think about it. The reason it isn't there is that I am afraid that opening hundred Tinymce boxes at once might be quite resource intensive. If you want to look yourself: it is in the switchDisplay() function in the product-edit6.js file.

Could you help me with Tinymce boxes. I do not have big knowledges in php. Is that the part of the code which I need to edit and what exactly to edit to display Tinymce always as I select checkbox Edit for description and description_short

 

function switchDisplay(id, elt, fieldno, val)  // collapse(field)
{ var tmp, tmp2, val, checked;
  var advanced_stock = has_combinations = change_stockflags = has_catalogue_rules = false;
  if(val == '0') /* hide */
  { var tbl= document.getElementById(id).parentNode;
    for (var i = 0; i < tbl.rows.length; i++)
      if(tbl.rows.cells[fieldno])
        tbl.rows.cells[fieldno].style.display='none';
  }

Share this post


Link to post
Share on other sites

I found an option which is OK for me: Mass update --> description and description_short --> set on TinyMCE  

That resolve my problem.

  • Like 1

Share this post


Link to post
Share on other sites
11 hours ago, tapukatata said:

I found an option which is OK for me: Mass update --> description and description_short --> set on TinyMCE  

That resolve my problem.

In case you didn't know: mass edit has options to switch all fields in a column to TinyMCE at once

Share this post


Link to post
Share on other sites

Hi there,

i have problems after switching to php7.3:

i get this error: (page trows 500 error)

AH01071: Got error 'PHP message: PHP Fatal error: Declaration of AdminPrestoolsSuiteController::setMedia() must be compatible with AdminControllerCore::setMedia($isNewTheme = false) in /var/www/vhosts/smartus.ro/httpdocs/modules/prestoolssuite/controllers/admin/AdminPrestoolsSuiteController.php on line 29', referer: https://www.smartus.ro/admin624fkcef5/index.php?controller=AdminDashboard&token=a7d8d1cdd9ab130989ca61646f2adfae

On php7.2.17 same problem, but on php7.1.28 all works ok.

Thanks

Share this post


Link to post
Share on other sites
2 minutes ago, espacious said:

Hi there,

i have problems after switching to php7.3:

i get this error: (page trows 500 error)


AH01071: Got error 'PHP message: PHP Fatal error: Declaration of AdminPrestoolsSuiteController::setMedia() must be compatible with AdminControllerCore::setMedia($isNewTheme = false) in /var/www/vhosts/smartus.ro/httpdocs/modules/prestoolssuite/controllers/admin/AdminPrestoolsSuiteController.php on line 29', referer: https://www.smartus.ro/admin624fkcef5/index.php?controller=AdminDashboard&token=a7d8d1cdd9ab130989ca61646f2adfae

On php7.2.17 same problem, but on php7.1.28 all works ok.

Thanks

Do you have a recent version of Prestools? This what the update of the minimodule from 1.03 to 1.04 was about.

Share this post


Link to post
Share on other sites
Posted (edited)

Aha no i was not aware of the new version. let me try. So 1.04 is latest?

Umm, can't find 1.04 can someone point me where i can download? 

Edited by espacious (see edit history)

Share this post


Link to post
Share on other sites
58 minutes ago, espacious said:

Aha no i was not aware of the new version. let me try. So 1.04 is latest?

Umm, can't find 1.04 can someone point me where i can download? 

Prestools is updated every few weeks. And yes, for the mini-module 1.04 is the latest.

Share this post


Link to post
Share on other sites

Hi musicmaster,

How can I search empty fields like manufacturer and supplier?

Share this post


Link to post
Share on other sites
5 hours ago, Rolcsi said:

Hi musicmaster,

How can I search empty fields like manufacturer and supplier?

Set the comparer field (normally "in") to "!in" or "!="

Set the field to manufacturer of supplier

Leave the text field empty

  • Thanks 1

Share this post


Link to post
Share on other sites
14 hours ago, musicmaster said:

Set the comparer field (normally "in") to "!in" or "!="

Set the field to manufacturer of supplier

Leave the text field empty

I try but does not work, always listing all product. Can you explain whats the problem?

prestools.jpg

Share this post


Link to post
Share on other sites
8 hours ago, Rolcsi said:

I try but does not work, always listing all product. Can you explain whats the problem?

prestools.jpg

Suppliers should have worked. Manufacturers were indeed not yet implemented. I have done that now in a new update.

It has become a bit wider upgrade where the logic has been changed a bit. You find empty fields now with "!in" and "="

  • Thanks 1

Share this post


Link to post
Share on other sites
13 hours ago, musicmaster said:

Suppliers should have worked. Manufacturers were indeed not yet implemented. I have done that now in a new update.

It has become a bit wider upgrade where the logic has been changed a bit. You find empty fields now with "!in" and "="

This is fantastic tool for PS! Thanks for help

Share this post


Link to post
Share on other sites

Sorry for asking again, i cant find the latest version to download, i use the free version, i would like to have the ver.1.04 if this is the latest, becouse i was told 1.04 will solve compatibility with php7.3.x

In Prestashop BO i see no upgrades available fro Prestools Suite

Thanks.

Share this post


Link to post
Share on other sites
7 minutes ago, espacious said:

Sorry for asking again, i cant find the latest version to download, i use the free version, i would like to have the ver.1.04 if this is the latest, becouse i was told 1.04 will solve compatibility with php7.3.x

In Prestashop BO i see no upgrades available fro Prestools Suite

You can download Prestools from post #1 of this thread or the Prestools website.

1.04 is the version of the mini-module. The latest version of Prestools itself is 1.22z2

 

Share this post


Link to post
Share on other sites

Aha the mini-module is not for free? Ok so i presume im on the latest version but i have problems make it work on php7.3.x

Share this post


Link to post
Share on other sites
45 minutes ago, espacious said:

Aha the mini-module is not for free? Ok so i presume im on the latest version but i have problems make it work on php7.3.x

The minimodule is part of the main package. But it has its own version number

Share this post


Link to post
Share on other sites

Hi,

How can I set on EDIT option for the check boxes in product edit page? I want some of that option always to be on EDIT without to click each time on that option.

Thank you!

Share this post


Link to post
Share on other sites
11 hours ago, tapukatata said:

How can I set on EDIT option for the check boxes in product edit page? I want some of that option always to be on EDIT without to click each time on that option.

There is no official way to do this. If you want to experiment you should use javascript. In the page you can put an "onload" in the body element and call from there the switchDisplay() function. But I don't support this.

  • Like 1

Share this post


Link to post
Share on other sites

Cool script. How about make this script as a PrestaShop Module? It could be nice to be able to use this from PrestaShop BO.

Share this post


Link to post
Share on other sites
Posted (edited)

Thanks a lot for this module, u save me some hours, doing the same task, over and over again :)

Edited by brunobski (see edit history)

Share this post


Link to post
Share on other sites

I have installed the last version 1.23a but now I have this error message:

"Error analysing version number"

I have installed prestools suite but the module doesn't appeear in the list of module

I am with Prestashop 1.6.23 and php 1.7.1

Share this post


Link to post
Share on other sites
59 minutes ago, yannfanch said:

I have installed the last version 1.23a but now I have this error message:

"Error analysing version number"

I have installed prestools suite but the module doesn't appeear in the list of module

I am with Prestashop 1.6.23 and php 1.7.1

Hi Yannfanch,

Can you try this version of login1.php?

 

login1.php

Share this post


Link to post
Share on other sites

Super, it works correctly.

Thank you musicmaster

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More