Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Discount Quantity Controller


Ajeh

Recommended Posts

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

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

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

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

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

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

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...