Changeset 3407048
- Timestamp:
- 12/01/2025 04:34:44 PM (4 months ago)
- Location:
- printess-editor/trunk
- Files:
-
- 3 edited
-
includes/js/printessEditor.js (modified) (2 diffs)
-
printess.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
printess-editor/trunk/includes/js/printessEditor.js
r3389052 r3407048 777 777 translationKey: "auto", //"en" 778 778 basketId: await PrintessEditor.getOrGenerateBasketId(), 779 shopUserId: await PrintessEditor.getUserId(),779 shopUserId: "" + (await PrintessEditor.getUserId()), 780 780 // mobileMargin: {left: 20, right: 40, top: 30, bottom: 40}, 781 781 // allowZoomAndPan: false, … … 1176 1176 } 1177 1177 } 1178 PrintessEditor.visible = false; function initPrintessEditor(shopToken, editorUrl, editorVersion, startupLogoUrl, showStartupAnimation, theme, startupBackgroundColor = "") {1178 PrintessEditor.visible = false;function initPrintessEditor(shopToken, editorUrl, editorVersion, startupLogoUrl, showStartupAnimation, theme, startupBackgroundColor = "") { 1179 1179 let editorSettings; 1180 1180 if (shopToken && typeof shopToken !== "string") { -
printess-editor/trunk/printess.php
r3389051 r3407048 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. 697 * Version: 1.6.70 8 8 * Author: Printess 9 9 * Author URI: https://printess.com … … 14 14 * Tested up to: 6.8.3 15 15 * 16 * Woo: 10000:92402 6dfsfhsf8429842386wdff234sfd16 * Woo: 10000:924027dfsfhsf8429842386wdff234sfd 17 17 * WC requires at least: 5.8 18 18 * WC tested up to: 10.3.0 … … 575 575 basketItemId: basketItemId, 576 576 basektId: <?php echo wp_json_encode( $cart_id ); ?>, 577 userId: <?php echo wp_json_encode( get_current_user_id() ); ?>,577 userId: <?php echo wp_json_encode( "" . get_current_user_id() ); ?>, 578 578 optionValueMappings: <?php echo wp_json_encode( $product->get_meta( 'printess_custom_formfield_mappings', true ) ); ?>, 579 579 legalText: <?php echo wp_json_encode( PrintessAdminSettings::get_legal_text() ); ?>, … … 1419 1419 1420 1420 $payload = array( 1421 'id' => $save_token, 1422 'expiresOn' => $expiration_date_string, 1423 'dataOnly' => true, 1424 'buyerImages' => true, 1421 'saveToken' => $save_token, 1422 'expiresOn' => $expiration_date_string 1425 1423 ); 1426 1424 1427 $result = PrintessApi::send_post_request( "$printess_host/s hop/template/unexpire", PrintessAdminSettings::get_service_token(), $payload );1425 $result = PrintessApi::send_post_request( "$printess_host/savetoken/lifetime/extend", PrintessAdminSettings::get_service_token(), $payload ); 1428 1426 } 1429 1427 … … 2878 2876 product: product, 2879 2877 basektId: <?php echo wp_json_encode( uniqid( '', true ) ); ?>, 2880 userId: <?php echo wp_json_encode( $order->get_user_id() ); ?>,2878 userId: <?php echo wp_json_encode( "" . $order->get_user_id() ); ?>, 2881 2879 optionValueMappings: <?php echo wp_json_encode( $product->get_meta( 'printess_custom_formfield_mappings', true ) ); ?>, 2882 2880 legalText: <?php echo wp_json_encode( PrintessAdminSettings::get_legal_text() ); ?> -
printess-editor/trunk/readme.txt
r3389055 r3407048 5 5 Tested up to: 6.8.3 6 6 WC Tested up to: 10.3.0 7 Stable tag: 1.6. 697 Stable tag: 1.6.70 8 8 Requires PHP: 8.1 9 9 License: GPLv2 or later … … 356 356 = 1.6.69 = 357 357 - Added basic tracking events to dom: "printess:editor_opened_new_design", "printess:editor_opened_save_token", "printess:editor_closed_without_add_to_cart","printess:design_saved","printess:add_to_cart_clicked" are now sent to DOM via window.dispatchEvent and can be received using document.addEventListener 358 359 = 1.6.70 = 360 - Changed save token live time extension from old deprecated api call to newer api's (internal technical change). 361 - Fixed user id forwarding to use strings instead of numbers (internal technical change).
Note: See TracChangeset
for help on using the changeset viewer.