conedevelopment / bazar

Bazar is an e-commerce package for Laravel applications.
https://root.conedevelopment.com
MIT License
422 stars 56 forks source link

Create product missing price section #164

Closed richstandbrook closed 3 years ago

richstandbrook commented 3 years ago

Description:

As per #163 the price is now shown and accessible via Bazar\Models\Product::first()->price however I'm no longer able to edit it the Admin UI no longer shows the price configuration section and give this javascript error.

TypeError: undefined is not an object (evaluating 'i.data.prices[n].default') —

Steps To Reproduce:

Install Baza

composer require conedevelopment/bazar
artisan bazar:install
artisan bazar:publish

Visit http://domain.test/bazar/products/create price section is missing and console shows error as above.

iamgergo commented 3 years ago

I don't experience this with a fresh installation of Bazar.

For me it works as is should and the prices block is shown as well.

Maybe with this code:

php artisan migrate:fresh

php artisan bazar:install --seed

php artisan bazar:publish --force
richstandbrook commented 3 years ago

Cool, I'm not seeing this anymore 👍