lpaweb
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] view-order retrieves 404 errorI’ve found the problem.
It is related to the plugin User Registration by WPEverest. I’m using a plugin to to link User Registration to Woocommerce and it seems to be causing the issue.
I’m going to contact the plugin developer.
Thank you for your assistance.
Forum: Plugins
In reply to: [WooCommerce] view-order retrieves 404 errorAll the other links on my account are working fine.
I’ve activated the Storefront parent theme and it does exactly the same.
The issue is still there.
I’ve tried updating translations and everything, even deactivate the WPML plugin which i use for translations, and nothing seems to solve this.
How can i debug this?
Forum: Plugins
In reply to: [YITH WooCommerce Badge Management] Badge disappear on variation changeI had run some tests myself, and what i figured, is when the variation changes it the badge changes with it, which makes me believe it happens with something related to DB, because for some reason, the plugin is calling the BD for the badge everytime you change a variation.
That must be related to this problem i believe.
But yeah, at the moment, i’m experiencing this only on Safari, but if you are getting the error on Chrome and Firefox aswell, that doesn’t make the problem browser related.
Forum: Plugins
In reply to: [YITH WooCommerce Badge Management] Badge disappear on variation changeYes, if i’m logged in, the issue happens as well, but still, like i initially mentioned, it only happens on Safari.
Forum: Plugins
In reply to: [YITH WooCommerce Badge Management] Badge disappear on variation changeThat was my first solution, but it didn’t work.
Have you tried it on Safari?
Because the issue seems to be related to the Safari Browser.
Forum: Plugins
In reply to: [WooCommerce] Never store the shipping informationSo, by changing my function i was able to achieve what i want.
add_action( 'woocommerce_review_order_before_submit', 'products_not_shipable' ); function products_not_shipable() { // Only on checkout page (allowing customer to change the country in cart shipping calculator) if( is_checkout() ){ // Set your products $products = array(14059, 14051, 14043, 14035, 14017, 13847, 13833, 13823, 13809, 13793, 13771, 13757, 13747, 13733, 13692, 13682, 13658, 13644, 13634, 13620, 13583, 14056, 14048, 14040, 14032, 14014, 13842, 13828, 13820, 13803, 13788, 13766, 13752, 13744, 13727, 13687, 13679, 13653, 13639, 13631, 13631, 13578); // Get customer country $country = WC()->session->get('customer')['shipping_country']; if( empty($country) ){ $country = WC()->session->get('customer')['billing_country']; } // For Countrys $pais = array("DE","DK","SI","ES","FI","FR","GR","IT","PL","PT","UK"); if ( !in_array($country,$pais)){ // Loop through cart items foreach( WC()->cart->get_cart() as $item ){ // IF product is in cart if( in_array( $item['product_id'], $products ) ){ // Avoid checkout and display an error notice wc_add_notice( sprintf( __(" %s can't be shipped to your country.", "woocommerce" ), '"' . $item['data']->get_name() . '"'), 'error' ); echo '<script language="JavaScript">'; echo 'document.getElementById("place_order").disabled = true;'; echo '</script>'; break; // Stop the loop } } } } }
I made it run on
woocommerce_review_order_before_submit
instead ofwoocommerce_check_cart_items
and it works. Also, added a javascript code to disable the checkout button in case you don’t meet the requirements.But now i have a different problem.
Every time i click on “ship to different address” and change the country on the shipping address the woocommerce runs a validation to check if all is ok to proceed with checkout and it runs my function, but if the “ship to different address” is not enabled, every time i change the country it doesn’t make any validation and lets the client place the order for countries that don’t meet the requirements.So, what i need now, is to know how can i make woocommerce run the checkout validation when the country on billing address changes.
Thank you.
I have another question.
I need to create another discount rule different from the one i’ve told before.
It is a simple rule. Let me explain:You Buy 3 products you get the chepeast 1 free.
Is it possible to achieve this in the free version of the plugin? Or do i need to buy it aswell?
Thank you,
MiguelYeah, it was a copy paste error.
It is solved know.
Thank you very much.
Check line 46 of the print i’ve sent you.
It is referring to that.add_filter('metaslider_flex_slider_parameters', function($options, $slider_id) {
Hi,
I had to remove the pop up because the campaign we were announcing on it ended.
Meanwhile i will create a test server with a branch of the website where you can see the error.Thank you,
MiguelI’m on 7.2
I added to the functions.php as you can see on the image.
https://i.imgur.com/ZuLcc6I.pngThe error log is giving the following error:
[27-Oct-2020 13:01:30 UTC] PHP Parse error: syntax error, unexpected '&' in /home/dashi/public_html/wp-content/themes/storefront-child/functions.php on line 44
Added to the functions.php and it gave a critical error to the website.
Hello there,
The page where you can see the banner is https://www.dashiofficial.com but i had to move the button inside the container because it was cutted out when it was with default settings top: -18px and right: -18px .
Thank you,
MiguelForum: Plugins
In reply to: [In Stock Mailer for WooCommerce] E-mails not being sent automaticallyUnderstood.
Thank you Frank.
Forum: Plugins
In reply to: [In Stock Mailer for WooCommerce] E-mails not being sent automaticallyHi Frank,
The update seems to correct some issues but it brought others, like the e-mails on the list are being sent many times to the same person.
We had a client that got really mad about it, because the inbox folder was full of e-mails of stock alert.
Thank you,
Miguel