Uploaded image for project: 'WPWC_RESURS'
  1. WPWC_RESURS
  2. RWC-210

price variations?

    XMLWordPrintable

Details

    • Task
    • Status: Done (View Workflow)
    • Medium
    • Resolution: Done
    • None
    • 1.0.0, 0.0.1.0
    • None
    • None

    Description

      Ref

      wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js

      Test 

      jQuery( '.variations_form' ).each( function() {
              jQuery(this).on( 'found_variation', function( event, variation ) {
                  console.log(variation);//all details here
                  var price = variation.display_price;//selectedprice
                  console.log(price);
              });
          });
      

      Full:
       

      jQuery(document).ready(function() {
          jQuery( '.variations_form' ).each( function() {
              jQuery(this).on( 'found_variation', function( event, variation ) {
                  console.log(variation);//all details here
                  var price = variation.display_price;//selectedprice
                  console.log(price);
              });
          });
         });
      

      https://stackoverflow.com/questions/37822604/get-variable-product-price-with-jquery-woocommerce

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            tornevall tornevall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.