Plugin Directory

Changeset 3433436


Ignore:
Timestamp:
01/06/2026 10:07:52 AM (2 weeks ago)
Author:
pixobe
Message:

Updated wpenque to support when there is product_page shortcode

Location:
pixobe-product-designer/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • pixobe-product-designer/trunk/functions.php

    r3430343 r3433436  
    3737function pixobe_enqueue_frontend_scripts()
    3838{
    39     if (!function_exists('is_product') || !function_exists('is_cart') || !function_exists('is_checkout')) {
    40         return;
    41     }
    42 
    43     if (!is_product() && !is_cart() && !is_checkout()) {
    44         return;
    45     }
    46 
    47     pixobe_enqueue_scripts();
     39    // Early return if WooCommerce functions don't exist
     40    if (!function_exists('is_product')) {
     41        return;
     42    }
     43
     44    // Check WooCommerce pages first (most common case)
     45    if (is_product() || is_cart() || is_checkout()) {
     46        pixobe_enqueue_scripts();
     47        return;
     48    }
     49
     50    // Only check for shortcode if on other pages
     51    global $post;
     52    if ($post && has_shortcode($post->post_content, 'product_page')) {
     53        pixobe_enqueue_scripts();
     54    }
    4855}
    4956
  • pixobe-product-designer/trunk/includes/utils/activation_utils.php

    r3430343 r3433436  
    33namespace PixobeProductDesigner\Plugins;
    44
     5if (!defined('PIXOBE_API_ENDPOINT')) {
     6    define('PIXOBE_API_ENDPOINT', 'https://pixobe.com/api/v2');
     7}
    58// Function to call backend API on plugin activation
    69function pixobe_product_designer_activate()
  • pixobe-product-designer/trunk/languages/pixobe-product-designer-pt_BR.pot

    r3430343 r3433436  
    44msgid ""
    55msgstr ""
    6 "Project-Id-Version: Pixobe Product 0.0.1\n"
     6"Project-Id-Version: Pixobe Product 0.0.2\n"
    77"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/pixobe-product\n"
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  • pixobe-product-designer/trunk/languages/pixobe-product-designer-pt_PT.pot

    r3430343 r3433436  
    44msgid ""
    55msgstr ""
    6 "Project-Id-Version: Pixobe Product 0.0.1\n"
     6"Project-Id-Version: Pixobe Product 0.0.2\n"
    77"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/pixobe-product\n"
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  • pixobe-product-designer/trunk/pixobe-product-designer.php

    r3430343 r3433436  
    44 * Plugin URI:        https://pixobe.com/
    55 * Description:       Product Designer for WooCommerce
    6  * Version:           0.0.1
    7  * Requires at least: 6.5
     6 * Version:           0.0.2
     7 * Requires at least: 6.9
    88 * Requires PHP:      7.4
    99 * Author:            Pixobe
     
    3030}
    3131
    32 if (!defined('PIXOBE_API_ENDPOINT')) {
    33     define('PIXOBE_API_ENDPOINT', 'https://pixobe.com/api');
    34 }
    3532
    3633define('PIXOBE_PRODUCT_DESIGNER_APP_NAME', 'ProductDesigner');
    37 define('PIXOBE_PRODUCT_DESIGNER_VERSION', '0.0.1');
     34define('PIXOBE_PRODUCT_DESIGNER_VERSION', '0.0.2');
    3835define('PIXOBE_PRODUCT_CATEGORY', 'pixobe-product');
    3936define('PIXOBE_PRODUCT_PLUGIN_URL', trailingslashit(plugin_dir_url(__FILE__)));
  • pixobe-product-designer/trunk/readme.txt

    r3430343 r3433436  
    44Tags: woocommerce, product customizer, product designer, ai product design, laser etching
    55Requires at least: 6.5
    6 Tested up to: 6.8
    7 Stable tag: 0.0.1
     6Tested up to: 6.9
     7Stable tag: 0.0.2
    88Requires PHP: 7.4
    99License: GPL-2.0-or-later
     
    8686
    8787== Changelog
    88 = 0.0.1 =
     88= 0.0.2 =
    8989* First public release of Pixobe Product Designer.
    9090  Customize WooCommerce products with AI-powered design, text, images, and laser etching previews.
     
    9292
    9393== Upgrade Notice ==
    94 = 0.0.1 =
     94= 0.0.2 =
    9595First public release of Pixobe Product Designer.
    9696Customize WooCommerce products with AI-powered design, text, images, and laser etching previews.
Note: See TracChangeset for help on using the changeset viewer.