JasperPress
Forum Replies Created
-
Forum: Plugins
In reply to: [Facebook for WooCommerce] Disable Facebook-pixel until cookies are acceptedHi Simon,
I copied the code to the functions.php, but there seems to be no change yet.
The script is still loaded, even with this filter active.
I tried a very slight modification:
function check_cn_has_been_accepted( $is_enabled ) { if ( function_exists('cn_cookies_accepted') && cn_cookies_accepted() ) { return true; } else { return false; } } add_filter( 'facebook_for_woocommerce_integration_pixel_enabled', 'check_cn_has_been_accepted', 10, 1 );
(With an else {} in place)
But still no effect.Am I doing something wrong?
Cheers,
JasperForum: Plugins
In reply to: [YITH WooCommerce Ajax Product Filter] Widgets dissapear after filteringHi!
Is it correct that a few versions back, it wasn’t necessary to have the same sidebar in both the shop and product taxonomy pages?
It used to work until a while back…Well this would be the reason to stop using your plugin I’m afraid since this website is dependent on different sidebars for different product archives.
Forum: Plugins
In reply to: [YITH WooCommerce Ajax Product Filter] Filters disappear after first filterAnd what if you have the same sidebar (as in the same ID) but the WooSidebars plugin is running, so there are different widget areas for different categories?
Is there a solution for this? Or maybe only in the premium version?Forum: Plugins
In reply to: [WooCommerce Sample] Plugin no longer worksI managed to fix the issue by changing s a function in the php file “woocommerce-sample.php”, starting on line 201:
function filter_session($session_data, $value, $key){ if ($value['sample']){ $session_data['sample'] = true; $session_data['unique_key'] = $value['unique_key']; //$session_data['data']->price = 0; $product_id = $session_data['product_id']; $sample_price_mode = get_post_meta($product_id, 'sample_price_mode', true) ? get_post_meta($product_id, 'sample_price_mode', true) : 'default'; $sample_price = get_post_meta($product_id, 'sample_price', true) ? get_post_meta($product_id, 'sample_price', true) : 0; if ($sample_price_mode === 'custom'){ $session_data['data']->set_price( $sample_price ); }else if ($sample_price_mode === 'free'){ $session_data['data']->set_price( '0' ); }else{ //default } } return $session_data; }
I modified line 210 and 212 from:
210: $session_data['data']->price = $sample_price; 212: $session_data['data']->price = 0;
to:
210: $session_data['data']->set_price( $sample_price ); 212: $session_data['data']->set_price( '0' );
This actively changed the prices in the cart to the right ones again, it seems.
Forum: Plugins
In reply to: [YITH WooCommerce Ajax Product Filter] Plugin ajax filtering not workingYes, that’s because I switched back to the previous version of the plugin (3.1.0) since it was not working and this is production site that needs to run smoothly.
The new version is not working so hopefully you can test this yourself. If not, can you at least tell me what the big changes are in the plugin functions, so I can try to find out where the error occurs.
Forum: Plugins
In reply to: [YITH WooCommerce Ajax Product Filter] Plugin ajax filtering not workingHi there,
I seem to have the same issue.
One of my clients (https://www.cavallo-floors.nl/) uses the YITH WooCommerce Ajax Product filter and after updating everything to the latest versions, this issue arises.When clicked on the filter, the loader image shows, but afterwards the page seems to be refreshing to a new URL and all of the filters have disappeared.
I already tried switching to the twentytwelve theme and deactivating other plugins but nothing worked so far.
Any ideas?
Hi John,
Thanks for the speedy response.
I totally get what you’re saying and you have a good point.
Since the feed is shown on the homepage the script is already cached by most of the visitors and it would seem to much of a hassle to dequeue it and conditionally add it again.Cheers!
JasperForum: Plugins
In reply to: [YITH WooCommerce Added to Cart Popup] Can't get plugin to workSeems like it.
Only the Premium version supports this.Well, I worked around it, making the wc_messages div fixed with CSS and closeable with some jQuery.
Forum: Plugins
In reply to: [YITH WooCommerce Added to Cart Popup] Can't get plugin to workHello,
So I sent the link and account data to the email address you mentioned.
Have you had time to take a look yet?This last update made the maps work again.
There are some issues still, however:
1. The Widget does not wrap in a div that I defined in functions.php, this is due to the fact that the class.map-widget.php does not contain echo $before_widget; and echo $after_widget; When I added this myself, it works properly. Please update this in the next release.
2. When I insert an HTML link in the Infowindow message, it breaks. This used to work fine in the version before 3.0
@flipper Code,
Deactivating and activating again didn’t work with my site.
Any other ideas?Hi there.
Yup, the plugin was activated after updating.
This is one of the pages containing a map:
https://www.fysiotherapieapeldoornzuid.nl/informatie/vestigingen/The theme is custom-made, so if there are any scripts that you need for it to work that I may have cleaned out, please let me know.
I have the exact same problem and this keeps popping up in the support so it seems like this should really be addressed!
I tried version 1.2.5 but nothing changes.
Currently I’m using WordPress 4.2.2, WooCommerce 2.3.9 and the latest plugin version.It seems to have something to do with the WooCommerce template that I included in my theme. When I disable template overriding, the changing of the payment methods work.
I narrowed it down to the “form-checkout.php” file in the “checkout” folder of my woocommerce templates. I had only this in that template:
<?php do_action( 'woocommerce_checkout_order_review' ); ?>
And I changed it to this:<?php do_action( 'woocommerce_checkout_before_order_review' ); ?> <div id="order_review" class="woocommerce-checkout-review-order"> <?php do_action( 'woocommerce_checkout_order_review' ); ?> </div> <?php do_action( 'woocommerce_checkout_after_order_review' ); ?>
Now it works! So check your template files!
This script doesn’t help on my checkout page…
Any other ideas???I have the same issue with Plugin v 1.3.5 in WC2.3.7/WP4.1.1
When the plugin is activated you cannot change the Payment method on the checkout page. If you click the radio buttons the form is recalculating/reloading but always switches back to the standard gateway.Any ideas so far?