diff --git a/composer.json b/composer.json index a27aed3..7d30f24 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "require": { "php": "^8.0|^8.1|^8.2", "blade-ui-kit/blade-heroicons": "^2.0", - "rapidez/core": "^1.0" + "rapidez/core": "^2.0" }, "autoload": { "psr-4": { diff --git a/resources/views/cart/coupon.blade.php b/resources/views/cart/coupon.blade.php index 355a85b..8b01459 100644 --- a/resources/views/cart/coupon.blade.php +++ b/resources/views/cart/coupon.blade.php @@ -1,32 +1,64 @@
- -
-
- + + + - + @lang('Apply') - -
-
- - @lang('Discount'): @{{ cart.discount_name }} -
-
- @{{ submitError }} -
-
-
+ + + + +
+ + + @lang('Apply') + +
+ + +
@lang('Coupon code') diff --git a/resources/views/cart/overview.blade.php b/resources/views/cart/overview.blade.php index 9c09e45..b11c21d 100644 --- a/resources/views/cart/overview.blade.php +++ b/resources/views/cart/overview.blade.php @@ -5,21 +5,26 @@ @section('robots', 'NOINDEX,NOFOLLOW') @section('content') - -
- - @include('rapidez-ct::cart.cart') - - @include('rapidez-ct::cart.partials.sidebar.sidebar') - - - @include('rapidez-ct::cart.partials.crosssells') -
-
-

@lang("You don't have anything in your cart.")

- - @lang('Return to home') - -
-
+ + +
+ + @include('rapidez-ct::cart.cart') + + @include('rapidez-ct::cart.partials.sidebar.sidebar') + + + @include('rapidez-ct::cart.partials.crosssells') +
+
+

@lang("You don't have anything in your cart.")

+ + @lang('Return to home') + +
@endsection diff --git a/resources/views/cart/partials/product/description.blade.php b/resources/views/cart/partials/product/description.blade.php index 02c9476..01d865e 100644 --- a/resources/views/cart/partials/product/description.blade.php +++ b/resources/views/cart/partials/product/description.blade.php @@ -1,14 +1,19 @@
- -
@{{ item.name }}
-
- @{{ option }}: @{{ optionValue }} + +
@{{ item.product.name }}
+
+ @{{ option.option_label }}: @{{ option.value_label }}
-
- @{{ option.label }}: @{{ option.value.title || option.value }} +
+ @{{ option.label }}: @{{ option.values[0].label || option.values[0].value }} +
+
+
@include('rapidez-ct::cart.partials.product.remove-button')
- \ No newline at end of file + diff --git a/resources/views/cart/partials/product/image.blade.php b/resources/views/cart/partials/product/image.blade.php index 2cb70b7..671fece 100644 --- a/resources/views/cart/partials/product/image.blade.php +++ b/resources/views/cart/partials/product/image.blade.php @@ -1,4 +1,5 @@ - + + diff --git a/resources/views/cart/partials/product/price.blade.php b/resources/views/cart/partials/product/price.blade.php index 699520c..1245bc5 100644 --- a/resources/views/cart/partials/product/price.blade.php +++ b/resources/views/cart/partials/product/price.blade.php @@ -1,14 +1,14 @@ -
- @{{ item.specialPrice | price }} +
+ @{{ item.prices.specialPrice | price }}
-
- @{{ item.price | price }} +
+ @{{ item.prices.price_including_tax.value | price }}
- + - @{{ item.total | price }} - \ No newline at end of file + @{{ item.prices.row_total_including_tax.value | price }} + diff --git a/resources/views/cart/partials/products.blade.php b/resources/views/cart/partials/products.blade.php index 8f4ccc6..4638d5f 100644 --- a/resources/views/cart/partials/products.blade.php +++ b/resources/views/cart/partials/products.blade.php @@ -1,6 +1,6 @@ - + @@ -9,7 +9,7 @@ - + @include('rapidez-ct::cart.partials.product.image') @include('rapidez-ct::cart.partials.product.description') @include('rapidez-ct::cart.partials.product.price') diff --git a/resources/views/cart/partials/sidebar/summary.blade.php b/resources/views/cart/partials/sidebar/summary.blade.php index 3c0f98a..4af2bf8 100644 --- a/resources/views/cart/partials/sidebar/summary.blade.php +++ b/resources/views/cart/partials/sidebar/summary.blade.php @@ -5,12 +5,12 @@
@lang('Subtotal')
-
@{{ cart.subtotal | price }}
+
@{{ cart.prices.subtotal_including_tax.value | price }}
@lang('Shipping')
-
- @{{ cart.shipping_amount_excl_tax | price }} +
+ @{{ cart.shipping_addresses[0].selected_shipping_method.amount.value | price }}
@lang('Free') @@ -18,15 +18,15 @@
@lang('Tax')
-
@{{ cart.tax | price }}
+
@{{ cart.prices.applied_taxes[0].amount.value | price }}
-
-
@lang('Discount') (@{{ cart.discount_name }})
-
@{{ cart.discount_amount | price }}
+
+
@{{ discount.label }}
+
-@{{ discount.amount.value | price }}
@lang('Total')
-
@{{ cart.total | price }}
+
@{{ cart.prices.grand_total.value | price }}
diff --git a/resources/views/checkout/overview.blade.php b/resources/views/checkout/overview.blade.php index 10fc960..06e0b8f 100644 --- a/resources/views/checkout/overview.blade.php +++ b/resources/views/checkout/overview.blade.php @@ -5,18 +5,18 @@ @section('robots', 'NOINDEX,NOFOLLOW') @section('content') - +
-
@lang('Product') @lang('Price')