I am busy modifying the uc_product module to include the stock fields inside that table.
Fields:
level :- The current available number of product in stock.
threshold :- The level below which email notification are sent.
nosalestocklevel :- The stock-level at which stock is no longer sold.
autodecrementstock :- Switch to automatically decrement stock levels as product is purchased.
I struggled with the existing stock handling modules and gave up on the uc_stock module up after realising that adding a simple stock-level to a view as a "column" is almost impossible, and would be extremely inefficient.
Anyways, my question is this:
How do I best create this modified module that can be published for everyone to use?
Do I create a branch for the sub-component uc_product, with it's own version number and stuff.
I did try to create a module that is close to uc_product called (say) uc_stockprod that somehow overrides uc_product almost entirely, but could not figure out how to override the functions in uc_product.
Please let me know what the appropriate technique is to "override" uc_product (A mandatory core component of ubercart), I will then research that way further.



