Skip to content

Commit

Permalink
Size attributes option changed and toggler default too
Browse files Browse the repository at this point in the history
  • Loading branch information
nomasi committed Apr 28, 2020
1 parent c515444 commit b24702d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/class-wc-settings-sizeme-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ class WC_Settings_SizeMe_for_WooCommerce extends WC_Settings_Page {
*/
const ADD_TOGGLER_YES = 'yes';


/**
* Class constructor.
*
Expand Down Expand Up @@ -165,7 +164,7 @@ public function get_settings() {
'type' => 'multiselect',
'options' => self::load_size_attribute_options(),
'css' => 'width: 150px; height: 150px;',
'id' => 'size_attributes',
'id' => WC_SizeMe_for_WooCommerce::SIZE_ATTRIBUTES_KEY,
),
array(
'type' => 'sectionend',
Expand Down Expand Up @@ -213,6 +212,7 @@ public function get_settings() {
self::ADD_TOGGLER_NO => 'No',
self::ADD_TOGGLER_YES => 'Yes',
),
'default' => get_option( WC_SizeMe_for_WooCommerce::ADD_TOGGLER, self::ADD_TOGGLER_NO ),
'id' => WC_SizeMe_for_WooCommerce::ADD_TOGGLER,
),
array(
Expand Down

0 comments on commit b24702d

Please sign in to comment.