hugodebe
Forum Replies Created
-
Now I can save the translations of the strings into Polylang without problem. But, still nothing on front end.
The translated strings aren’t shown on the website and the labels I set in the WooCommerce Product Stock Alert setting page are the only ones in use. So, one language only…
Any suggestion to make this plugin properly working with Polylang?
Thanks in advance
No more fatal error on my side since I’ve updated the plugin code following the recommendation:
For others who didnt see:
/wp-content/plugins/woocommerce-product-stock-alert/classes
File: class-woo-product-stock-alert-admin.php
Change line 231 to
if( is_object($product_obj) && $product_obj->is_type(‘variable’) ) {
https://wordpress.org/support/topic/fatal-error-call-to-a-member-function-is_type-on-boolean-inThe thread on the Pricing Deals for WooCommerce support page: https://wordpress.org/support/topic/woocommerce-currency-switcher-conflict
The developer said:
Pricing Deals does not employ javascript to change pricing in the cart, so I am at a loss as to what might be causing/not causing a JS error.
Here a version of the website but with Pricing Deals plugin deactivated (currency switcher works fine for me): package001.montoeu.com
Here the first version with Pricing Deals activated (currency switcher doesn’t work fine for me): demo.montoeu.com
Thanks for your quick support. The problem come from Pricing Deals for WooCommerce plugin I use for BUY ONE GET ONE offers.
https://wordpress.org/plugins/pricing-deals-for-woocommerce/
I will report the compatibility issue to them.
Any suggestion from your side?
Forum: Plugins
In reply to: [Instock Email Alert for Woocommerce] Multilingual supportForum: Plugins
In reply to: [Instock Email Alert for Woocommerce] Multilingual supportHi Laszlo, here is what you can find on the Polylang multilingual plugin How To’s page for developers:
How to make translatable user defined strings in my plugin or theme ?
You have to register strings on the admin side with the function ‘pll_register_string’ and display them on frontend with ‘pll__’ or ‘pll_e’.
Forum: Plugins
In reply to: [Instock Email Alert for Woocommerce] Multilingual supportGood to hear to that. Please let me know if have any forecast for the next release date? Thanks you very much
Forum: Themes and Templates
In reply to: [Pinnacle] Translate lightbox strings: page "x of x", "Loading…"Thanks for your quick reply. I use Poedit. You’re completely right. Both strings are actually in the po file. I found them now. Thanks again
Ok, as a quick solution I followed your advice and created a new parent category, with the objective to turn my ‘sold’ category a child of it. It works well. The Blog Post Head Title is now the ‘sold’ child category name as expected.
The only cons is the url. It became a bit longer and confusing, as it contains now the parent slug.
Other suggestions are welcome :
– How to call a specific parent category name when there is more than one parent category for a single post?
I let the thread open for now, ok?
The “make primary” function is not a wp one, it’s from yoast seo isn’t it?
By ‘principal’ I mean “primary”, sorry.
When you apply a second category to a post, there is an option to “Make primary” the one you want.
Thanks for your quick reply. I get it. But in my case this solution has a cons, as I would like to treat all the ‘sold’ product into the same category. The fact to have many child categories for ‘sold’ makes it a bit more complicated…
Do you know if there is a way to call the ‘principal’ parent category name? I didn’t find anything about such parameter.
Forum: Themes and Templates
In reply to: [Pinnacle] Different headers for different categories/postI’m not sure this what you were talking about, but maybe it can help.
To add a category class to single articles (or categories classes, if there are more than one), I use the following. Just add it into your function.php, preferably in a child theme.
//Add a category class to body of single posts add_filter('body_class','add_category_to_single'); function add_category_to_single($classes, $class) { if (is_single() ) { global $post; foreach((get_the_category($post->ID)) as $category) { // add category slug to the $classes array $classes[] = $category->category_nicename; } } // return the $classes array return $classes; } //End Add a category class to body of single postsThen you can consider implementing different css styles to a single article, depending on its category.
One question: were you working on a multilingual website?
I’m currently working on a En/Pt/Es website with Polylang and I can’t get the ‘WC Product Stock Alert’ strings translation working as Polylang returns a white screen when saving…
Any suggestion? Thanks in advance
Olá felipetto,
How is going on the translation for Brazilian Portuguese? Did you managed to translate it all? Do you have something interesting to share?
Thanks in advance. Valeu, abraço!