| @@ -278,9 +278,9 @@ | ||
| 278 | 278 | 'product_id' => $product->get_id(), |
| 279 | 279 | 'parent_product_id' => $product_parent ?: $product->get_id(), |
| 280 | 280 | 'product_type' => $product_type, |
| 281 | 281 | 'button_text' => $button_text, |
| 282 | - 'show_button_text' => false, | |
| 282 | + 'show_button_text' => ! empty( Fns::get_option( 'modules', 'compare', 'button_text', '' ) ), | |
| 283 | 283 | 'left_text' => apply_filters( 'rtsb/module/compare/button_left_text', '' ), |
| 284 | 284 | 'right_text' => apply_filters( 'rtsb/module/compare/button_right_text', '' ), |
| 285 | 285 | ]; |
| 286 | 286 | $atts = apply_filters( 'rtsb/module/compare/button_params', $params ); |
| @@ -325,9 +325,9 @@ | ||
| 325 | 325 | $empty_text = Fns::get_option( 'modules', 'compare', 'empty_table_text', esc_html__( 'No product found at your list.', 'shopbuilder' ) ); |
| 326 | 326 | |
| 327 | 327 | /* Product and Field */ |
| 328 | 328 | $products = CompareFns::instance()->get_products_data(); |
| 329 | - $field_ids = [ 'primary' ] + CompareFns::instance()->get_list_field_ids(); | |
| 329 | + $field_ids = array_merge( [ 'primary' ], CompareFns::instance()->get_list_field_ids() ); | |
| 330 | 330 | |
| 331 | 331 | $return_to_shop_text = Fns::get_option( 'modules', 'compare', 'return_to_shop_text', esc_html__( 'Return to shop', 'shopbuilder' ) ); |
| 332 | 332 | |
| 333 | 333 | $default_atts = [ |