Welcome Guest, Not a member yet? Register   Sign In
undefined method in CI cart library options
#1

[eluser]umefarooq[/eluser]
Hi i creating a simple cart using CI library and try to access some options of item using as per user guide

Code:
$this->cart->options(rowid);

this function is missing in CI cart library i have check in CI 1.7.2 and also CI 2 in both codes this function is missing

Call to undefined method CI_Cart::options()
#2

[eluser]InsiteFX[/eluser]
Returns an array of options for a particular product.
This function is designed to be used in a loop with $this->cart->contents(),
since you must pass the rowid to this function,
as shown in the Displaying the Cart example above.

I think it is named wrong!

Code:
$this->cart->product_options(rowid);

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB