Page 1 of 1

Classes of goods

Posted: Wed Feb 24, 2021 8:51 am
by Kofod95
This is sort of an update, sort of a re-write of an old add-on, allowing storeowners to assign products to a class of goods. I've written it for two storeowners I help out occasionaly, with the intention of allowing shipping prices and free shipping to be defined by the classes of goods, and the intention of allowing a monthly and yearly sales-report to be shown for each class of goods.
It consist of a hook to assign the product to a class in the "product specifics"-tab, a new page to insert and edit classes of goods and a sql to create the new table in the database, as well as add a field on the products_table.
Please feel free to bring suggestions for improvements, or general comments - For now this is only the classes themselves. The shipping-part needs some cleaning up, and I haven't yet finished writing the report-part.

Also, please don't install on a live-store! I'm only doing this for fun, and am trying to learn along the way, so it might be very flawed.
products_classes.zip
//Daniel

Re: Classes of goods

Posted: Mon Mar 01, 2021 10:17 am
by Kofod95
And here is the classes with the shipping-module included. I will write a readme at some point, just to clarify, but it should not be too complicated as is. I hope this might be helpful for someone!
ship_after_class.zip
//Daniel

Re: Classes of goods

Posted: Wed Mar 03, 2021 8:13 am
by Kofod95
Something I just thought of and might make as well; a way to assign manufacturers to classes of goods. One store I help out sells cigars, wine, spirits and pipes. The manufacturers are used as brands, and there are many of them (near thousand). This is a bit inconvenient, as they are getting hard to find - both in the product drop-down and on manufacturers.php. Sorting them into classes, might be helpful. This post is to share my idea, welcome feedback on it, and help me remember as I'm away from my PC and notebook :)

//Daniel