KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: JimmyBlue on December 15, 2011, 03:46:39 pm

Title: Extend Product Dialogue
Post by: JimmyBlue on December 15, 2011, 03:46:39 pm
Hi there,

I'd like to extend the product dialogue for products belonging to a specific category.
I'm going to add a new textfield. If a user is changing its value the product should be
refreshed in the backend. Also the value of the textfield should be transfered to the
backend to get the appropriate product information.

What would you suggest me to do?

Regards Jimmy

Title: Re: Extend Product Dialogue
Post by: kate on December 15, 2011, 04:02:33 pm
It sounds like you need to look at custom attributes and custom attribute templates.  These are powerful in that they allow you to define an unlimited number of custom attributes for a product.   Check out these features in the User Guide.

Alternatively you might just want to use a regular custom field but only refer to it for a certain category?
Title: Re: Extend Product Dialogue
Post by: JimmyBlue on December 16, 2011, 08:23:20 am
The main problem of the issue is, that I want to get a dynamic price when a user enteres a new value into the textfield.
This means there has to be a price calculation in the backend. (There can be infinite possible results of this calculation).

For this purpose I want the frontend to request a new getProduct()-call in the backend on such event. The calculation
itself isn't the problem but how can I trigger it?
There also should be a possibiliy to add the parameter inserted in the textfield to the calculation invocation.
Title: Re: Extend Product Dialogue
Post by: ryan on December 16, 2011, 08:38:21 am
Take a look at the custom engine. It allows you to add code before and after any API call.