Jump to content

Modify adminProducts.php


vietnam

Recommended Posts

I need to make a lightweight version of Admin products

 

I don`t need to lose 3 to 5 seconds to load a lot of unnecessary stuff.

 

For example i will never change the Category`s because the categories are added when i import once a week the products.

 

I don`t need to change the price, because is imported the same.

 

I have attached a file with some of the unnecessary fileds, but i cannot figure it where can i remove the warning, because now when i try to save i get an error, because it tells me that i cannot have a product without a default category.

 

And i don`t need to chenge the category, so i don`t need for him to load, and then save.

 

I only need to add description, manufacturer, images and features to the products.

 

The AdminProducts.pphp attached is for the latest prestashop 1.4.8.2

AdminProducts.php

Edited by vietnam (see edit history)
Link to comment
Share on other sites

Hi.

 

If you remove those elements, on update you will lose their values or be set to 0 (in case of the price).

 

Even if you do not want to display them, you must have their values sent to the PHP file, so you should place their values in a hidden input field.

 

<input type="hidden" name="[NAME]" value="[VALUE]"/>

 

Regards.

 

Robin.

 

The CartExpert Team

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...