To create a support ticket, start a search

FixMyPrestashop - Setup a control and its action tools

With Store Commander, you can create your own controls. If for example you are using an ERP, you could add controls to check whether the data is correctly synchronized between the ERP and PrestaShop.

On your store, you'll find 2 directories:

/modules/storecommander/xxxxxxx/SC/ that contains Store Commander application and regularly updated (do not write in this folder).

and

/modules/storecommander/xxxxxxx/SC_TOOLS/ that contains user preferences, various interface customization informations, and your own FixMyPrestaShop controls.

To create a control, you need to add 2 folders (if they don't already exist):

/modules/storecommander/xxxxxxx/SC_TOOLS/win-fixmyprestashop/

and

/modules/storecommander/xxxxxxx/SC_TOOLS/win-fixmyprestashop/actions/

Then, you need to create this file which will be used to display the new control in the control list:

/modules/storecommander/xxxxxxx/SC_TOOLS/win-fixmyprestashop/controls.php

$controls['CAT_PROD_0'] = array(
    'key' => 'CAT_PROD_0',
    'version_min' => '1.4.5.7',
    'version_max' => '8.0.0',
    'tools' => 'Catalog',
    'section' => 'Product',
    'name' => 'Produits à 0 euro',
    'description' => 'Check if products are 0 euros'
);

CAT_PROD_0 is the unique identifier of your control.

Tools and Section can be chosen in the below list (or created by yourself, with no translation):

With the principe of "key:title displayed in the list"

------Tools------
CMS:CMS
Catalog:Catalog
Customer:Customer
General:General
Multistores:Multistore
Order:Order
Security:Security
Transport:Transport

------SECTIONS------
Attachment:Attachment
Attributes:Attributes
Block:Block
CMS:CMS
Carrier:Carrier
Category:Category
Combination:Combination
Country:Country
Database:Database
Feature:Feature
Files:Files
GDPR:GDPR
Group:Group
Manufacturer:Manufacturer
Modules:Modules
Password:Password
Product:Product
SEO:SEO
Server:Server
Status:Status
Stock:Stock
Supplier:Supplier
Taxes:Taxes

The second and last file you need to create will deal with running the control as well as the information in the righ handside: interface and fix actions.

The easiset is to use the example in the downlaodable file below and follow the comments.

Download the file