Forums / General Questions / Help Configuring Pricing

Help Configuring Pricing

Locked

Started by terpsnation on 8 Jun 2008, 5:13 PM · Views: 1,523

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
8 Jun 2008, 5:13 PM
#1
terpsnation avatar

terpsnation

New Zenner

Join Date:
Jun 2008
Posts:
34
Plugin Contributions:
0

Help Configuring Pricing

Hi,

I'm not really sure where to post this, so I'm just going to post it here.

I want to set up a pricing system where a customer can select two different numbers and it creates a price based on numbers that I have already configured.

Example:

There are two drop down lists, the customer selects 2 in one drop down and 6 in the other, and the pre-determined price is $50.

But...if the customer selects 2 and 7, the price is $58.

I'm not really sure how to explain this, but I would set up all the prices between different numbers (like set prices for EVERTHING, 1 and 2, 1 and 3, 1 and 4 etc etc) and then when the customer selected these two numbers it would generate that price.

Thanks for any help,

Terpsnation

8 Jun 2008, 6:15 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Help Configuring Pricing

You are being very vague about what you are trying to price -

But what you need to look at is base price or not and attributes and their pricing

Zen-Venom Get Bitten

8 Jun 2008, 6:33 PM
#3
terpsnation avatar

terpsnation

New Zenner

Join Date:
Jun 2008
Posts:
34
Plugin Contributions:
0

Re: Help Configuring Pricing

Well, I'm trying to price a leveling service for World of Warcraft.

If a customer wants me to level from 1 to 60, that price would be different than the price for me to level from 10 to 70 (even though I'm still leveling the same amount of levels.)

Because of this, I need to give customers the option to place an order for me to level their account from one level to another level. I'm figuring the easiest way to do this would be to have two drop-down boxes, one for the initial level, and one for the level they want me to level their account to.

Is that clearer? :)

8 Jun 2008, 7:03 PM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,741
Plugin Contributions:
56

Re: Help Configuring Pricing

You would have to write software to make it work this way. There's nothing built in.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

8 Jun 2008, 7:09 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Help Configuring Pricing

Actually not- I have no knowledge of World of Warcraft...

Will this aways break at a level of 10 as in your 2 examples?
How many levels are there total?

Zen-Venom Get Bitten

8 Jun 2008, 7:14 PM
#6
terpsnation avatar

terpsnation

New Zenner

Join Date:
Jun 2008
Posts:
34
Plugin Contributions:
0

Re: Help Configuring Pricing

There are 70 levels total. It can break at any level. So I'd have two drop down menus of 1-70 (in intervals of 1.)

8 Jun 2008, 7:18 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Help Configuring Pricing

If you can define your pricing mathematically, you can get closer to automatic versus many attributes

Zen-Venom Get Bitten

8 Jun 2008, 8:05 PM
#8
terpsnation avatar

terpsnation

New Zenner

Join Date:
Jun 2008
Posts:
34
Plugin Contributions:
0

Re: Help Configuring Pricing

Okay.

I've decided I want to only do it for the last 10 levels of the game (leveling from 60 to 70.)

In math, this is how it would work out:

60-61: $9
61-62: $10
62-63: $11
63-64: $12
64-65: $13
65-66: $14
66-67: $15
67-68: $16
68-69: $17
69-70: $18

So 60-70 would end up as a total of $135...

Does this help any? lol

9 Jun 2008, 8:51 PM
#9
terpsnation avatar

terpsnation

New Zenner

Join Date:
Jun 2008
Posts:
34
Plugin Contributions:
0

Re: Help Configuring Pricing

Alright...I've had some help from some people over at DevNetwork.com forums...and this is what someone has come up with:

For the HTML portion of the thing:

<select name="currentLevel"> <option value="60">60</option> ... <option value="69">69</option> </select> <select name="newLevel"> <option value="61">61</option> ... <option value="70">70</option> </select

