Jump to content
thirty bees forum
  • 0

Edit custom bool field


Question

Posted

Hi,

I have added a custom bool field to products and it properly displays if it is true or false in the back office.
But as the title says, I now need to edit it so it can switch between true and false.

I've already added it in db, classes/Product.php, and controllers/AdminProductsController.php.
I probably need something in AdminProductsController.php but don't know what it is.

Thanks in advance.

1 answer to this question

Recommended Posts

  • 0
Posted

For me its not clear, what your question is / what you want to achieve. As far as I understand now, you want to use this bool on product.tpl. Is this correct?

In general I would prefer to go with a module instead of changing core files. You would just need a table with (id_product, your_bool) and then load a your custom hook on product.tpl.

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