mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Save the "product_preview" placement
This commit is contained in:
parent
b72898c290
commit
e0a232bb49
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,7 @@ class ConfigFactory {
|
||||||
$this->location_to_configurator_placement( 'product' ) => $this->for_location( $settings, 'product' ),
|
$this->location_to_configurator_placement( 'product' ) => $this->for_location( $settings, 'product' ),
|
||||||
$this->location_to_configurator_placement( 'shop' ) => $this->for_location( $settings, 'shop' ),
|
$this->location_to_configurator_placement( 'shop' ) => $this->for_location( $settings, 'shop' ),
|
||||||
$this->location_to_configurator_placement( 'home' ) => $this->for_location( $settings, 'home' ),
|
$this->location_to_configurator_placement( 'home' ) => $this->for_location( $settings, 'home' ),
|
||||||
|
$this->location_to_configurator_placement( 'product_preview' ) => $this->for_location( $settings, 'product_preview' ),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,6 +77,7 @@ class ConfigFactory {
|
||||||
case 'cart':
|
case 'cart':
|
||||||
case 'checkout':
|
case 'checkout':
|
||||||
case 'product':
|
case 'product':
|
||||||
|
case 'product_preview':
|
||||||
return $location;
|
return $location;
|
||||||
case 'shop':
|
case 'shop':
|
||||||
return 'category';
|
return 'category';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue