Cart Library - possible problems |
[eluser]got 2 doodle[/eluser]
@audiopleb Quote:Should you not typecast this $this->uri->segment(3)?Yes that's a good idea because in my case I am expecting an integer. I am in my infancy with the using a shopping cart, but as I mention previously the timing is great because I have two projects that require it. That being said, I am sure there are some checks and balances that need to be in place for the final workable code. @xwero Code: make a ubiquity command for it @rick ellis Quote:Sorry about the incorrect informationHey that's cool, thanks for CodeIgniter More importantly though have you addressed the incorrect cart total? I pointed it out here with a possible solution doodle
[eluser]xwero[/eluser]
ubiquity is a ff add-on that allows you to create commands for sites in an natural language manner. So if a developer create a shoppingbasket command that supports several sites you can write for example : delete item 3 from my basket. This way you have a common interface to handle shopping baskets. But i think it's still to early to have such a natural language command, now it is more something like basket-delete item 3.
[eluser]TWP Marketing[/eluser]
It's a minor point but the code for a typical view file, as shown in the User Guide cart.html (Subversion download), has two uses of the colon ( ![]() Lines 23 and 26 of the example code have this problem. Code: 23 <?php if ($this->cart->has_options($items['rowid']) == TRUE): ?> fyi
[eluser]got 2 doodle[/eluser]
OK this is totally driving me nuts right now. I don't seem to be able to put more than 9 items in the cart. (except sometimes!!!) I don't know if it's the cart or me!! aaahhh! Gotta leave it alone now Anyone else with this problem? doodle
[eluser]got 2 doodle[/eluser]
Problem solved, and now that I know what the problem was I feel like an idiot. RTFM !! The problem was that the cart was being stored in a cookie instead of the database. I thought this was happening but nope! That's why sometimes, I could get eleven items in there and sometimes only eight or nine (different product names etc.) So be warned, the cart appears to be working fine on cookie data alone. :red: Oh the shame! doodle |
Welcome Guest, Not a member yet? Register Sign In |