Plugin Directory

Changeset 3459105


Ignore:
Timestamp:
02/11/2026 03:52:37 PM (7 weeks ago)
Author:
printess
Message:

Added some 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

    r3455477 r3459105  
    13071307                context.lastSaveSaveToken = saveToken;
    13081308                const productValues = getCurrentProductOptionValues(settings.product);
     1309                const unparsedProductValues = getCurrentProductOptionValues(settings.product, false);
    13091310                const variant = getCurrentVariant(productValues, settings.product);
    1310                 if (!variant && settings.product.variants && settings.product.variants.length > 0) {
    1311                     const invalidVariantOptionName = getInvalidVariantOption(productValues, settings.product);
     1311                const checkForValidVariant = getCurrentVariant(unparsedProductValues, settings.product);
     1312                if (!checkForValidVariant && settings.product.variants && settings.product.variants.length > 0) {
     1313                    const invalidVariantOptionName = getInvalidVariantOption(unparsedProductValues, settings.product);
    13121314                    if (invalidVariantOptionName) {
    1313                         alert(printessSettings?.userMessages && printessSettings.userMessages["unableToSaveChangesDueToInvalidVariant"] ? printessSettings.userMessages["unableToSaveChangesDueToInvalidVariant"].replace("{0}", invalidVariantOptionName) : ("Unable to save changes due to invalid value for " + invalidVariantOptionName));
    1314                         return;
     1315                        // alert(printessSettings?.userMessages && printessSettings.userMessages["unableToSaveChangesDueToInvalidVariant"] ? printessSettings.userMessages["unableToSaveChangesDueToInvalidVariant"].replace("{0}", invalidVariantOptionName) : ("Unable to save changes due to invalid value for " + invalidVariantOptionName));
     1316                        console.warn(printessSettings?.userMessages && printessSettings.userMessages["unableToSaveChangesDueToInvalidVariant"] ? printessSettings.userMessages["unableToSaveChangesDueToInvalidVariant"].replace("{0}", invalidVariantOptionName) : ("Unable to save changes due to invalid value for " + invalidVariantOptionName));
     1317                        //return;
    13151318                    }
    13161319                }
     
    13281331                    }
    13291332                    showInformationOverlay(printessSettings.userMessages && printessSettings.userMessages["savingDesign"] ? printessSettings.userMessages["savingDesign"] : "Saving design to your list of saved designs");
    1330                     saveDesign(saveToken, thumbnailUrl, settings.product.id, designName, context.designId, getCurrentProductOptionValues(settings.product, false), (savedDesignName, savedDesignId) => {
     1333                    saveDesign(saveToken, thumbnailUrl, settings.product.id, designName, context.designId, unparsedProductValues, (savedDesignName, savedDesignId) => {
    13311334                        hideInformationOverlay();
    13321335                        context.designName = savedDesignName;
  • printess-editor/trunk/printess.php

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

    r3455477 r3459105  
    55Tested up to: 6.9
    66WC Tested up to: 10.4.3
    7 Stable tag: 1.6.76
     7Stable tag: 1.6.77
    88Requires PHP: 8.1
    99License: GPLv2 or later
     
    381381 - Added error message when clicking on save in case ther current product page does not have a valid variant set (e.g. if there are issues with price relevant form fields)
    382382 - Fixed pager inside the customer view of saved designs so that the next page button is also displayed if the current dispalyed page is larger than 1
     383
     384 = 1.6.77 =
     385 - Added some debug code to test invalid page counts when saving designs on buyer side.
Note: See TracChangeset for help on using the changeset viewer.