Plugin Directory

Changeset 2232779


Ignore:
Timestamp:
01/24/2020 01:12:51 PM (6 years ago)
Author:
soft8soft
Message:

Verge3D 2.17.2 version bump

Location:
verge3d/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • verge3d/trunk/js/woo_product.js

    r2173543 r2232779  
    1616}
    1717
     18function 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
    1823function 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]');
    2025    formData.append('variation_id', varIdElem ? varIdElem.value : -1);
    2126}
     
    4045    formData.append('action', 'v3d_woo_get_product_info');
    4146    v3d_woo_form_get_quantity(formData);
     47    v3d_woo_form_get_product_id(formData);
    4248    v3d_woo_form_get_variation_id(formData);
    4349    v3d_woo_form_get_attributes(formData);
  • verge3d/trunk/readme.txt

    r2184297 r2232779  
    55Tested up to: 5.2
    66Requires PHP: 5.6
    7 Stable tag: 2.16.1
     7Stable tag: 2.17.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6969== Changelog ==
    7070
     71= 2.17.2 =
     72* Fix issue with product permalinks.
     73
     74= 2.17 =
     75* Verge3D 2.17 version bump.
     76
    7177= 2.16.1 =
    7278* Support international attribute names in WooCommerce.
  • verge3d/trunk/verge3d.php

    r2184297 r2232779  
    44Plugin URI: https://www.soft8soft.com/verge3d
    55Description: 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.16.1
     6Version: 2.17.2
    77Author: Soft8Soft LLC
    88Author URI: https://www.soft8soft.com
  • verge3d/trunk/woo_product.php

    r2184297 r2232779  
    114114function v3d_get_product_info() {
    115115
    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();
    123119
    124120    if (!empty($product)) {
     
    204200        }
    205201
     202    } else {
     203        $response['status'] = 'error';
     204        $response['error'] = 'Product not found';
    206205    }
    207206
Note: See TracChangeset for help on using the changeset viewer.