Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jun 2008
    Posts
    37
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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

  3. #3
    Join Date
    Jun 2008
    Posts
    37
    Plugin Contributions
    0

    Default Re: Help Configuring Pricing

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

    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? :)

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,514
    Plugin Contributions
    126

    Default 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.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Help Configuring Pricing

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

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

  6. #6
    Join Date
    Jun 2008
    Posts
    37
    Plugin Contributions
    0

    Default 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.)

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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. #8
    Join Date
    Jun 2008
    Posts
    37
    Plugin Contributions
    0

    Default 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. #9
    Join Date
    Jun 2008
    Posts
    37
    Plugin Contributions
    0

    Default 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 Code:
    <?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. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Help Configuring Pricing

    Do not make this harder than it has to be

    https://www.zen-cart.com/tutorials/index.php?article=57
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Help. installed Dual Pricing - Wholesale Pricing
    By lcarlo1507 in forum Basic Configuration
    Replies: 3
    Last Post: 20 Nov 2010, 11:06 PM
  2. Help with configuring shipping/payment
    By meeven in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 22 Sep 2008, 02:48 PM
  3. Help configuring big spender
    By andes in forum General Questions
    Replies: 1
    Last Post: 14 Dec 2007, 03:59 PM
  4. Need help configuring phpBB
    By defkiss in forum General Questions
    Replies: 9
    Last Post: 5 Aug 2007, 05:14 PM
  5. Configuring Shipping Pls Help
    By taydu in forum General Questions
    Replies: 2
    Last Post: 18 Jun 2007, 10:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg