mathew07
Forum Replies Created
-
I confirm – it stopped working after WP 5 update. Can you please fix it? Thank you in advance.
Forum: Plugins
In reply to: [Polylang] Function – string translationHello again,
I couldn’t edit previous post so I had to post new one.
I edit my code and now it looks like this:
add_filter('gettext', 'translate_text3'); add_filter('ngettext', 'translate_text3'); function translate_text3($translated) { if ( pll_current_language() == 'ru' ) { $translated = str_ireplace('View Cart', 'ten', $translated); } else { $translated = str_ireplace('View Cart', 'inny', $translated); } return $translated; }
but stil no luck. It seems that parameter pll_current_language is not working at all. Any help with that will be appreciated ??
BR, Mat
Hey,
thank you for your respons. I would like to avoid customers typos.
Yes, errorr message is wrong but it doesn’t matter because error is not showing up at all. I was trying to edit code from plugin documentation (https://docs.ultimatemember.com/article/94-apply-custom-validation-to-a-field) but I failed.- This reply was modified 8 years ago by mathew07.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce cancelled order e-mail notification for my clientsOk, thank you very much ??
Greetings,
Mat
Forum: Plugins
In reply to: [WooCommerce] Woocommerce cancelled order e-mail notification for my clientsIt’s because I would like to change order status also ??
Forum: Plugins
In reply to: [WooCommerce] Woocommerce cancelled order e-mail notification for my clientsHey Mike, thank you for your response.
Unfortunatelly, I am using those notifications for customers because in my site orders will be cancelled by Shop Manager and that is why I would like to let customer know about this.
I will use this custom hook but can you please tell me if I can “call” random cancelled order template? (child theme / woocommerce / email / canceled-order.php ). I already adjust this page and it will be really nice if I will be able to use it.
Mat
Forum: Themes and Templates
In reply to: [Storefront] Mixed content issue on SSL secured pagesOk, I found it! It was line of code in my functions.php. I just remove it and now everything works fine. Thank you for your support, you are doing really good job here on the forum.
I have one other question: when I check the box “force HTPP when leaving checkout” customers will get logout every time they leave secured pages, is that correct?
I also started another topic with another issue here: https://www.ads-software.com/support/topic/show-only-cash-on-delivery-payment-when-local-delivery-is-chosen?replies=1#post-6664044 mayby you or someone else will help me? It’s my last issue before I get started with my shop ??
Thanks again @jameskoster, you are the best! Best wishes,
Mathew.Forum: Themes and Templates
In reply to: [Storefront] Mixed content issue on SSL secured pagesI’m running the latest version of Storefront and all plugins. Ok, I will search for that script but can you pointed me where I should search it? The file or line of code? Or maybe if it’s not a problem I could give you temporary login and password and then you could help me ??
Forum: Themes and Templates
In reply to: [Storefront] Mixed content issue on SSL secured pagesThank you, really appreciate your help ??
Yeah, it’s strange … I think that this is an issue with forcing http in random pages (exclude myaccount, checkout). When I check the box “force http when leaving payments” in woocommerce setting the shield didn’t appear. I’m still getting message:
https://dalbeshop.pl/wp-content/themes/storefront/js/script.js?ver=1
Failed to load resource: the server responded with a status of 404 (OK)
but it seems to work.
However … when I choose “force http when leaving payments” the weird shield appears …
EDIT:
I noticed that this issue is related to another weird issue. When I have “force http when leaving payment” I can’t stay login on every page. When I’m leaving secured pages (https) I got logout and when I get back to those SSL pages I got login (weird). Same thing for customer accounts – they can’t stay login on every page. Any ideas?Forum: Themes and Templates
In reply to: [Storefront] Mixed content issue on SSL secured pagesAre you sure that my site is secured? I’m using Chrome and when I go to secured pages I see this in my browser:
https://i61.tinypic.com/1686jox.png
On the left side there is a green padlock but on the right side appears gray shield. And google support says that this is unsecured content issue. When I’m inspecting this page I can see in console this issue:
Mixed Content: The page at ‘https://dalbeshop.pl/kontakt/’ was loaded over HTTPS, but requested an insecure script ‘https://dalbeshop.pl/wp-content/themes/storefront/js/script.js?ver=1’. This request has been blocked; the content must be served over HTTPS.
I installed Https test plugin and result of this test is that I have one unsecured link on pages with SSL:
Unsecured Links:
https://dalbeshop.pl/cartShould I live it or try to fix it?
Thank you for helping me ??
Forum: Themes and Templates
In reply to: [Storefront] Mixed content issue on SSL secured pagesOk, thank you.
I tried to use something like this:add_filter(‘woocommerce_get_cart_url’, ‘redirect_cart_url’);
function redirect_cart_url($url) {
global $woocommerce;
if(is_cart()){
$cart_url = ‘https://dalbeshop.pl/cart/’;
}
else {
//other url or leave it blank.
}
return $cart_url;
}but it doesn’t work :/
Forum: Themes and Templates
In reply to: [Storefront] Mixed content issue on SSL secured pagesI think that url cart in header is making this problem. How can I change this URL from http to https? In which file is this hide?
Forum: Themes and Templates
In reply to: [Storefront] Mixed content issue on SSL secured pagesHey, thanks for your response.
Yes, I have the latest version of Storeftont and I’m editing theme using child-theme.Forum: Plugins
In reply to: [WooCommerce Quantity Increment] Quantity buttons looks badI can’t edit my post so i just add new one.
The solution from https://github.com/woothemes/WooCommerce-Quantity-Increment/issues/2
The solution descover jameskoster and the code write bryceadams.
You need to add this code to your ‘custom function’ area in function.php
add_action( ‘wp_enqueue_scripts’, ‘wcs_dequeue_quantity’ );
function wcs_dequeue_quantity() {
wp_dequeue_style( ‘wcqi-css’ );
}It works for me. Hope this will help you too ??
Forum: Plugins
In reply to: [WooCommerce Quantity Increment] Quantity buttons looks badNo, I didn’t. I don’t know how to do this.