Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can pricing vary depending on quantity ordered?


SteveS

Recommended Posts

Quick question folks, I'm looking into the software but need to find out if this is a feature before I dive in....

 

Can this software "out of the box" vary the pricing of an item depending on the quantity ordered?

 

Example: 1-10 "Yoda Pez Desp." $.99 each, 11-20 "Yoda Pez Desp" $.75 each and so on.

 

The store front I need to setup is rather basic besides this requirement, I need to know if this is easy enough to do because I have no programming / PHP experience.

 

Thanks!

Steve

Link to comment
Share on other sites

Thanks Jim, that looks like it will do the trick. I'm going to set up the software with my ISP and start messing around. I wasn't able to find Price Break in the contribution area, can you point me in the right direction?

 

Thanks again,

Steve

Link to comment
Share on other sites

Probably because I didn't give you the correct name for it; try this one. I don't know how easy it will be to install since I modified mine a bit to fit into my already modified store. Test your setup with a plain MS2 installation before you start modifying, and make backups before you change anything, and you should do just fine.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Hi,

 

I wondered if you may be able to help with a

problem i'm having installing this contribution.

 

I am trying to install it on my server with an

unmodified OSC 2.2-MS2 installed. I have modified

my SQL database as per the instructions and am trying

to use the patch command through putty.

 

When I run the patch command as detailed in the instructions

I get the following error message:

 

patch: **** strip count l is not a number

 

Any ideas as to what could be causing this problem and how

to fix it??

 

I have emailed the contrib's author but have had no response

as yet.

 

Many thanks in advance for any assistance you can offer.

 

Cheers

 

 

Steve

Link to comment
Share on other sites

Sorry, I didn't do it that way. I applied the changes by hand, since I needed to modify some of them. My copy was already modified when I applied these changes.

 

If you are going to make more than a few simple changes I would suggest that you develop on an off-line system and transfer to the server when you are certain that everything works. Saves a lot of time and hassle.

 

If you still want to use Patch, I would break the change file down into sections and run each one separately. That would at least give you an idea of where it is choking. You might have to edit one or two files by hand if you can't figure out what is wrong with the file.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

I need something similar, but it doesn't seem to be covered by any of the contributions.

 

I want to offer a discount if the customer buys two or more from any of a certain set of products - "mix and match", this is often called. All of the contributions I see work on a per-item basis.

 

I'm willing to code this myself, but I can't figure out where to hook this. As I envision it, I'd run through the order, counting the number of items in certain classes, and then add a separate line in the order total for the discount (which is fixed per item class). But where's a good place to do this and how do I make it appear? Thanks.

 

Steve

Link to comment
Share on other sites

I think that you would have to do this as an Order Total module. Take a look at the Subtotal module and go from there. You will need to figure out how you set the class a product belongs to (an extra field in the Products table?), then retrieve that information for each product and total the number of products in each class. You can then calculate the discount on whatever basis you want (fixed amount, percentage of products in the class, etc.)

 

I think that this is something that a lot of us could use. Please consider making it available as a Contribution when you get it working.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Yes, it did look as if an order total module would be the way to go, but I don't have a good feel yet for how those get hooked in. I haven't found any documentation on such things (what there is on the Wiki says it's obsolete - big help!)

 

Well, I'll start off simple and see where it goes from there...

 

Steve

Link to comment
Share on other sites

i also am trying to install this patch, i am having nothing but probs with it

i have tried to install on a test store, one thats set up for breaking purposes

 

when i run the patcch it just pukes "cant find file on line 4", i tried putting the file in and get 5 success, 1 failed

 

i wouldnt mind configuring manually but im not a php guru and dont quite understand how the line #'s work

 

@@ -215,6 +215,15 @@

 

any help would be appreciated

 

ps i am using 2.2 ms1

 

thanks

Link to comment
Share on other sites

@@ -215,6 +215,15 @@
Line 215 - delete following 6 lines, line 215 - add 15 lines.

 

That said, it's best to just ignore the line numbers except as a rough guide. Look for the lines in the patch file that are shown just after the above. They should start near Line 215, but don't worry if the numbers are off a bit. Just remove (or comment out) the lines that have a minus in front in the patch file, then add the lines that have a plus in front. Copy and paste works fine, but remember to remove the plus signs or you'll get some really wierd errors.

 

If your version is different from the one that the patch was made for, and it sounds like that may be the case, then the line numbers may be off by quite a lot. The lines may be in a completely different file in a few cases, since some files have been combined. If you can't find the lines in whatever.php, look for whatever_success.php. If you get stuck, post a question here and we'll try to help.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...