• Welcome to KonaKart Community Forum. Please login or sign up.
 

sorting of cart items.

Started by shaydes, July 08, 2008, 08:44:50 pm

Previous topic - Next topic

shaydes

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?

pete

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.

shaydes

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.

pete


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 :

  • Give it a start and end date

  • Enable / Disable it

  • Associate it to a coupon code

  • Activate it only when a minimum quantity of a product is bought (i.e. 3 items)

  • Decide the discount as an amount or percentage (i.e. 33.3%)

  • Choose the product(s) based on the products themselves or all products for a manufacturer or category. Discounts can also be applied to all customers in a particular customer group or customers that haven't placed an order in a while



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.