Hi Marc, as a workaround, we usually use this trick : - create a class "discount_product" with a price datatype and an integer/float/text field named "discount" - create some contents based on this class. Set the price to 0, and the discount datatype value to what you need (i.e. a negative value but this could be a positive value to manage "shipping price" - create a workflow event triggered on the *confirm order* function. This event does simple thing : when a basket "starts" the payment process, an order is created ; what we need is to add a negative price to the total and this can be done by adding an (or more) ezorderitem to our order... As I remember, negative values for the "price" attribute are allowed. Simply set this value with the "discount" value you got from the "discount_product" you add to your basket ;)
Hope this helps. -- Arnaud LAFON SQLI Group, Paris 2009/5/15 Marc Krebs <[email protected]> > Hi guys, > > i need a possibility to create products with negative prices or add an > custom product to the shop basket to avoid the possibility to add custom > discounts. > > Does anyone knows a solution? > - > Mit freundlichen Grüßen / Best regards / Med vennlig hilsen > > Marc Krebs > Consultant Developer > eZ systems Germany > > tel +49 (0) 231-9742-7754 > fax +49 (0) 231-9742-7751 > > > icq: #477330507 | jabber: [email protected] | skype: marc_krebs > [email protected] | eZ systems | www.ez.no > ********************************************************************** > eZ systems GmbH > Joseph-von-Frauenhofer-Str. 13 > 44227 Dortmund > Germany/Deutschland > > Geschäftsführer: Ralf Rutke > Handelregister: AG Dortmund, HRB 18800 > > E-Mail: [email protected] > Web: www.ez.no > Tel: +49 (0) 231-9742-7750 > ****************************************** > > > -- > Sdk-public mailing list > [email protected] > http://lists.ez.no/mailman/listinfo/sdk-public >
-- Sdk-public mailing list [email protected] http://lists.ez.no/mailman/listinfo/sdk-public