and for the PHP section:

<?php
$array = array();
$array[61] = 9;// amount to move from 60 to 61
$array[62] = 10;// amount to move from 61 to 62
$array[63] = 11;// amount to move from 62 to 63
// ...
$array[70] = 18;// amount to move from 69 to 70
 
$start = $_POST['currentLevel'];// get viewer's current level
$end = $_POST['newLevel'];// get viewer's desired level
$total = 0;// create a total variable
for ($i = $start; $i <= $end; $i++){// run through the array of prices from the current level to the desired level
    $total += $array[i];// add that cost to the total
}
// $total is the total amount
?>

Any idea how I can combine this with ZenCart to accomplish my goal?

10 Jun 2008, 4:15 AM
#11
terpsnation avatar

terpsnation

New Zenner

Join Date:
Jun 2008
Posts:
34
Plugin Contributions:
0

Re: Help Configuring Pricing

But I don't understand how attributes satisfy my needs in this case :( lol

Leveling from 60-65 is not the same price as leveling from 61-66...not is an order asking from 61-65 the same price as 60-65.

With attributes I cannot see how I can work it all out to be what I need. The only way I can see doing this is having 9 drop down menu's, one for when you want to be leveled from 60, another from 61, another from 62...and each drop down menu asking the desired level...but this isn't what I want on my website.

10 Jun 2008, 4:37 AM
#12
terpsnation avatar

terpsnation

New Zenner

Join Date:
Jun 2008
Posts:
34
Plugin Contributions:
0

Re: Help Configuring Pricing

Okay so I couldn't figure out how to edit my post above...so I'm posting again.

Just figured out how to do it using attributes. You probably figured this out a long time ago, but this is how I'm doing it:

W/ the starting level, for 60, i subtract $0, for 61 i subtract $9, for 62 I subtract $19 (and so on) from the initial price. I do this because if they are starting at that level, I don't have to do that leveling and they won't be charged for those levels.

W/ the desired level, I'm just using this: 61 +$9, 62 +$19, 63 +$30, etc. So in the end, the final price will be the starting level cost + the desired level cost. So to level from 61 to 63, the cost would be 30 + (-9) = $21.

However, I have run into a problem. Is there any way I can stop the attribute prices from showing up in the dropdown menu's? I don't want to confuse customer's by having negative dollar signs and positive dollar signs everywhere. Also, if there a way I can insert some sort of tool that calculates the price right on the page after they have selected the starting and desired levels, so they don't have to add the item to their cart to see the total price?

10 Jun 2008, 5:03 AM
#13
terpsnation avatar

terpsnation

New Zenner

Join Date:
Jun 2008
Posts:
34
Plugin Contributions:
0

Re: Help Configuring Pricing

Also, is there any way to set it so if the customer chooses 65 for the starting level (which is -$55) and then 60 for the desired level...which comes to a grand total of -$55. And since I really don't want people placing orders of me owing them money...this doesn't really help business :)

10 Jun 2008, 3:47 PM
#14
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Help Configuring Pricing

Again I do not know squat about World of Warcraft...

But I think that from what you have explained that check boxes will provide the simplest solution -

Item entered with no price and "priced by attributes" selected

One Option Name(check box) with 10 option values in sort order

See a sample HERE

Hope that this is inline with what you are seeking

Zen-Venom Get Bitten

10 Jun 2008, 4:40 PM
#15
terpsnation avatar

terpsnation

New Zenner

Join Date:
Jun 2008
Posts:
34
Plugin Contributions:
0

Re: Help Configuring Pricing

Hmm yeah. That looks like it would work out well.

Over the night I have worked out everything and it seems to be working with the drop down menu's. But on the drop down menu it still looks like this:

For the starting level:

60 ($0)
61 (-$9)
62 (-$19)

and for the desired level:

61 (+$9)
62 (+$19)

And so on. Is there any way I can configure it to not show these prices next to the attributes?