| @@ -13,8 +13,10 @@ | ||
| 13 | 13 | use UltimateStoreKit\Base\Module_Base; |
| 14 | 14 | |
| 15 | 15 | if (!defined('ABSPATH')) exit; // Exit if accessed directly |
| 16 | 16 | |
| 17 | +// phpcs:disable WordPressVIPMinimum.Performance.WPQueryParams -- WordPressVIPMinimum targets the VIP platform, not the plugin directory. These exclusionary parameters come from a widget's own "exclude" control: the list is whatever the site owner picked in Elementor, applied to a bounded result set, not an unbounded catalogue scan. | |
| 18 | + | |
| 17 | 19 | // class Add_To_Cart extends Widget_Button { |
| 18 | 20 | class Page_Single extends Module_Base { |
| 19 | 21 | |
| 20 | 22 | public function get_name() { |
| @@ -32,13 +34,13 @@ | ||
| 32 | 34 | public function get_categories() { |
| 33 | 35 | return ['ultimate-store-kit-single']; |
| 34 | 36 | } |
| 35 | 37 | public function show_in_panel() { |
| 36 | - return get_post_type() === 'usk-template-builder' || get_post_type() === 'elementor_library' || get_post_type() === 'product'; | |
| 38 | + return get_post_type() !== 'page'; | |
| 37 | 39 | } |
| 38 | 40 | |
| 39 | 41 | public function get_keywords() { |
| 40 | - return ['add', 'to', 'cart', 'woocommerce', 'wc', 'additional', 'info']; | |
| 42 | + return ['add', 'to', 'cart', 'woocommerce', 'wc', 'additional', 'info', 'single', 'product', 'page']; | |
| 41 | 43 | } |
| 42 | 44 | |
| 43 | 45 | public function get_style_depends() { |
| 44 | 46 | if ($this->usk_is_edit_mode()) { |
| @@ -1482,9 +1484,9 @@ | ||
| 1482 | 1484 | $product_id = $product->get_id(); |
| 1483 | 1485 | } |
| 1484 | 1486 | ?> |
| 1485 | 1487 | <div class="usk-page-single"> |
| 1486 | - <?php usk_setup_quantity_buttons(); // this is for quantity plus minus button ?> | |
| 1488 | + <?php ultimate_store_kit_setup_quantity_buttons(); // this is for quantity plus minus button ?> | |
| 1487 | 1489 | <?php echo do_shortcode('[product_page id="' . $product_id . '"]'); ?> |
| 1488 | 1490 | </div> |
| 1489 | 1491 | <?php |
| 1490 | 1492 | } |