shop discount rule on number of items?

Author Message

Peter Schnuerer

Monday 15 August 2005 1:27:49 am

Hi!

I got a shop with products thatn have a discoutn if you buy more. For example

1 peace: 100 EUR
10 peaces: 90 EUR
50 peaces: 85 EUR

Any ideas?
Thanx!
Peter

Peter Schnuerer

Monday 22 August 2005 5:01:27 am

Cant't anybody help?
I don't think I'm the only one, having this problem :-(

Felix Laate

Tuesday 06 September 2005 4:05:38 pm

Hi all!

Is there anyone out there with an answer to this one?

Pppplease!

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Xavier Dutoit

Wednesday 07 September 2005 2:09:01 am

Hi,

You can't get that "out of the box". You should add an extra field on your product class (a matrix is probably the best one).

You could create a new event to modify the price when you add a product to a basket. However, you are going to have to modify the change qty code to recalculate the unit price (based on the quantity) as well as the new total price.

Shouldn't be too complicated, but I'm afraid you have to put your hands into it.

Have you thought about how you're going to display the basket and what is going to happend when a user change a quantity ? I'd say that's going to be rather surprising to see the unit price changing while you change the quantity...

X+

http://www.sydesy.com

Felix Laate

Wednesday 07 September 2005 3:29:41 am

Hi Xavier!

Thank you for your advice! I'll give it a try immediatly!

I thought about the problem with the altered quantity when in basket-mode.

My plan is to try out your matrix-suggestion, and incorporate some javascript-magic in the basket-template to choose the right price-vector according to the quantity choosen.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Aurore Hublé

Tuesday 21 November 2006 6:57:03 am

Hi,
Did you manage to do that ?
I have the same problem and don't find solution. With matrix, I calcul the well price but how to change price in the basket and then in the order ?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:24:17
Script start
Timing: Jan 18 2025 19:24:17
Module start 'layout'
Timing: Jan 18 2025 19:24:17
Module start 'content'
Timing: Jan 18 2025 19:24:17
Module end 'content'
Timing: Jan 18 2025 19:24:17
Script end

Main resources:

Total runtime0.0144 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.0156152.6250
Module start 'layout' 0.00470.0027 740.640639.4453
Module start 'content' 0.00750.0049 780.085993.3359
Module end 'content' 0.01240.0019 873.421938.3047
Script end 0.0143  911.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002618.3134140.0002
Check MTime0.00128.5723140.0001
Mysql Total
Database connection0.00074.916910.0007
Mysqli_queries0.002215.616230.0007
Looping result0.00000.082910.0000
Template Total0.001611.010.0016
Template load0.00085.812110.0008
Template processing0.00075.144110.0007
Override
Cache load0.00064.116210.0006
General
dbfile0.00031.850180.0000
String conversion0.00000.043140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs