Totally Zenned
- Join Date:
- Apr 2006
- Location:
- Dark Side of the Moon
- Posts:
- 986
- Plugin Contributions:
- 0
Easy Populate 1.2.5.4 support
If you use Quantity Price Discounts (or Price Breaks based on purchased Quantity) on your store, I have a working solution using EP to download, upload and update price breaks. Yes, this did require me to code it and create a new file type: Model/Price/Breaks "PriceBreaks-...".
Langer never got around to adding this, nor was it ever in EP-advanced last we spoke well over a year ago. It seems he's dropped off the map... I hope he's well.
I think a few people may have done their own coding to achieve this but to my knowledge no one has posted their work. I had intended to do this myself a long time ago, but you know how it is! The other issue is when you upload an update to something like EP you sort of take it on and that can be chore in itself!
It turns out this was not really that complicated, at least not for my needs. Took about two work days to figure out. I've tested this with data from our catalog: about 3500 product with a mix of no price breaks and items that break on up to three quantities. I have not tested the other breaking scheme (like percentage). These will have different quantity_price_discount codes.
A couple things to keep in mind: This is ALPHA code at best! The attached easypopulate.zip ONLY contains the easypopulate.php file. I have made numerous modifications (and deletions) to this file to suit my needs so please only use this for a reference on how to do your own quantity breaks. Some things are rather 'hard-coded' and not pretty.
SERIOUSLY! EP code is a mess :p to start with and a big bloated mess at that! No wonder no one has done a full rewrite!
To my knowledge the "froogle" stuff is dead. Also, the whole Attributes feature never worked properly either (please correct me if I'm wrong on that!).
Oh, I have not come up with a solution to remove unused breaks... meaning if you uploaded a product that had 4 price breaks, and then later change to 3 price breaks, you will have to set the 4th price break to 0 so it don't show (or go into the file via phpMyAdmin and delete it).
This is really for people with at least some coding experience, knowledge of MySQL and using phpMyAdmin. BACK UP YOUR STORE if you play with the code, USE AT YOUR OWN RISK yada yada yada not-so-legal disclaimer verbage. I will not be held responsible for you killing your store!