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
|