Merge pull request 'Worktree fix get checkout hint' (#211) from worktree-fix-get-checkout-hint into main

Reviewed-on: CYL/wordpress-theme-aksrt#211
This commit is contained in:
2026-07-18 14:36:08 +08:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ trait Part1 {
'url' => get_author_posts_url($author_id), 'url' => get_author_posts_url($author_id),
'product_count' => $product_count, 'product_count' => $product_count,
'contact' => $contact, 'contact' => $contact,
'addresses' => $this->get_user_address_book($author_id), 'addresses' => $this->get_address_book($author_id),
]; ];
} }
+2 -2
View File
@@ -113,7 +113,7 @@ class Shop {
$detail['shipping'] = $this->product_service()->get_product_shipping_profile($product_id); $detail['shipping'] = $this->product_service()->get_product_shipping_profile($product_id);
$detail['after_sale'] = $this->product_service()->get_product_after_sale_profile($product_id); $detail['after_sale'] = $this->product_service()->get_product_after_sale_profile($product_id);
$detail['marketing'] = $this->product_service()->get_product_marketing_profile($product_id); $detail['marketing'] = $this->product_service()->get_product_marketing_profile($product_id);
$detail['checkout_hint'] = $this->get_checkout_hint($detail); $detail['checkout_hint'] = $this->checkout_service()->get_checkout_hint($detail);
$detail['purchase_enabled'] = ($detail['is_unlimited'] || $detail['stock'] > 0) && $detail['status'] === 'publish'; $detail['purchase_enabled'] = ($detail['is_unlimited'] || $detail['stock'] > 0) && $detail['status'] === 'publish';
$detail['default_quantity'] = 1; $detail['default_quantity'] = 1;
$detail['options'] = $this->get_product_options($product_id); $detail['options'] = $this->get_product_options($product_id);
@@ -224,7 +224,7 @@ class Shop {
return [ return [
'payment_methods' => $this->get_payment_method_options(), 'payment_methods' => $this->get_payment_method_options(),
'shipping_methods' => $this->get_shipping_method_options(), 'shipping_methods' => $this->get_shipping_method_options(),
'address_book' => $this->get_user_address_book($user_id), 'address_book' => $this->get_address_book($user_id),
'coupon_enabled' => class_exists('\AKSRT\Payment\Coupon'), 'coupon_enabled' => class_exists('\AKSRT\Payment\Coupon'),
'currency_symbol' => '¥', 'currency_symbol' => '¥',
'pending_orders' => $pending_orders['items'] ?? [], 'pending_orders' => $pending_orders['items'] ?? [],