Changeset 2232779
- Timestamp:
- 01/24/2020 01:12:51 PM (6 years ago)
- Location:
- verge3d/trunk
- Files:
-
- 4 edited
-
js/woo_product.js (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
verge3d.php (modified) (1 diff)
-
woo_product.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
verge3d/trunk/js/woo_product.js
r2173543 r2232779 16 16 } 17 17 18 function v3d_woo_form_get_product_id(formData) { 19 var varIdElem = document.body.querySelector('input[name=product_id]'); 20 formData.append('product_id', varIdElem ? varIdElem.value : -1); 21 } 22 18 23 function v3d_woo_form_get_variation_id(formData) { 19 var varIdElem = document.body.querySelector('input .variation_id');24 var varIdElem = document.body.querySelector('input[name=variation_id]'); 20 25 formData.append('variation_id', varIdElem ? varIdElem.value : -1); 21 26 } … … 40 45 formData.append('action', 'v3d_woo_get_product_info'); 41 46 v3d_woo_form_get_quantity(formData); 47 v3d_woo_form_get_product_id(formData); 42 48 v3d_woo_form_get_variation_id(formData); 43 49 v3d_woo_form_get_attributes(formData); -
verge3d/trunk/readme.txt
r2184297 r2232779 5 5 Tested up to: 5.2 6 6 Requires PHP: 5.6 7 Stable tag: 2.1 6.17 Stable tag: 2.17.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 69 69 == Changelog == 70 70 71 = 2.17.2 = 72 * Fix issue with product permalinks. 73 74 = 2.17 = 75 * Verge3D 2.17 version bump. 76 71 77 = 2.16.1 = 72 78 * Support international attribute names in WooCommerce. -
verge3d/trunk/verge3d.php
r2184297 r2232779 4 4 Plugin URI: https://www.soft8soft.com/verge3d 5 5 Description: Verge3D is the most artist-friendly toolkit for creating interactive web-based experiences. It can be used to create product configurators, 3D presentations, online stores, e-learning apps, 3D portfolios, browser games and more. 6 Version: 2.1 6.16 Version: 2.17.2 7 7 Author: Soft8Soft LLC 8 8 Author URI: https://www.soft8soft.com -
verge3d/trunk/woo_product.php
r2184297 r2232779 114 114 function v3d_get_product_info() { 115 115 116 $url = wp_get_referer(); 117 $post_id = url_to_postid($url); 118 $product = wc_get_product($post_id); 119 120 $response = array( 121 'status' => 'error' 122 ); 116 $product = wc_get_product($_REQUEST['product_id']); 117 118 $response = array(); 123 119 124 120 if (!empty($product)) { … … 204 200 } 205 201 202 } else { 203 $response['status'] = 'error'; 204 $response['error'] = 'Product not found'; 206 205 } 207 206
Note: See TracChangeset
for help on using the changeset viewer.