Skip to main content
Coming Soon…

Model

The model used is Shopper\Core\Models\Price.
NameTypeRequiredNotes
idautoincauto
amountintnoNullable
compare_amountintnoNullable
cost_amountintnoNullable
priceablemorphsyesRelation generate priceable_id and priceable_type columns
currency_idintyesint (Currency object via the currency relation)

Components

By default, pricing Livewire components are not published. To customize components, you must publish them.
php artisan shopper:component:publish product
This command will publish all Livewire components used for product and price management (from pages to form components). Once you’ve published the component, you can find it in the product.php locate in the config/shopper/components folder.
use Shopper\Livewire;

return [
  'components' => [
        // ...
        'products.pricing' => Components\Products\Pricing::class,
        'slide-overs.manage-pricing' => Livewire\SlideOvers\ManagePricing::class,
        // ...
  ],
];