Add WooCommerce product and category management.
Deploy Ladill Woo Manager / deploy (push) Successful in 55s
Deploy Ladill Woo Manager / deploy (push) Successful in 55s
Sync catalog via plugin webhooks and REST proxy, with list/create/edit UI and updated logo from monolith assets. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -56,6 +56,16 @@ class WooStore extends Model
|
||||
return $this->hasMany(WooOrder::class);
|
||||
}
|
||||
|
||||
public function products(): HasMany
|
||||
{
|
||||
return $this->hasMany(WooProduct::class);
|
||||
}
|
||||
|
||||
public function categories(): HasMany
|
||||
{
|
||||
return $this->hasMany(WooCategory::class);
|
||||
}
|
||||
|
||||
public function webhookUrl(): string
|
||||
{
|
||||
return rtrim((string) config('app.url'), '/').'/webhooks/woocommerce/'.$this->public_id;
|
||||
|
||||
Reference in New Issue
Block a user