Ajeh Posted October 23, 2002 Share Posted October 23, 2002 I have just the Admin to finish on this, but is anyone looking for a Discount Quantity Controller by product? EXAMPLE: http://www.thewebmakerscorner.com/snapmods...?products_id=30 I just have the one product in there defined right now, but it shows a table on the product_info.php ... you decide on borders and such as it's a table in a table. Then the cart gets a recalculated price when on the shopping_cart.php Feedback and usefulness of this would be helpful. I have it so that you can define 4 additional prices, or does that make 5? Well, it's one or the other once I am done coding this :shock: Link to comment Share on other sites More sharing options...
sprokop Posted October 26, 2002 Share Posted October 26, 2002 I have just the Admin to finish on this, but is anyone looking for a Discount Quantity Controller by product? EXAMPLE: http://www.thewebmakerscorner.com/snapmods...?products_id=30 I just have the one product in there defined right now, but it shows a table on the product_info.php ... you decide on borders and such as it's a table in a table. Then the cart gets a recalculated price when on the shopping_cart.php Feedback and usefulness of this would be helpful. I have it so that you can define 4 additional prices, or does that make 5? Well, it's one or the other once I am done coding this :shock: I am very much interested. Can you post some screen shots of the admin interface? Link to comment Share on other sites More sharing options...
iizzo Posted October 26, 2002 Share Posted October 26, 2002 look good enough for me... where can I download it? Link to comment Share on other sites More sharing options...
Ajeh Posted October 26, 2002 Author Share Posted October 26, 2002 There were actually a couple bugs that were just worked out of it. Could use some feedback on how it works and if it messes up anywhere. Link to comment Share on other sites More sharing options...
sprokop Posted October 27, 2002 Share Posted October 27, 2002 I'll try to get to it today. Thanks for your contribution. S-- Link to comment Share on other sites More sharing options...
Guest Posted October 28, 2002 Share Posted October 28, 2002 Thats awsome...it i sjust what im looking for....how is it going (any bugs) where could i get it? Link to comment Share on other sites More sharing options...
Ajeh Posted October 28, 2002 Author Share Posted October 28, 2002 I am working on finishing it up and cleaning up some routines for speed and consistancy. Then I have to extract it into its own little Add-On. Silly me, I combined it with another group of Add-Ons and got carried away with what I was doing before I realized it ... it was its own Add-on :shock: I will have to see what my work is like this week with some clients and when I will find time to get to doing all that. Link to comment Share on other sites More sharing options...
johnglobal Posted October 30, 2002 Share Posted October 30, 2002 Hi Linda This is a welcome module that will become very popular. I was trying to get something like this working in the past. I would like to change the display price to show something like "as low as $40" which fits your example Do you think that would be possible ? Thanks John ps what will this contribution be called Link to comment Share on other sites More sharing options...
johnglobal Posted October 30, 2002 Share Posted October 30, 2002 Also linda Do you think it would be possible to have the following in the future as per http://www.oscommerce.com/forums/viewtopic.php...6238&highlight= PRODUCT_A Retail 1-12:5.99,13-99:4.99,100-*:3.99; Wholesale 1-11:NA,12-24:3.99,25-*:1.99; Where #-# are quantity ranges. and NA means not available Thanks John Link to comment Share on other sites More sharing options...
Ajeh Posted October 30, 2002 Author Share Posted October 30, 2002 You can always customize this code beyond what it does. Just like the Free Call for Price Add-on gives you a zillion ways for the price to be displayed depending on it's value or an HTML tag in the products name, the same can be done based on a real price and wanting to jazz it up a bit when there is a quantity discount. As to the wholesale issue, that is another whole box of changes to do that would incorporate a customer flag of some sort to indicate should the customer see the wholesale or not. Then, what are the new discounted amounts. As most wholesale setups are specific prices per product and not an across the board XX% discount on the products this needs to have its own values. But, again anything can be customized to how you want it once you have a base to work from. Link to comment Share on other sites More sharing options...
Guest Posted October 31, 2002 Share Posted October 31, 2002 Hi Linda I agree with John.... this will be very popular. Food for thought: If the high and low for a particular quanty range is the same number are you displaying #-# or just #? 8) Not that I want to slow up packaging this add on. LOL I'm so impressed with the oscommerce community and developers I figured it was time to register and say so. We need a "standing-O" emoticon. Dan Link to comment Share on other sites More sharing options...
Ajeh Posted October 31, 2002 Author Share Posted October 31, 2002 It displays both ranges and single values. You can look at it at: http://www.thewebmakerscorner.com/snapmods The Testing category has the most obvious links to products with either price breaks or quantity minimums and quantity units or a combination of both. Link to comment Share on other sites More sharing options...
kots Posted November 4, 2002 Share Posted November 4, 2002 This is what the doctor ordered Can't wait to try this mod. Thanks Lynda Kots Link to comment Share on other sites More sharing options...
sprokop Posted November 8, 2002 Share Posted November 8, 2002 Hey Linda, When do you think you'll have this finished? I am still interested as we had discussed before! Thanks Sam Link to comment Share on other sites More sharing options...
thiswaynow Posted November 8, 2002 Share Posted November 8, 2002 I'm also extremely keen to get my hands on this mod- it'll tidy up one of my projects no end! Link to comment Share on other sites More sharing options...
Ajeh Posted November 8, 2002 Author Share Posted November 8, 2002 Game plan is sometime this weekend. With luck I may even have both a version for the old and new snapshots. Link to comment Share on other sites More sharing options...
iizzo Posted November 8, 2002 Share Posted November 8, 2002 these are GREAT news! Good luck. Link to comment Share on other sites More sharing options...
nicotine Posted November 9, 2002 Share Posted November 9, 2002 Hi Linda! This is 100% good stuff! I think it will be very useful for me as I'm planning to setup a B2B store and we do quantity pricing rather then %. But will it be possible to assign different quantity pricing to different customers? My other question is that if I have customer from another country eg I'm from the U.K and the customer is in France, is there a way that I can only allow him to see the price in Euro and not Pounds and visa versa. i.e. i have different quantity pricing for individual customers in U.K and abroad and I only want them to see their own quantity prices in their own currency. Thanks! Link to comment Share on other sites More sharing options...
Ajeh Posted November 9, 2002 Author Share Posted November 9, 2002 You can design programs any way you want ... :shock: If you are not into design, then you have to make do with what is designed and say little prayers that someone has hours and hours of time to devote to your wish list and wants to create something custom like that for you ... or you know ... hire a programmer :D You are not asking for a simple add-on. But you might look in the contributions for discount pricing for various members. Link to comment Share on other sites More sharing options...
wvmlt Posted November 14, 2002 Share Posted November 14, 2002 Just wondering about the quantity discount mod. Keith What the hell was I thinkin'? Link to comment Share on other sites More sharing options...
Ajeh Posted November 14, 2002 Author Share Posted November 14, 2002 Hopefully done with everything this week. Updating code to the new snapshot and the old is lots of fun :shock: Link to comment Share on other sites More sharing options...
thiswaynow Posted November 18, 2002 Share Posted November 18, 2002 Hi, I'm hoping to be able to use this module for the pre-November snapshot, with a client site waiting. Is there anything I can do to help you with the module? Link to comment Share on other sites More sharing options...
Ajeh Posted November 19, 2002 Author Share Posted November 19, 2002 Quantity Controller v5.0 and patch 1 have been added to the contributions. This one works with the new snapshots made from November 13, 2002 http://www.oscommerce.com/forums/viewtopic.php...7501&highlight= Do you guys just gotta have the older release too? Or can I go on to the next level ... :roll: Link to comment Share on other sites More sharing options...
thiswaynow Posted November 19, 2002 Share Posted November 19, 2002 The contribution clearly includes a great deal of excellent functionality, and I dare say I will make the step up to the latest snapshot for my next osC project. However, I have a site almost ready for population which I have customized substantially (mostly just the look and feel.) I was therefore really hoping to be able to use the quantity discounts on the older snapshot. How much work would be involved in me hacking the contribution you have made to get just the quantity discount element working on the snapshot from the end of October? Link to comment Share on other sites More sharing options...
Ajeh Posted November 19, 2002 Author Share Posted November 19, 2002 The hardest thing is removing the new logic for the current snapshot. The /includes/classes/shoping_cart.php is a combination of the newest code and my re-write of the cart pricing. Pretty much what you need to remove is the cart_id that is created in there. The steps to make the price have been re-written to use price methods: 1 products normal price 2 products special price 3 products discount price You have to be careful on the shopping_cart.php that when looking at the totals that the individual items are calculating right and then that the total is calculating right as these are done in a seperate manner but using the same file. The categories.php is the same file for both before/after november snapshot. The product_info.php file I have made most things an include so they can be moved around. The cart logic in application_top.php is redone for SSL and NONSSL plus the error msgs and quantity min/unit validation. I have all the new changes to the shopping cart actions stored in a seperate file cart_actions.php for reference. You can literally cut and paste that in, or cut out the existing shopping cart actions and do an include on it. Anything to do with the Download Controller or Shipping/Payment modules is totally different. Any of the checkout files, obviously, are totally different. If you email me at [email protected] I will see what it would take for me to pull this code out of a test site I have that was written based on an October snapshot. It would probably be easier for me to clean it up than you as I have a base to work from before I moved it to the new snapshot. Main problem is, I added a bunch of cleanup and features and stuff to it after I updated to the new snapshot that is not in that October version :shock: Would of been too easy had I got the bright idea to add those features then tried to update it, but I did not think of adding them until after the fact and one thing lead to another :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.