-
-
+
+ {{!--
+ --}}
+
+ {{#if this.category}}
+
+
+
+ {{/if}}
diff --git a/addon/templates/products/index/category/new.hbs b/addon/templates/products/index/category/new.hbs
index 6fa5af3..64bbee2 100644
--- a/addon/templates/products/index/category/new.hbs
+++ b/addon/templates/products/index/category/new.hbs
@@ -1,4 +1,4 @@
-
+
diff --git a/assets/sounds/storefront_order_alert.mp3 b/assets/sounds/storefront_order_alert.mp3
new file mode 100755
index 0000000..30c2a32
Binary files /dev/null and b/assets/sounds/storefront_order_alert.mp3 differ
diff --git a/package.json b/package.json
index 44280fa..2c692e9 100644
--- a/package.json
+++ b/package.json
@@ -65,6 +65,7 @@
"@glimmer/tracking": "^1.1.2",
"broccoli-asset-rev": "^3.0.0",
"broccoli-funnel": "^3.0.8",
+ "broccoli-merge-trees": "^4.2.0",
"concurrently": "^8.2.2",
"ember-auto-import": "^2.6.3",
"ember-classic-decorator": "^3.0.0",
diff --git a/server/src/Http/Resources/Cart.php b/server/src/Http/Resources/Cart.php
index 1a8d6c6..ed3f25c 100644
--- a/server/src/Http/Resources/Cart.php
+++ b/server/src/Http/Resources/Cart.php
@@ -3,6 +3,7 @@
namespace Fleetbase\Storefront\Http\Resources;
use Fleetbase\Http\Resources\FleetbaseResource;
+use Fleetbase\Support\Http;
class Cart extends FleetbaseResource
{
@@ -15,7 +16,14 @@ class Cart extends FleetbaseResource
public function toArray($request)
{
return [
- 'id' => $this->public_id,
+ 'id' => $this->when(Http::isInternalRequest(), $this->id,$this->public_id),
+ 'uuid' => $this->when(Http::isInternalRequest(), $this->uuid),
+ 'public_id' => $this->when(Http::isInternalRequest(), $this->public_id),
+ 'company_uuid' => $this->when(Http::isInternalRequest(), $this->company_uuid),
+ 'user_uuid' => $this->when(Http::isInternalRequest(), $this->user_uuid),
+ 'checkout_uuid' => $this->when(Http::isInternalRequest(), $this->checkout_uuid),
+ 'checkout_uuid' => $this->when(Http::isInternalRequest(), $this->checkout_uuid),
+ 'customer_id' => $this->customer_id,
'currency' => $this->currency,
'subtotal' => $this->subtotal,
'total_items' => $this->total_items,
diff --git a/server/src/Http/Resources/Network.php b/server/src/Http/Resources/Network.php
index 957a122..40df270 100644
--- a/server/src/Http/Resources/Network.php
+++ b/server/src/Http/Resources/Network.php
@@ -20,6 +20,10 @@ public function toArray($request)
'uuid' => $this->when(Http::isInternalRequest(), $this->uuid),
'public_id' => $this->when(Http::isInternalRequest(), $this->public_id),
'key' => $this->when(Http::isInternalRequest(), $this->key),
+ 'company_uuid' => $this->when(Http::isInternalRequest(), $this->company_uuid),
+ 'created_by_uuid' => $this->when(Http::isInternalRequest(), $this->created_by_uuid),
+ 'logo_uuid' => $this->when(Http::isInternalRequest(), $this->logo_uuid),
+ 'backdrop_uuid' => $this->when(Http::isInternalRequest(), $this->backdrop_uuid),
'name' => $this->name,
'description' => $this->description,
'translations' => $this->translations ?? [],
diff --git a/server/src/Http/Resources/Product.php b/server/src/Http/Resources/Product.php
index f57d4f0..93f243c 100644
--- a/server/src/Http/Resources/Product.php
+++ b/server/src/Http/Resources/Product.php
@@ -21,6 +21,11 @@ public function toArray($request)
'id' => $this->when(Http::isInternalRequest(), $this->id, $this->public_id),
'uuid' => $this->when(Http::isInternalRequest(), $this->uuid),
'public_id' => $this->when(Http::isInternalRequest(), $this->public_id),
+ 'company_uuid' => $this->when(Http::isInternalRequest(), $this->company_uuid),
+ 'store_uuid' => $this->when(Http::isInternalRequest(), $this->store_uuid),
+ 'category_uuid' => $this->when(Http::isInternalRequest(), $this->category_uuid),
+ 'created_by_uuid' => $this->when(Http::isInternalRequest(), $this->created_by_uuid),
+ 'primary_image_uuid' => $this->when(Http::isInternalRequest(), $this->primary_image_uuid),
'name' => $this->name,
'description' => $this->description,
'sku' => $this->sku,
diff --git a/server/src/Http/Resources/Store.php b/server/src/Http/Resources/Store.php
index 097ac7d..a1b2dfb 100644
--- a/server/src/Http/Resources/Store.php
+++ b/server/src/Http/Resources/Store.php
@@ -20,6 +20,10 @@ public function toArray($request)
'uuid' => $this->when(Http::isInternalRequest(), $this->uuid),
'public_id' => $this->when(Http::isInternalRequest(), $this->public_id),
'key' => $this->when(Http::isInternalRequest(), $this->key),
+ 'company_uuid' => $this->when(Http::isInternalRequest(), $this->company_uuid),
+ 'created_by_uuid' => $this->when(Http::isInternalRequest(), $this->created_by_uuid),
+ 'logo_uuid' => $this->when(Http::isInternalRequest(), $this->logo_uuid),
+ 'backdrop_uuid' => $this->when(Http::isInternalRequest(), $this->backdrop_uuid),
'name' => $this->name,
'description' => $this->description,
'translations' => $this->translations ?? [],