Plugin Directory

Changeset 3459140


Ignore:
Timestamp:
02/11/2026 04:46:12 PM (7 days ago)
Author:
printess
Message:

Extended debug code to test invalid page counts when saving designs on buyer side.

Location:
printess-editor/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • printess-editor/trunk/includes/js/printessWoocommerce.js

    r3459105 r3459140  
    448448        });
    449449    };
    450     const getCurrentVariant = function (productOptionValues, product) {
    451         let ret = product.variants ? product.variants[0] : null;
     450    const getCurrentVariant = function (productOptionValues, product, returnDefaultVariant = true) {
     451        let ret = returnDefaultVariant ? (product.variants ? product.variants[0] : null) : null;
    452452        const attributeLookup = getAttributeLookup(product, true);
    453453        const variantSpecificValues = [];
     
    13091309                const unparsedProductValues = getCurrentProductOptionValues(settings.product, false);
    13101310                const variant = getCurrentVariant(productValues, settings.product);
    1311                 const checkForValidVariant = getCurrentVariant(unparsedProductValues, settings.product);
     1311                const checkForValidVariant = getCurrentVariant(unparsedProductValues, settings.product, false);
    13121312                if (!checkForValidVariant && settings.product.variants && settings.product.variants.length > 0) {
    13131313                    const invalidVariantOptionName = getInvalidVariantOption(unparsedProductValues, settings.product);
  • printess-editor/trunk/printess.php

    r3459105 r3459140  
    55 * Plugin URI: https://printess.com/kb/integrations/woo-commerce/index.html
    66 * Developer: Bastian Kröger ([email protected]); Alexander Oser ([email protected])
    7  * Version: 1.6.77
     7 * Version: 1.6.78
    88 * Author: Printess
    99 * Author URI: https://printess.com
     
    1414 * Tested up to: 6.9
    1515 *
    16  * Woo: 10000:924034dfsfhsf8429842386wdff234sfd
     16 * Woo: 10000:924035dfsfhsf8429842386wdff234sfd
    1717 * WC requires at least: 5.8
    1818 * WC tested up to: 10.4.3
  • printess-editor/trunk/readme.txt

    r3459105 r3459140  
    55Tested up to: 6.9
    66WC Tested up to: 10.4.3
    7 Stable tag: 1.6.77
     7Stable tag: 1.6.78
    88Requires PHP: 8.1
    99License: GPLv2 or later
     
    384384 = 1.6.77 =
    385385 - Added some debug code to test invalid page counts when saving designs on buyer side.
     386
     387  = 1.6.78 =
     388 - Extended debug code to test invalid page counts when saving designs on buyer side.
Note: See TracChangeset for help on using the changeset viewer.