Welcome Guest, Not a member yet? Register   Sign In
Cart Library - possible problems
#11

[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
I'd never heard of this :coolgrin: more research sigh! Looks cool though.

@rick ellis
Quote:Sorry about the incorrect information
Hey 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
#12

[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.
#13

[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 (Smile which causes the php code to trigger an error notice.

Lines 23 and 26 of the example code have this problem.
Code:
23 <?php if ($this->cart->has_options($items['rowid']) == TRUE): ?>

26 <?php foreach ($this->cart->product_options($items['rowid']) as $option_name => $option_value): ?>

fyi
#14

[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
#15

[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




Theme © iAndrew 2016 - Forum software by © MyBB