Danish Laeeq Posted April 24, 2020 Share Posted April 24, 2020 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 More sharing options...
nirmuc Posted January 14, 2021 Share Posted January 14, 2021 I'm looking for an awnser too ... if anyone can help .. I know show_condition field can be updated using a query but I'm looking for a more elegant solution ... Link to comment Share on other sites More sharing options...
Prestachamps Posted January 14, 2021 Share Posted January 14, 2021 Hi, in the CSV import, you should set the column "show_condition" to 1 Kind regards, Leo 1 Link to comment Share on other sites More sharing options...
nirmuc Posted January 14, 2021 Share Posted January 14, 2021 hi @Leo mmm that was my first intention .. but I don't find this column ... Link to comment Share on other sites More sharing options...
Prestachamps Posted January 14, 2021 Share Posted January 14, 2021 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 1 Link to comment Share on other sites More sharing options...
nirmuc Posted January 14, 2021 Share Posted January 14, 2021 3 hours ago, Leo @ Prestachamps said: Hi, in the CSV import, you should set the column "show_condition" to 1 Kind regards, Leo Works like a charm!!! thank you so much!! 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