mirwordpress
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: wp query display product categories for custom taxonomyMore 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.
thank you.
Is there much difference between the trial version and premium?Forum: Plugins
In reply to: [Advanced AJAX Product Filters] Ajax load more not finding filtered productsi 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
In reply to: [Advanced AJAX Product Filters] Ajax load more not finding filtered productsnot 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
In reply to: [Advanced AJAX Product Filters] Ajax load more not finding filtered productsThank 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
In reply to: [WooCommerce] Function to override Woocommerce’s inbuilt ‘free shipping’its not a customisation really. its a problem with woocommerce.
Forum: Plugins
In reply to: [WooCommerce] Checkout Shipping tax calculation problemthank 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
In reply to: [WooCommerce] Checkout Shipping tax calculation problemI 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
In reply to: [WooCommerce] Checkout Shipping tax calculation problemHi 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
In reply to: Parse Error: Syntax errorif 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
In reply to: [WooCommerce] Checkout Shipping tax calculation problemi 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
In reply to: [WooCommerce] Checkout Shipping tax calculation problemthank 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 2 years, 10 months ago by mirwordpress.
Forum: Plugins
In reply to: [WooCommerce] Checkout Shipping tax calculation problemThank 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
In reply to: [Advanced AJAX Product Filters] filter by colour ( image ) ajax issueI figured it out, i was calling the ajaxComplete wrong, it should be
`jQuery( document ).ajaxComplete(function () {…
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] filter by colour ( image ) ajax issueI 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 );