For Prestashop 1.7.5
1. Add State in Database:
- Open the ps_product and ps_product_shop tables in your database.
- Modify the condition column to include the new state, such as "test".
2. Modify ProductOptions.php File:
- Open the file src\PrestaShopBundle\Form\Admin\Product\ProductOptions.php.
- Locate the line with 'condition', FormType\ChoiceType::class.
- Add the new option to the choices array: $this->translator->trans('Test', [], 'Shop.Theme.Catalog') => 'test',.
3. Update the Product Class:
- Open the file classes\Product.php.
- Find the line stating 'condition' => array(...).
- Add "test" to the list of possible values for condition, e.g., 'values' => array('new', 'used', 'refurbished', 'test').