mikel555
Forum Replies Created
-
Forum: Plugins
In reply to: [Packeta] Zmena jazyka Widget okna pod?a jazyka stránkyDobry deň, áno presne toto by som potreboval. Vedeli by ste to prida? a následne ma informova? akym sp?sobom pomocou funkcie jazyk zmeníme? Do?asne sme teraz prepísali plugin a funguje nám rie?enie ale radi by sme plugin mali aktualizovany, tak do budúcna by sme chceli túto mo?nos?. ?akujem
WP rocket did some mistakes in cart when we switched languages so we wanted to use wp fastest cache, but if it will be necessary we will try it. Could you please try to investigate first? Thank you Edson.
Forum: Plugins
In reply to: [Packeta] Plugin ma chybu a je nefunkcnyFunguje, velmi pekne dakujem za promptne riesenie problemu.
Forum: Plugins
In reply to: [Packeta] Plugin ma chybu a je nefunkcnyDakujem prosim o urgent vyriesenie nakolko prevadzkujeme viacero eshopov s modulom a tym prichadzame o objednavky z dovodu ze ludia viac preferuju packetu ako ine prepravne metody. Dakujeme
Hello, I do not want to exclude.
As I mentioned above.When you use weglot theres a language code after slash in the URL slug like /de, /en, /es…etc
How about the parent language? Is there any way to set it from website.com to website.com/fr if the parent language is french?
Thanks
Forum: Plugins
In reply to: [Packeta] Sledovanie stavu doru?enia prepravcomDobry den,
bolo by fajn to cim skor zapracovat.Vyvojari ako je toret maju v sucasnosti ovela lepsie riesenie ako vy a to ste zakladatelia. Mali by ste sa na to primarne sustredit ked idete von s riesenim pod vlastnym menom, aby obsahovalo vsetko co ponukate.
Dakujem
Hello I fixed this. Thank you.
Facing one extra issue now.Is there a possibility to add parent language into slug with weglot?
Like /en for parent which is not translated with weglot?Thanks
Thank you Edson for the answer. I think you did not get the point. Let me explain. I have custom email to get reviews from our customers. In the email I retrieve products they have ordered.
Example you order in parent language some tshirt. I will retrieve url and guide you to give me review like this – site.com/product/tshirt#tab-reviews
If you order the same product from other language for example german. It has to be like this – site.com/de/product/GERMAN SLUG FOR PRODUCT#tab-reviews
My question is how may I retrieve translated slug for product id with php.
In woocommerce you could do it like thisPermalink URL
$permalink = get_permalink( $item['product_id'] ) ;
Slug
$slug = $product->post_name;
So the question is how to get permalink for weglot or slug for weglot if product is already translated and slug is also translated.
Thanks
Fixed this way
$weburl = get_site_url(); $weglotlanguage = $order->get_meta('weglot_language'); $product = get_post( $item->get_product_id() ); $slug = $product->post_name; echo '<a href="' . $weburl . '/'.$weglotlanguage.'/?product=' . $slug .'#tab-reviews" style="font-size:15px; text-decoration: unset; line-height:50px;">' . $name . '</a><br>';
But Im still interested if there is some other solution which could get exact slug or permalink from weglot. Thanks
Paid version has this feature included?
You may use this code to reproduce custom field into variable product. Then go to the xml feed and try to get the value from
variation_meta_price_kc
orvariation_meta_price_kc_sale
. It will not be listed there. Could we use some snippet to get it there? Did not find any documentation with snippets for the plugin. Thank you!By the way: This input may be also for some label only, does not have to be for price so if you have some variable you could use variable meta for any purpose, but into the feed you can not get it. I think this is the same problem as @silvo37 has and the reason why he statred this topic here.
add_action( 'woocommerce_variation_options_pricing', 'bbloomer_add_custom_field_to_variations', 10, 3 ); function bbloomer_add_custom_field_to_variations( $loop, $variation_data, $variation ) { woocommerce_wp_text_input( array( 'id' => 'variation_meta_price_kc[' . $loop . ']', 'class' => 'short wc_input_price', 'label' => __( 'Regular price (K?)', 'woocommerce' ), 'value' => get_post_meta( $variation->ID, 'variation_meta_price_kc', true ) ) ); woocommerce_wp_text_input( array( 'id' => 'variation_meta_price_kc_sale[' . $loop . ']', 'class' => 'short wc_input_price', 'label' => __( 'Sale price (K?)', 'woocommerce' ), 'value' => get_post_meta( $variation->ID, 'variation_meta_price_kc_sale', true ) ) ); } add_action( 'woocommerce_save_product_variation', 'bbloomer_save_custom_field_variations', 10, 2 ); function bbloomer_save_custom_field_variations( $variation_id, $i ) { $custom_fieldkc = $_POST['variation_meta_price_kc'][$i]; $custom_fieldkcs = $_POST['variation_meta_price_kc_sale'][$i]; if ( isset( $custom_fieldkc ) ) update_post_meta( $variation_id, 'variation_meta_price_kc', esc_attr( $custom_fieldkc ) ); if ( isset( $custom_fieldkcs ) ) update_post_meta( $variation_id, 'variation_meta_price_kc_sale', esc_attr( $custom_fieldkcs ) ); }
- This reply was modified 2 years, 6 months ago by mikel555.
I have created custom fields for prices in product variations. We are building custom multicurrency over here. See the fields here like normálna cena and cena po zlave for each currency (regular and sale price fields) https://ctrlv.cz/7Q89
Id like to be able to add these fields to product feed. As I mentioned here https://ctrlv.cz/Kyq4 . But theese fields for variations are not displayed there. Product feed offers only values from simple products. As I can see my custom fields for multicurrency which are for simple products. The same I add with the hook for variable ones, in the feed are not displayed. So I can not get or use filter to get the prices to the right place in the XML feed. Any solution for this please?
When you choose the value, the values of variable products like custom meta data are not available here. https://ctrlv.cz/Kyq4
I have the same problem. I think the question is that how could we get variation meta data field into the feed. Like if you add some custom field to variation like some label and you want to call it into field, then plugin does not give you this option to choose custom field from variable products. Available fields are only from regular.
But here is other problem, after choosing products on slovak version its not displaying https://green-organ.sandbox.otgs.work/sk/produkt/composite/