fix(shop): delegate product checkout_hint to CheckoutService
get_product_detail_view() still called Shop::get_checkout_hint() after the method moved into CheckoutService, which fatals on product detail pages.
This commit is contained in:
@@ -113,7 +113,7 @@ class Shop {
|
||||
$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['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['default_quantity'] = 1;
|
||||
$detail['options'] = $this->get_product_options($product_id);
|
||||
|
||||
Reference in New Issue
Block a user