Product with different prices to add to basket

Author Message

Lo' F.

Wednesday 13 April 2011 1:17:29 am

Hi there,

Here's the scenario.

I need to create a webshop with some special requirements:

- Each product needs to have different prices:

* 3 different prices depending on the logged user belonging to a specific group of clients

* and 3 different prices for the single item and for the boxes of 6 and 12 of those items

The thing is that my client doesn't want to work on percentages but feel free to manually enter each of the prices with no rules (in other words, it has to be totally up to him).

So I made up a product class with 9 different attributes for the price. And in the template override for that class showed each price for the single item and for the boxes of 6 and 12 items, depending on the logged user. And each price has its own addToBasket button with its own form.

To the basket page, which currently shows only the first entered object's price of the price attribute, I need to pass the product name and the submitted choice (single/box of 6/box of 12) with its specific price.

If I submit those attributes values through hidden input fields in each form I should need to customize the action script to pass those values to the basket.tpl..

Where can I find the script file that takes care of this operation?

Besides, do you think this is the best way I can accomplish my tasks?

loredanaebook.it

Sandra Parente

Wednesday 13 April 2011 1:34:39 am

Didn't you considered the possibility of using different price lists? I mean, managing price lists is simpler than managing nine prices for a single product. Every user/user group shall be associated to a specific price list. Of course you'll have to customize the price datatype for getting the price from different lists when the customer is logged in.

Sandra Parente
www.netbliss.it

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