![]() |
undefined method in CI cart library options - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: undefined method in CI cart library options (/showthread.php?tid=35734) |
undefined method in CI cart library options - El Forum - 11-09-2010 [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() undefined method in CI cart library options - El Forum - 11-09-2010 [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 |