tpo
Forum Replies Created
-
Dobry deň, PHP verzia sa nemenila a predchádzajúca verzia bola myslím 1.7.1, alebo 1.7.2 (nespomínam si presne, ale ur?ite nie?o 1.7.x).
Hi madalinaruzsa,
thank you very much for your comprehensive reply!
I understand that this can’t be imported directly through your plugin, and I also understand that because you can’t address all the different scenarios. It’s understandable, that’s why I’m trying to find another way.
To your notes:
ad 1/ The big negative in this proposal is that some users in the original database has a paid membership until some date in the future. By importing only name and password without membership, such users would lose their already paid membership.ad 2/ This is something I would need, but the current solution is very cumbersome because there is only one user to set up in one step. If I have several hundred of those users, it would take an inefficiently long time. But I could imagine something like this being set up via a workaround in SQL statements in classic PHP. I would define there in arrays the data about the users that I have from the original site (username, email address, membership start date, membership end date, membership type) and then through some simple foreach would start adding to the database via SQL statements. All I need for this is a description of the SQL commands that are used to add memberships via this tool: https://www.cozmoslabs.com/docs/paid-member-subscriptions/member-management/#Add_New_Member so that I can add them to that foreach. I guess my idea would be that I would first import users with data via WP All Import, and then add membership information to those users via the aforementioned foreach. This could be paired either by email or by username. In a nutshell it would look something like this (just a very rough sketch):
<?php /* array: email, date_from, date_to, membership_level */ $memberships = array ( array("[email protected]","2023-10-20","2024-10-20","gold_membership"), array("[email protected]","2023-10-25","2024-10-25","silver_membership"), ...... ((( and so on ))) ); ((( here will be a script that I will create that will pair the emails from the previous array with the user ID numbers from the "wp_users" table for the purposes of the "user_id" column in the "wp_pms_member_subscriptions" table ))) foreach () { INSERT INTO ...... ((( here will be the SQL statements which will insert the membership details into the database ))) } ?>
Thank you very much for the reply!
A.
Hi madalinaruzsa!
No, the problem is that I need to move users from a site that wasn’t made in WordPress and I only have the data for the users that I’ve listed above in the file.
Thanks!
So far, I’ve done that in the ../includes/phone-text.php file on line 127 instead of this one:
$result->invalidate( $tag, __('Phone number must be numbers only', 'nb-cpf') );
put this:
$result->invalidate( $tag, wpcf7_get_message( 'invalid_tel' ) );
This will show me the standard translated message from Contact Form 7. I realize that this change will be lost in the next update, but it’s at least for now until another solution is found.
Forum: Fixing WordPress
In reply to: critical error on this website (White Screen)Same here. After clean manual install I got this error if I try access to wp-admin:
Fatal error: Uncaught Error: Call to undefined function scandir() in /web/wp-includes/l10n.php:1417 Stack trace: #0 /web/wp-includes/update.php(39): wp_get_installed_translations() #1 /web/wp-includes/update.php(999): wp_version_check() #2 /web/wp-includes/class-wp-hook.php(308): _maybe_update_core() #3 /web/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #4 /web/wp-includes/plugin.php(517): WP_Hook->do_action() #5 /web/wp-admin/admin.php(175): do_action() #6 /web/wp-admin/post-new.php(10): require_once('…') #7 {main} thrown in /web/wp-includes/l10n.php on line 1417
It was resolved through support. It’s OK now.
Thank you very much for your quick help!
Hi!
Yes, it’s a translation into Slovak.
I did what you said, specifically:
– I logged into the web app,
– added the English language (since I only had Slovak in the web app and it was set to default, it couldn’t be deleted), which I marked as default,
– deleted the Slovak language and added it again,
– I set the Slovak language as default.I refreshed the site (and at the same time cleared the cache and cookies), but Show more and Show less is still in English.
I think it would definitely help if these 2 phrases could be translated directly in the web app via Edit content, similar to how you can set title, message, accept all button, etc. to other language.
Thanks!
- This reply was modified 2 years ago by tpo.
Hi,
thank you for your reply.
I have sent a request to the above link with ID 47744.
Thanks!
Thanks, the code snippet works only at checkout.
Is there a hook that handles save data in profile fields in the profile (My Account section) and I can check the old and new surname through it?
Many thanks!
Thank you!
I was able to edit the price to display correctly by editing line 2780 in wpc-composite-products.php and instead of:
$_price_html = $product->get_price_html();
I wrote this:
if ($product->get_regular_price() <> ($product->get_regular_price() * get_price_multiplier())) { $_price_html = "<del>" . wc_price($product->get_regular_price()) . "</del> <bdi class=\"sale\"><strong>" . wc_price($product->get_regular_price() * get_price_multiplier()) . "</strong></bdi>"; } else { $_price_html = wc_price($product->get_regular_price()); }
However, I am aware that this change will be overwritten after the next update of the plugin, so my question is whether such a modification can be made via functions.php so that it will remain after the plugin update.
Thanks!
OK
Oh, sorry and thank you, I haven’t noticed him before. It’s really there. Thank you, the question has been answered.
Forum: Plugins
In reply to: [Woo Variations Table] Translate plugin via Loco TranslateI found a solution.
You need to go to: Loco Translate -> Plugins -> Woo Variations Table -> Click “Edit language” under the your language name -> Select tab “Relocate” -> Select “System” and save.- This reply was modified 4 years, 7 months ago by tpo.
Hi,
thank you very much, it is it! You have great support!