Changeset 3289542
- Timestamp:
- 05/08/2025 05:45:05 AM (10 months ago)
- Location:
- webtonative/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
webtonative/trunk/README.md
r3286216 r3289542 4 4 Requires at least: 2.0.2 5 5 Tested up to: 6.7.1 6 Stable tag: 2.7. 36 Stable tag: 2.7.4 7 7 License: GPLv2 or later 8 8 -
webtonative/trunk/index.php
r3286216 r3289542 3 3 Plugin Name: webtonative 4 4 Description: webtonative Plugin 5 Version: 2.7. 35 Version: 2.7.4 6 6 Author: webtonative 7 7 */ -
webtonative/trunk/website/scripts/woocommerce.js
r3227974 r3289542 142 142 // Event delegation for dynamically added buttons 143 143 $(document).on('click', '.single_add_to_cart_button, .add_to_cart_button', async function (e) { 144 const button = $(this); 145 const productId = button.data('product_id') || button.val(); 146 const nativeProductId = data?.[productId.toString()]?.[WTN.isIosApp ? 'appStore' : 'googlePlay']; 147 if (!nativeProductId) return; 148 144 149 e.stopPropagation(); 145 150 e.preventDefault(); … … 150 155 return; 151 156 } 152 if (WTN.isIosApp && !iosSecretKey){153 alert( "Please configure App store secret key in settings");157 if (WTN.isIosApp && !iosSecretKey) { 158 alert('Please configure App store secret key in settings'); 154 159 return; 155 160 } 156 157 const button = $(this);158 const productId = button.data('product_id') || button.val();159 160 const nativeProductId = data?.[productId.toString()]?.[WTN.isIosApp ? 'appStore' : 'googlePlay'];161 if (!nativeProductId) return;162 161 163 162 await processPayment.call(this);
Note: See TracChangeset
for help on using the changeset viewer.