Originally Posted by a_berezin
![]()
Ok since you were waiting for it.....
Attached v1.4 to this post.
This version enables you to enter the products price including tax, and the price ex tax will be calculated and filled in (using js).
I also made preparations to add a purchase price and calculate margin (profit in %) for each product (and store these values to the database). But this part is not functional yet. I commented these additions with "// add for products_purchase_price and margin". I think it is almost complete, but I am sure some more changes will have to be made and typos need to be corrected to make it really work.
For now those preparations are all disabled so they will not intefere with the normal operation of the script.
Please test extensively and backup your database before using it on a live shop! ;-)
Bookmarks