Title: mirwordpress's Replies | WordPress.org

---

# mirwordpress

  [  ](https://wordpress.org/support/users/mirwordpress/)

 *   [Profile](https://wordpress.org/support/users/mirwordpress/)
 *   [Topics Started](https://wordpress.org/support/users/mirwordpress/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mirwordpress/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mirwordpress/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mirwordpress/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mirwordpress/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mirwordpress/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 33 total)

1 [2](https://wordpress.org/support/users/mirwordpress/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/mirwordpress/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/mirwordpress/replies/page/2/?output_format=md)

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [wp query display product categories for custom taxonomy](https://wordpress.org/support/topic/display-product-categories-for-custom-taxonomy/)
 *  Thread Starter [mirwordpress](https://wordpress.org/support/users/mirwordpress/)
 * (@mirwordpress)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/display-product-categories-for-custom-taxonomy/#post-15501823)
 * More info:
 * since the default behaviour of archive-product is to display posts, I want the
   query to still find the posts, but to extract the product categories from them&
   then display those to the user. I also need the query to take into account the
   custom taxonomy for that page.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[DearFlip - PDF Flipbook, 3D Flipbook, PDF embed, PDF viewer] How does Flipbook work?](https://wordpress.org/support/topic/how-does-flipbook-work/)
 *  Thread Starter [mirwordpress](https://wordpress.org/support/users/mirwordpress/)
 * (@mirwordpress)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/how-does-flipbook-work/#post-15495211)
 * thank you.
    Is there much difference between the trial version and premium?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced AJAX Product Filters] Ajax load more not finding filtered products](https://wordpress.org/support/topic/ajax-load-more-not-finding-filtered-products/)
 *  Thread Starter [mirwordpress](https://wordpress.org/support/users/mirwordpress/)
 * (@mirwordpress)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/ajax-load-more-not-finding-filtered-products/#post-15483946)
 * i know it’s something small since a simple manual refresh of the page after i
   have applied filters seems to update the load more with the correct filtered 
   products to be loaded. i just wish i knew what i need to do. without the blink
   of a page refresh
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced AJAX Product Filters] Ajax load more not finding filtered products](https://wordpress.org/support/topic/ajax-load-more-not-finding-filtered-products/)
 *  Thread Starter [mirwordpress](https://wordpress.org/support/users/mirwordpress/)
 * (@mirwordpress)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/ajax-load-more-not-finding-filtered-products/#post-15483938)
 * not too sure where to put the trigger, ive tried putting it at the start of my
   load more js function, but it doesnt actually update the query / page with the
   filtered products.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced AJAX Product Filters] Ajax load more not finding filtered products](https://wordpress.org/support/topic/ajax-load-more-not-finding-filtered-products/)
 *  Thread Starter [mirwordpress](https://wordpress.org/support/users/mirwordpress/)
 * (@mirwordpress)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/ajax-load-more-not-finding-filtered-products/#post-15483833)
 * Thank you I will try this.
 * By background refresh I was referring to refreshing the page without reloading
   after the filter has been applied so that the correct products would load for
   me in load more. If i manually refresh the page after the filter is applied, 
   the load more will then have the correct products in it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Function to override Woocommerce’s inbuilt ‘free shipping’](https://wordpress.org/support/topic/function-to-override-woocommerces-inbuilt-free-shipping/)
 *  Thread Starter [mirwordpress](https://wordpress.org/support/users/mirwordpress/)
 * (@mirwordpress)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/function-to-override-woocommerces-inbuilt-free-shipping/#post-15267336)
 * its not a customisation really. its a problem with woocommerce.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Checkout Shipping tax calculation problem](https://wordpress.org/support/topic/checkout-shipping-tax-calculation-problem/)
 *  Thread Starter [mirwordpress](https://wordpress.org/support/users/mirwordpress/)
 * (@mirwordpress)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/checkout-shipping-tax-calculation-problem/#post-15267249)
 * thank you but its not really a customization, i think the plugin should do this
   already. Its more of a problem with it’s functionality. Stack exchange don’t 
   even help with woocommerce anymore.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Checkout Shipping tax calculation problem](https://wordpress.org/support/topic/checkout-shipping-tax-calculation-problem/)
 *  Thread Starter [mirwordpress](https://wordpress.org/support/users/mirwordpress/)
 * (@mirwordpress)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/checkout-shipping-tax-calculation-problem/#post-15265117)
 * I have tried this:
    WC()->shipping->set(‘chosen_shipping_methods’, array($flat_rate_kern));
 * does not work. set_method_id() only works within a new instance of an order.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Checkout Shipping tax calculation problem](https://wordpress.org/support/topic/checkout-shipping-tax-calculation-problem/)
 *  Thread Starter [mirwordpress](https://wordpress.org/support/users/mirwordpress/)
 * (@mirwordpress)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/checkout-shipping-tax-calculation-problem/#post-15264877)
 * Hi May
    thank you for your reply.
 * I have used the custom code link for your reply.
 * can you help me with a small part of it.
 * where it unsets the free shipping, i would then like to set the flat_rate.
 * unset( $rates[‘free_shipping:3’] );
 * so something like set ($rates[ ‘flat_rate’ ]);
 * ? thanks again
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Parse Error: Syntax error](https://wordpress.org/support/topic/parse-error-syntax-error-180/)
 *  [mirwordpress](https://wordpress.org/support/users/mirwordpress/)
 * (@mirwordpress)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-180/#post-15264323)
 * if you can, do a troubleshooting test of each updated plugin.
 * then find out which one is causing the problem, and roll back to previous version.
 * contact the plugin author to let them know.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Checkout Shipping tax calculation problem](https://wordpress.org/support/topic/checkout-shipping-tax-calculation-problem/)
 *  Thread Starter [mirwordpress](https://wordpress.org/support/users/mirwordpress/)
 * (@mirwordpress)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/checkout-shipping-tax-calculation-problem/#post-15264288)
 * i think i need a solution to override free shipping for that specific class &
   fall to flat rate where i have a cost in there for that specific shipping class..
   can you guys help ?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Checkout Shipping tax calculation problem](https://wordpress.org/support/topic/checkout-shipping-tax-calculation-problem/)
 *  Thread Starter [mirwordpress](https://wordpress.org/support/users/mirwordpress/)
 * (@mirwordpress)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/checkout-shipping-tax-calculation-problem/#post-15263950)
 * thank you.
 * so how can I make sure my site will apply this new flat rate to the specific 
   shipping class?
 * the site also has ‘free shipping’ over a certain price, so it just seems to default
   to this regardless.
 * This is the main problem, and that’s why I did my original function. It seems
   regardless of what i set in the shipping classes, if the order amount is above
   the free shipping threshold of 85, the shipping is defaulted to ‘free shipping‘
    -  This reply was modified 4 years, 4 months ago by [mirwordpress](https://wordpress.org/support/users/mirwordpress/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Checkout Shipping tax calculation problem](https://wordpress.org/support/topic/checkout-shipping-tax-calculation-problem/)
 *  Thread Starter [mirwordpress](https://wordpress.org/support/users/mirwordpress/)
 * (@mirwordpress)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/checkout-shipping-tax-calculation-problem/#post-15263788)
 * Thank you Paulo.
 * Can i edit the flat rate so that it has two values, the normal flat rate ( 7.50),
   and the one for the kern shipping class ( 20 ) ?
 * I do have the shipping class set up for those products already.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced AJAX Product Filters] filter by colour ( image ) ajax issue](https://wordpress.org/support/topic/filter-by-colour-image-ajax-issue/)
 *  Thread Starter [mirwordpress](https://wordpress.org/support/users/mirwordpress/)
 * (@mirwordpress)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/filter-by-colour-image-ajax-issue/#post-15015561)
 * I figured it out, i was calling the ajaxComplete wrong, it should be
 * `jQuery( document ).ajaxComplete(function () {…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced AJAX Product Filters] filter by colour ( image ) ajax issue](https://wordpress.org/support/topic/filter-by-colour-image-ajax-issue/)
 *  Thread Starter [mirwordpress](https://wordpress.org/support/users/mirwordpress/)
 * (@mirwordpress)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/filter-by-colour-image-ajax-issue/#post-15015310)
 * I have tried this also: it doesn’t reset the jQuery styling to the colour images.
 *     ```
       add_action( 'wp_head', function () { ?>
   
           <script>
              var my_colours = function ( $ ) {            
   
              jQuery('.bapf_body ul > li').each(function() {
               var getCol = jQuery('input', jQuery(this)).data('name');
               var imageUrl = "https://website/wp-content/uploads/2021/10/" + getCol + ".jpg";
              jQuery(".bapf_img_span", jQuery(this)).css('background-image', 'url("' + imageUrl + '")');
               console.log('CSS background-image =', jQuery(".bapf_img_span", jQuery(this)).css('background-image'));  
       });
              }
       </script>
       <?php }, 5 ); 
   
       add_action( 'wp_footer', 'cv_theme_custom_script', 999999 );
       function cv_theme_custom_script() { ?>
       <script>
           jQuery( document ).ready( function ( $ ) {
               my_colours( $ );
           } );
       </script>
       <?php
       }
   
       add_action( 'wp_head', function () { ?>
           <script>
   
           $.ajaxComplete(function () {
               // trigger the other JS snippet again after AJAX.
               my_colours( $ );
           });
   
           </script>
           <?php }, 9999999 );
       ```
   

Viewing 15 replies - 1 through 15 (of 33 total)

1 [2](https://wordpress.org/support/users/mirwordpress/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/mirwordpress/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/mirwordpress/replies/page/2/?output_format=md)