-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column not found 'items.carts_id' #41
Comments
|
In the config, I change the name of table. By default, the name is "cart", but I change by "carts" |
Did you changed the name of column in table items as well?
|
In the table items, the name of column is cart_id. |
Your query for some reason is looking for carts_id instead of cart_id.
|
Hi,
I have this problem when I use {!! $cart->count !!}. Why?
This is the error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'items.carts_id' in 'on clause' (SQL: select sum(items.quantity) as itemCount, sum(items.price * items.quantity) as totalPrice, sum(items.tax * items.quantity) as totalTax, sum(items.shipping * items.quantity) as totalShipping from
carts
inner joinitems
onitems
.carts_id
=carts
.id
wherecarts
.id
= 8 limit 1) (View: /var/www/theshop/modules/Shopping/Resources/views/cart/cart.blade.php)Thanks!
The text was updated successfully, but these errors were encountered: