KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: shaydes on July 08, 2008, 08:44:50 pm

Title: sorting of cart items.
Post by: shaydes on July 08, 2008, 08:44:50 pm
Hi,

I am using API's to work with the cart. I am trying to implement promotions, such as buy 2 get third free.

When I add items to the cart, they are displayed based on their product id and not in the order in which they were added to the cart. How can maintain the oder in which they were added to the cart?
Title: Re: sorting of cart items.
Post by: pete on July 08, 2008, 08:57:08 pm
Hi,

Quote
When I add items to the cart, they are displayed based on their product id and not in the order in which they were added to the cart. How can maintain the oder in which they were added to the cart?

You could use a custom field of the Basket object to do the ordering.

Quote
I am using API's to work with the cart. I am trying to implement promotions, such as buy 2 get third free.

Your 3 for 2 promotion module should look quite similar to the ProductDiscount OrderTotal module that we supply in the download package.
Title: Re: sorting of cart items.
Post by: shaydes on July 08, 2008, 09:52:22 pm
Thanks for your reply.

Quote
When I add items to the cart, they are displayed based on their product id and not in the order in which they were added to the cart. How can maintain the oder in which they were added to the cart?

Quote from: pete on July 08, 2008, 08:57:08 pm
You could use a custom field of the Basket object to do the ordering.


The version I am using, 2.2.0.6, doesn't seem to have custom field for the BasketIf. Right now I don't have a choice to move to newer version.

Quote
I am using API's to work with the cart. I am trying to implement promotions, such as buy 2 get third free.

Quote from: pete on July 08, 2008, 08:57:08 pm
Your 3 for 2 promotion module should look quite similar to the ProductDiscount OrderTotal module that we supply in the download package.


I am using just the cart and not the other features. The 3 for 2 promotion has an effect on the price, because each item has a different price.
Title: Re: sorting of cart items.
Post by: pete on July 09, 2008, 06:39:19 am

QuoteI am using just the cart and not the other features. The 3 for 2 promotion has an effect on the price, because each item has a different price.


The advantage of a promotion module is that it can be configured from the admin app. For example with our ProductDiscount module you can :


In the latest version of KonaKart you see the discount when you add a product to the cart and don't have to wait until checkout.