From a8a399077136af19acb4edda4fdae2a8171f125e Mon Sep 17 00:00:00 2001 From: Bob Wezelman Date: Tue, 2 Apr 2024 11:25:48 +0200 Subject: [PATCH] Fix adding configurable product to cart (#461) --- resources/js/components/Product/AddToCart.vue | 2 +- src/Facades/Rapidez.php | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/js/components/Product/AddToCart.vue b/resources/js/components/Product/AddToCart.vue index 9199b629b..a15906cae 100644 --- a/resources/js/components/Product/AddToCart.vue +++ b/resources/js/components/Product/AddToCart.vue @@ -89,7 +89,7 @@ export default { config.queries.cart + ` } user_errors { code message } } }`, { - sku: this.product.sku, + sku: this.simpleProduct.sku, cartId: mask.value, quantity: this.qty, selected_options: this.selectedOptions, diff --git a/src/Facades/Rapidez.php b/src/Facades/Rapidez.php index 1576a2dff..274472877 100644 --- a/src/Facades/Rapidez.php +++ b/src/Facades/Rapidez.php @@ -5,15 +5,15 @@ use Illuminate\Support\Facades\Facade; /** - * @method static self addFallbackRoute($action, $position = 9999) - * @method static self removeFallbackRoute($action) + * @method static self addFallbackRoute($action, $position = 9999) + * @method static self removeFallbackRoute($action) * @method static Collection getAllFallbackRoutes() - * @method static ?string config(string $path, $default = null, bool $sensitive = false) - * @method static ?string content($content) - * @method static object fancyMagentoSyntaxDecoder(string $encodedString) - * @method static array getStores($storeId = null) - * @method static array getStore($storeId) - * @method static void setStore($store) + * @method static ?string config(string $path, $default = null, bool $sensitive = false) + * @method static ?string content($content) + * @method static object fancyMagentoSyntaxDecoder(string $encodedString) + * @method static array getStores($storeId = null) + * @method static array getStore($storeId) + * @method static void setStore($store) * * @see \Rapidez\Core\Rapidez */