Hello All,
I hope I've posted this to the right forum category. If not, please forgive and the forum admin could put where appropriate...
I'm writing my own mod because I'm frustrated with other mods that don't either get the job truly done AND/OR there is other features sorely missing for EASY administration.
But I'm stuck on where to initially put the "Hook" into Zen Cart so the mod will have a proper starting point. What I'm looking for is where I can, at one central point (a particular .php file? or several?), add the code to where it would allow me to add to the URI stream right after "&product_id=" so I can insert and pass the initial data to get the process started for managing options by dependicies, etc. Perhaps there is a "zen_does_this()" function I can use or mod to make it happen?
In other words, as the cart's initial Home Page (index) is created, each referenced product on the page has a clickable link to go to the Product Info page (and the link always ends with: &product_id=# ). Where do I go to add more to the URI right after the &product_id=# ??
Any suggestions, hints, tips (or outright solutions, LOL) will be greatly appreciated!
And if you're curious, here is what my mod will do:
1. Product Option Dependencies by Attributes (95% Done)
The heart of the whole mod and something that ZC sorely
needs (and done right, IMHO).
2. Product Images by Attributes (60% Done)
When you change a garment style, the image should change
with it (say from Tee to Hoodie), don't you think? What
about designs/artwork printed on light or dark garments?
Typically there are 2 design versions/images for whether
printing on a dark or light garment. This is no longer a
problem as the mod displays the image you want!
3. Product Stock by Attributes (35% Done)
Keeps track of Stock on a per product attribute level.
4. Product Suppliers (& SKU's) by Attributes (35% Done)
Often garments come from different suppliers depending on
attributes of style, color, size, etc. When sales occur,
you either have an inventory of blank stock garments on
hand (expensive) or you order from suppliers what you need
to fulfill the sale. Now you can run a report on unfilled
sales to know exactly what you need to order and from which
supplier to order it from. Who needs a big inventory now?
I am handling dependencies from 2 to 4 assigned options to a product and can handle all variations easily and quickly. (Plus, you can Hide or Show all used or unused variations of dependencies. Quite cool, I think.)
The mod (at this time) ONLY handles the use of PULLDOWN's for option/attribute selections. Primarily because pulldowns are the most efficient way to handle the number of variations AND dealing with limited display area on the Product Info Display page.
There will be added tools for easily copying data/option sets, image sets, etc. to other products as well. Very handy for those who have garment products such as T-shirts and other types of clothing based on style, color, and sizes. (Pants/Trousers have need of 4 options: Style, Color, Waist Size & Inseam Size)
The admin backend is nearly complete and functions fully, where you setup all the dependencies, etc. just from reading/pulling options & attribute names/values from the database.
And because I do have a warped sense of humor and known to be an irreverently funny guy...
I have named my mod: Garment Attributes With Dependencies And More!
or... GAWDAM! for short.
Chris Lemke
aka: Mega Moonshine
Bookmarks