• Welcome to KonaKart Community Forum. Please login or sign up.
 
December 22, 2024, 12:41:37 pm

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - JimmyBlue

1
Programming of KonaKart / Re: Extend Product Dialogue
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.
2
Programming of KonaKart / Extend Product Dialogue
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

3
You're absolutely right.  :)

That helped me a lot. You saved my day with your great help. I appreciate it.

Regards Jimmy
4
There is an API function called addToBasketWithOptions(), which is invoked when a customer adds a product to the basket.

Inside the function I calculate the new price of the basket dependent on the count of already existing products inside the cart
with the same productid.

But on the second invocation of the function addToBasketWithOptions() the function setFinalPriceExTax() has no consequence.
5
getBasketItemsPerCustomer() is a quite useful function.

But do you know why it is only once possible to set the FinalPriceExTax?
Only the first invocation of the function addtobasketwithoptions is able to adapt
this variable by using the function setFinalPriceExTax(). The second invocation doesn't
have an impact.
But I want to change the tax on every invocation.

What do you suggest?
6
That's right,

but I don't know whats currently in the cart. A little example:

A customer inserted a product A into the cart.
After a while he says to hisself "I like to add an additional product A to the cart" (Not inside the cart but
from a product dialog).

If the function which inserts the additional product A does something like basket.setFinalPriceExTax
the already inserted product A isn't taken into consideration. And I'm not able to get information from
the actual cart from those functions. That's my problem.

Regards Jimmy
7
Quote from: ryan on December 09, 2011, 10:35:22 am
Take a look at http://www.konakart.com/docs/usingBasketPrice.html


Yeah I also tried to follow those instructions. The problem is, that a customer probably already has that kind of product in his basket.
Then if you add an additional one, there are two products inside the basket but at the price of one. (Cause

b.setFinalPriceExTax(new BigDecimal("22.22"));

always refers to the whole basket).

I already tried this proceeding...

Regards Jimmy
8
Hi ryan,

you're right. That should not be the solution. Well then I have to adapt all the functions.

But there is another issue:
When the customer wants to add a product to the cart (Basket) how can I use the external
price. Konakart always fetches the prices from the shop. When I adapt the function AddToBasket(WithOptions)
so that the product price is set dynamically, the basketprice doesn't adopt this price and calculate the correct
basketprice.

And using the method setFinalInc/ExTax does not fit the case when the customer already has the product inside
his cart. Otherwise he would get the price for only one product.

What do you suggest me to do ?

Regards Jimmy
9
Programming of KonaKart / Dynamic Prices using konakart
December 09, 2011, 09:41:55 am
Hi Folks,

I'm currently working on a web shop project. The shop has the following requirement:
The prices are dynamic. The price should be fetched through webservices.

Is there an opportunity to change only one distinct method which is invoked by all the other relevant functions to get the price.
Currently my solution works on different API-functions that all have to be adapted.

There has to be adapted GetProducts(), GetAllProducts(), AddToBasket(), UpdateBasket(), GetBestSellers and
the corresponding WithOptions functions.

Regards Jimmy