Jairo Ochoa

My feedback

  1. 3 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Jairo Ochoa commented  · 

    This script works.
    But it would be better that it were a feature of the plugin.

    <script>

    jQuery('div.wc-pao-addon-my-field input.wc-pao-addon-file-upload').on('change', function() {
    var ext = jQuery('div.wc-pao-addon-my-field input.wc-pao-addon-file-upload').val().split('.').pop().toLowerCase();
    if ( ext ) {
    if ( jQuery.inArray(ext, ['jpg','jpeg']) == -1 ) {
    alert('Only JPG files are allowed. You have uploaded a ' + ext.toUpperCase() + ' file');
    jQuery('div.wc-pao-addon-my-field input.wc-pao-addon-file-upload').val('');
    }
    }
    })
    </script>

    Jairo Ochoa shared this idea  · 
  2. 100 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Jairo Ochoa supported this idea  · 
  3. 3 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Jairo Ochoa shared this idea  · 
  4. 1 vote
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  WooCommerce » Extension - WooCommerce Brands  ·  Flag idea as inappropriate…  ·  Admin →
    Jairo Ochoa shared this idea  · 

Feedback and Knowledge Base