Welcome Guest, Not a member yet? Register   Sign In
flexi cart - A comprehensive shopping cart library for CodeIgniter
#59

[eluser]AlwynW[/eluser]
While I was looking forward to using your library I can't make it work. I installed all the files correctly (demo files running fine as well) and just want to add an item to the cart and that's where it goes wrong.
I'm using this code in my controller:

Code:
$cart_data = array(
                'id' => $item_id,
                'name' => $name,
                'quantity' => $quantity,
                'price' => $price
            );

       $this->flexi_cart->insert_items($cart_data);

And this is the error:

Quote:Message: Undefined index: internal_price
Filename: models/flexi_cart_model.php
Line Number: 771

Which is a variable that according to the documentation is calculated automatically.
This is an exact copy of the code from the demo. What am I doing wrong?


Messages In This Thread
flexi cart - A comprehensive shopping cart library for CodeIgniter - by El Forum - 10-25-2012, 07:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB