Skip to content
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

Trying to access the 'id' property on a null object #76

Open
nafil161 opened this issue Oct 12, 2023 · 3 comments
Open

Trying to access the 'id' property on a null object #76

nafil161 opened this issue Oct 12, 2023 · 3 comments

Comments

@nafil161
Copy link

When attempting to add an item to the cart in the frontend, I encounter an error message that says, "Trying to access the 'id' property on a null object."

image

@84115
Copy link

84115 commented Nov 1, 2023

@nafil161 Have you created Tax Zones for your store?
That appears to be were this is failing after adding a product to the cart.
You can set the up Tax Zones at {{APP_URL}}/hub/settings/taxes/tax-zones

@eugenefvdm
Copy link

eugenefvdm commented Feb 11, 2024

As a starting point you might want to have a look here:
https://github.com/lunarphp/livewire-starter-kit/blob/main/database/seeders/TaxSeeder.php

You can trigger that seeder with:

php artisan db:seed --class=TaxSeeder

@nafil161
Copy link
Author

nafil161 commented Feb 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants