Classes of goods

Open to all! Ask other shopowners for help.
Post Reply
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Classes of goods

Post 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
You do not have the required permissions to view the files attached to this post.
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Classes of goods

Post 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
You do not have the required permissions to view the files attached to this post.
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Classes of goods

Post 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
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply