Changeset 3459105
- Timestamp:
- 02/11/2026 03:52:37 PM (7 weeks ago)
- Location:
- printess-editor/trunk
- Files:
-
- 3 edited
-
includes/js/printessWoocommerce.js (modified) (2 diffs)
-
printess.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
printess-editor/trunk/includes/js/printessWoocommerce.js
r3455477 r3459105 1307 1307 context.lastSaveSaveToken = saveToken; 1308 1308 const productValues = getCurrentProductOptionValues(settings.product); 1309 const unparsedProductValues = getCurrentProductOptionValues(settings.product, false); 1309 1310 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); 1312 1314 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; 1315 1318 } 1316 1319 } … … 1328 1331 } 1329 1332 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) => { 1331 1334 hideInformationOverlay(); 1332 1335 context.designName = savedDesignName; -
printess-editor/trunk/printess.php
r3455477 r3459105 5 5 * Plugin URI: https://printess.com/kb/integrations/woo-commerce/index.html 6 6 * Developer: Bastian Kröger (support@printess.com); Alexander Oser (support@printess.com) 7 * Version: 1.6.7 67 * Version: 1.6.77 8 8 * Author: Printess 9 9 * Author URI: https://printess.com … … 14 14 * Tested up to: 6.9 15 15 * 16 * Woo: 10000:92403 3dfsfhsf8429842386wdff234sfd16 * Woo: 10000:924034dfsfhsf8429842386wdff234sfd 17 17 * WC requires at least: 5.8 18 18 * WC tested up to: 10.4.3 -
printess-editor/trunk/readme.txt
r3455477 r3459105 5 5 Tested up to: 6.9 6 6 WC Tested up to: 10.4.3 7 Stable tag: 1.6.7 67 Stable tag: 1.6.77 8 8 Requires PHP: 8.1 9 9 License: GPLv2 or later … … 381 381 - 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) 382 382 - 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.