Jump to content

Declare variable in product.php


Recommended Posts

Hi all 


Am creating a new module , Please excuse for my english 


Problem --- when i install new module i want to declare "  public $custom_field;  " in product.php , if i put it manually in classes/product.php then my module working fine , i want to declare it automatically while install , any idea ? or any different way ? 


Please help me 

Link to comment
Share on other sites

Thankyou vekia , i tried your solution , Its working :)


 But a small problem , at the time of module installation me getting one error " Unable to install override: directory  "  , i think its becouse of existing root/override/classes/product.php , right ?  , If  i deleted this product.php then my module installed succesfully, any other way to do this without delete product.php from root/override/classes/product.php ? 



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