mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +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( 'shop' ) => $this->for_location( $settings, 'shop' ),
|
||||
$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 'checkout':
|
||||
case 'product':
|
||||
case 'product_preview':
|
||||
return $location;
|
||||
case 'shop':
|
||||
return 'category';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue