attila.vecerek
Forum Replies Created
-
So, basically I shouldn’t change the text at all and I’ll be able to translate the default values, right?
Thank you for clarification. However, then I don’t really understand how come that particular user generated text appeared over there, in the string translation…
Forum: Plugins
In reply to: [WP WooCommerce Mailchimp] Opt-In field label translationHello,
I have the same need. Using WPML, as well and can’t find that string. Thanks.- This reply was modified 7 years, 11 months ago by attila.vecerek.
Yes, Oscar. The db update request has popped up but after clicking it, it has only redirected me to the WooCommerce->Settings->PBoC page. No message had been shown about a successful DB update or anything alike. So I assume, it did not work.
What I remember is, I did a backup, updated some plugins(including yours), then updated wordpress to 4.3.1 and then tried to do the DB update. Maybe this flow helps to debug it.
Okay, it seems, that if I go through each product and hit update, it reinitializes something in the database. I’ve just had a slight look on the translation management class of yours and thought, it could help. And helped! ??
Hey Oscar,
you have released a wpml-ready update on your plugin. I have just installed it but nothing changed. The translation page does not show correct prices.
What did I do wrong? I had rewritten it with my solution because we are already online but it also stopped working…Best,
AttilaForum: Plugins
In reply to: [Invoices for WooCommerce] Invoice status always UNPAIDI did not. But I think, I will leave it this way. I like it more.
Thanks ??Forum: Plugins
In reply to: [Invoices for WooCommerce] Invoice status always UNPAIDHi Bas,
I suppose it worked out, Unpaid is not output anymore when the status changes to completed. Actually, there is no text, that informs about the invoice being paid, or not.I have given you 5 stars. Keep up with the good job, you’re delivering ??
Forum: Plugins
In reply to: [Invoices for WooCommerce] Invoice status always UNPAIDHi Bas,
I updated the plugin. The eshop is already running live, so I will wait for an order to come and we’ll see if it works well ?? I’ll update you on this case.Forum: Plugins
In reply to: [Invoices for WooCommerce] Logo does not showHi Bas,
I have enabled in php.ini the allow_url_fopen.Thank you very much ??
Forum: Plugins
In reply to: [Invoices for WooCommerce] Logo does not showHello,
I have a similar error. It outputs into the document this, instead of the logo.
Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in
/srv/www/vhosts/tenone.ch/httpdocs/wp-content/plugins/woocommerce-pdf-invoices/functions.php
on line 13I use a .png, how can it be solved? should I use .jpg, instead?
Best,
AttilaHi Oscar,
you are welcome. I had to come up with something fast because my client is relying on me to finish and launch the site, asap. The tests I did were really basic ones. Everything seems to work on the site, though. Made couple of test orders and the pricing was as expected.
Cheers.
Hi Jonathan,
sure, I can do it but i can’t guarantee you anything – even though, I have tested the solution on my current site and everything works really well for me. So please, make a backup before applying the changes.
https://pastebin.com/Q1EGHrEe
Click the link above, copy everything and replace the content of the file ‘path_to_plugin_root/includes/class-wcpbc-frontend.php’ with this .Tested enviroment:
- WordPress ver.4.2.4
- WPML Multilingual CMS ver.3.2.2
- WooCommerce Multilingual ver.3.6.7
Let me know, whether my solution worked for you, as well.
Best,
AttilaI have implemented the solution. How can I send it to you?
After a small database research I have come up with a solution. The translated product ids are mapped onto the product ids in the wp_icl_translations table.
Your data is saved in the wp_postmeta table but only under the original product id. So when getting the price, you should get the real/original product id out of the translations table, so you can get the real price.SELECT
trid
FROMwp_icl_translations
WHERE element_id = :product_idThis query will get you the original product id in every circumstance. On the default language page, as well as on a translation page. The second statement is true if the translation originates from the default language. You can have multiple translations and you can translate en -> de, than de -> es, then es ->… So this method should be further worked around.
Hope, that this helps. Let me know what you think about this possibility.