diff --git a/beike/Shop/Http/Resources/ProductDetail.php b/beike/Shop/Http/Resources/ProductDetail.php index 97e2f851..573279a9 100644 --- a/beike/Shop/Http/Resources/ProductDetail.php +++ b/beike/Shop/Http/Resources/ProductDetail.php @@ -54,6 +54,7 @@ class ProductDetail extends JsonResource 'in_wishlist' => $this->inCurrentWishlist->id ?? 0, 'active' => (bool) $this->active, 'price_setting' => $this->price_setting ?? '', + 'minimum_order' => $this->minimum_order ?? 0, 'numPrices' => NumPricesDetail::collection($this->numprices)->jsonSerialize() ?? '', ]; } diff --git a/resources/lang/en/product.php b/resources/lang/en/product.php index 327bba35..c13bdb07 100644 --- a/resources/lang/en/product.php +++ b/resources/lang/en/product.php @@ -28,5 +28,6 @@ return [ 'active' => 'Active', 'inactive' => 'Inactive', 'has_been_inactive' => 'The product has been inactive', - 'minimum_order' => 'Min Order' + 'minimum_order' => 'Min Order', + 'minimum_order_error' => 'The purchase quantity must be greater than or equal to :num' ]; diff --git a/resources/lang/zh_cn/product.php b/resources/lang/zh_cn/product.php index b2a31e65..3efe739d 100644 --- a/resources/lang/zh_cn/product.php +++ b/resources/lang/zh_cn/product.php @@ -29,5 +29,6 @@ return [ 'active' => '上架', 'inactive' => '下架', 'has_been_inactive' => '该商品已下架', - 'minimum_order' => '起订量' + 'minimum_order' => '起订量', + 'minimum_order_error' => '采购数量必须大于等于:num' ]; diff --git a/themes/default/product/product.blade.php b/themes/default/product/product.blade.php index 55138725..798d9810 100644 --- a/themes/default/product/product.blade.php +++ b/themes/default/product/product.blade.php @@ -221,12 +221,18 @@ @endif @hookwrapper('product.detail.sku') -