Support » Plugin: WP eCommerce » Show one item in cart but increase price

  • Resolved Morphim


    Hi there.
    I need to have several products that don’t increase the ‘items in basket’ but do increase the price.

    For example, I want to offer meals per person, so the quantity field is actually for number or people rather than actual quantities of the product.

    So, product 1 might be for a starter course at $5 per head.
    If 100 people want this, I need the basket to say ‘1 item – $500’ rather than 100 items each at $5.

    Is there a way to achieve this in the code?
    Anyone with php knowledge who can point me in the right direction would be greatly appreciated.
    Thanks in advance : )

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,
    I believe the qty field is intrinsic to the function of the whole plugin, and can’t be used in the manner you’re proposing. I think that Qty can only = # of items purchased.

    That being said, there’s a couple of ways to achieve what you want. You could use variations to offer a meal count range – for example,
    offer variations for 1-10 @$5 per head, yielding prices of $5 – $50. Further variations could be at ascending intervals of 5, 10, whatever makes sense.

    Alternatively, you’d have a fair amount of php coding to do, I think. You could use a 2nd field on the screen, store it let’s say in the product note field (that way it would show, I believe, on the receipt), and do behind-the-scenes php to modify the price on the fly. Much more difficult.


    Hey, Vark

    Thanks very much for taking the time to reply. I appreciate it.
    My client wants just the 1 item with the updated price depending on the number of people.
    I’ve suggested variation dropdowns but the numbers could be from 4 to 500 so it would be a huge list and not ideal.

    I’m no php’er so not 100% sure what your alternative actually means but it hopefully shows that it is fundamentally possible.

    Thanks again for your reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show one item in cart but increase price’ is closed to new replies.