Jump to content

Cannot delete feature from product


pawelszulc

Recommended Posts

  • 3 months later...

Hi,

I have the same problem at 1.7.7.1. I cant remove the features, if I delete the feature and go away, then come back and it's there again. and if I delete the features they usually duplicate so theres a big list and I can't delete them. It's driving me nuts.

 

 

feature.PNG

Link to comment
Share on other sites

You need to login to your database and edit tables:

PREFIX_feature_product - delete all row where id_feature is 0 - also remember id_feature_value all deleted rows you will need this later

PREFIX_feature_value_lang - delete all row where id_feature_value is same like above

PREFIX_feature_value - delete all row where id_feature is 0

 

It is good practice to create copy database before editing, in case of trouble you wil be able to restore it.

 

  • Like 2
Link to comment
Share on other sites

  • 2 years later...

Hello,

I need to remove custom features from a single product. Can I proceed like this?

DELETE FROM PREFIX_feature_value_lang
WHERE id_feature_value IN (
    SELECT id_feature_value
    FROM pm_feature_product
    WHERE id_product = ID_PRODUCT
);

DELETE FROM PREFIX_feature_value
WHERE id_feature_value IN (
    SELECT id_feature_value
    FROM pm_feature_product
    WHERE id_product = ID_PRODUCT
);

DELETE FROM PREFIX_feature_product
WHERE id_product = ID_PRODUCT;

Best,

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