Jump to content

Need To Show Condition by Default in Product Page


Recommended Posts

Condition is not shown by default in prestashop each time if i upload products through CSV i need to check the Display Condition  box in order to show Condition but here i want it to be checked by default so i i add new products through csv then condition is shown and i don't need to manually display it by Editing the each of the product

Link to comment
Share on other sites

  • 8 months later...

Hi,

well, then I think this is a bug of the import, as the product import section has no association for column "show_condition"

you can try to modify the /controllers/admin/AdminImportController.php and add this line:

                    'condition' => ['label' => $this->trans('Condition', [], 'Admin.Catalog.Feature')],

 before the condition, so the code will be :

                    'online_only' => ['label' => $this->trans('Available online only (0 = No, 1 = Yes)', [], 'Admin.Advparameters.Feature')],
                    'show_condition' => ['label' => $this->trans('Show Condition', [], 'Admin.Advparameters.Feature')],
                    'condition' => ['label' => $this->trans('Condition', [], 'Admin.Catalog.Feature')],
after this modification the Show condition will be available in the column association ,and then import one product to check if it's working.

Kind regards, Leo

 

  • Thanks 1
Link to comment
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
×
×
  • Create New...