flamuren
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Can I accept billing with stripe?Thanks for reply. Yes I have set it up already. But it only shows card payment. I want to integrate stripe billing – is this possible or is stripe billing only handled manually?
Forum: Plugins
In reply to: [WooCommerce] Empty cart message translationYou are fantastic with all your knowledge ????
Just a question on that loco fix.
I made a text file with the name elementor-pro-sv_SE.po
Do I need to write like this in the text/po file?:
#: templates/cart/mini-cart.php:72 (the number would be the line of the string in the php file?)
msgctxt “Inga produkter i varukorgen.”
msgid “No products in the cart.”
msgstr “”Forum: Plugins
In reply to: [WooCommerce] Empty cart message translationYes that is true. Updated elementor just now and the translation is gone.
I will have to test what you suggested with loco ??
A side question. In /wp-content/languages/plugins/ there is super many woocommerce files with .json after the .mo and .po. Is that correct? No other plugin does this ???♂?
Forum: Plugins
In reply to: [WooCommerce] Empty cart message translationOh my. It sounds like I could do something wrong there. I will keep that and see if I will do that later on. I have got a bit of a hesitens for loco translate. Feels like it adds so many things all the time.
I changed the string in the php file and now it works!! Thank you tobi!! ?? Could I just leave it perhaps? Or will it be removed next time elementor updates or just that specific file updates?
Forum: Plugins
In reply to: [WooCommerce] Empty cart message translationThis is the code in that file:
$cart_items = WC()->cart->get_cart();
if ( empty( $cart_items ) ) { ?>
<div class=”woocommerce-mini-cart__empty-message”><?php esc_attr_e( ‘No products in the cart.’, ‘elementor-pro’ ); ?></div>
<?php } else { ?>
<div class=”elementor-menu-cart__products woocommerce-mini-cart cart woocommerce-cart-form__contents”>
<?php
do_action( ‘woocommerce_before_mini_cart_contents’ );`foreach ( $cart_items as $cart_item_key => $cart_item ) {
elementor_pro_render_mini_cart_item( $cart_item_key, $cart_item );
}do_action( ‘woocommerce_mini_cart_contents’ );
?>
</div>`Forum: Plugins
In reply to: [WooCommerce] Empty cart message translationOk, thanks. Can I try and change the string in the file directly? (wp-content/plugins/elementor-pro/modules/woocommerce/wc-templates/cart/mini-cart.php)
Forum: Plugins
In reply to: [WooCommerce] Empty cart message translationLook what I found in elementor pro folder!!
wp-content/plugins/elementor-pro/modules/woocommerce/wc-templates/cart/mini-cart.php
could this be it?
Forum: Plugins
In reply to: [WooCommerce] Empty cart message translationThank you tobi for hopping on this – you are a hero! ???♂? Jag skriver p? svenska ocks?, tusen tack, tycker det ?r sv?rt att f?rklara bra p? engelska s? fr?ga g?rna p? svenska om jag f?rklarar n?got d?ligt! ??
Yes that the downloaded translation I use. And I know its 100% translated – thats why I am so confused why the empty cart string wont be translated since all else work as it should.
I did a search on my server for woocommerce and these are the FOUR folders I find:
1) wp-content/themes/cariera/woocommerce/
2) wp-content/plugins/elementor-pro/modules/woocommerce/
3) wp-content/plugins/woocommerce/vendor/woocommerce/
4) /wp-content/plugins/woocommerce/I see know that perhaps its elementor pro that high jacks this? I use it to build my woocommerce store however not for the cart. Maybe it still takes over somehow? Can I test that perhaps some easy way? ??
Forum: Plugins
In reply to: [WooCommerce] Empty cart message translation`I deleted all woocommerce translation files and restarted it. I followd this guide: https://woocommerce.com/document/woocommerce-localization/
I downloaded and put the .mo file in wp-content/languages/woocommerce/
It again translate everything except the empty cart message (even if the .mo is 100% translated). I then checked within loco and there it says 100% translated. But when I go in to the translation in loco it prompts me to sync – and when syncing then I get aprox 1500 strings not translated to swedish. But the empty cart is translated. Also after doing this I can see on my server that woocommerce moves/adds language files to wp-content/languages/plugins/ – even tho I added the .mo in wp-content/languages/woocommerce/
It should say that the empty cart is NOT translated.
Forum: Plugins
In reply to: [WooCommerce] Empty cart message translationYes I tried to manually edit the mini-cart.php today since nothing seems to work. But its back to where I started because I did a restore.
But one thing I noticed is that loco wants to sync my manually downloaded new .mo file (downloaded from woocoomerce translation database) to a older .pot that is located here on my server:
wp-content/plugins/woocommerce/i18n/languages/the file is called woocommerce.pot
Is this correct?
- This reply was modified 2 years, 4 months ago by flamuren.
Forum: Plugins
In reply to: [WooCommerce] Empty cart message translationI deleted all woocommerce translation files and restarted it. I followd this guide: https://woocommerce.com/document/woocommerce-localization/
I downloaded and put the .mo file in wp-content/languages/woocommerce/
It again translate everything except the empty cart message (even if the .mo is 100% translated). I then checked within loco and there it says 100% translated. But when I go in to the translation in loco it prompts me to sync – and when syncing then I get aprox 1500 strings not translated to swedish. But the empty cart is translated. Also after doing this I can see on my server that woocommerce moves/adds language files to wp-content/languages/plugins/ – even tho I added the .mo in wp-content/languages/woocommerce/
No idea if its supposed to behave like this. I thought I share the process to see what you think.
Forum: Plugins
In reply to: [WooCommerce] Empty cart message translationSo the memory size makes the string not translate? I will ask the server provider ??
I did some digging. I found the po file for woocommerce on the server and it says this on the only place it has the string in there:
#: templates/cart/mini-cart.php:92
msgctxt “Inga produkter i varukorgen.”
msgid “No products in the cart.”
msgstr “”
____________Please note there it has Swedish already. Isnt that strange?
Also the file where the string is found in loco translate is located here:
plugins/woocommerce/templates/cart/mini-cart.php:92
_____________Is this correct?
Forum: Plugins
In reply to: [WooCommerce] Empty cart message translationThank you – yes I tried with the string you sent also, no change. I also add and remove a item in the cart to make it update. This is a mystery. I wrote again to my theme support to ask if he has any updates on this. I gave him the code examples to see if he sees anything in there. This is way over my head so excuse me – I just copy paste what I find and what you say ??
Here is the log. I removed some small bits, let me know if something you need is missing.
### WordPress Environment ###WordPress address (URL):
Site address (URL):
WC Version: 6.5.1
REST API Version: ? 6.5.1
WC Blocks Version: ? 7.4.3
Action Scheduler Version: ? 3.4.0
Log Directory Writable: ?
WP Version: 6.0
WP Multisite: –
WP Memory Limit: 205 MB
WP Debug Mode: –
WP Cron: ?
Language: sv_SE
External object cache: –### Server Environment ###
Server Info: Apache
PHP Version: 8.0.20
PHP Post Max Size: 256 MB
PHP Time Limit: 300
PHP Max Input Vars: 5000
cURL Version: 7.68.0
OpenSSL/1.1.1fSUHOSIN Installed: –
MySQL Version: 10.3.35-MariaDB-1:10.3.35+maria~focal
Max Upload Size: 256 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ?
DOMDocument: ?
GZip: ?
Multibyte String: ?
Remote Post: ?
Remote Get: ?### Database ###
WC Database Version: 6.5.1
WC Database Prefix: www_
Total databasstorlek: 309.04MB
Datastorlek f?r databas: 302.04MB
Indexstorlek f?r databas: 7.00MB
www_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Motor InnoDB
www_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Motor InnoDB
www_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_actionscheduler_actions: Data: 0.06MB + Index: 0.11MB + Motor InnoDB
www_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Motor InnoDB
www_cariera_conversations: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_cariera_job_external_redirection: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_cariera_listing_stats_views: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_cariera_messages: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_cariera_notifications: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_commentmeta: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_comments: Data: 0.02MB + Index: 0.09MB + Motor InnoDB
www_duplicator_pro_entities: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_duplicator_pro_packages: Data: 0.06MB + Index: 0.02MB + Motor InnoDB
www_e_events: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_e_notes: Data: 0.02MB + Index: 0.17MB + Motor InnoDB
www_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Motor InnoDB
www_e_submissions: Data: 0.02MB + Index: 0.27MB + Motor InnoDB
www_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Motor InnoDB
www_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_forum_forums: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_forum_polls: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_forum_polls_options: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_forum_polls_votes: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_forum_posts: Data: 0.00MB + Index: 0.01MB + Motor MyISAM
www_forum_reactions: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_forum_reports: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_forum_topics: Data: 0.00MB + Index: 0.01MB + Motor MyISAM
www_job_manager_bookmarks: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_links: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_options: Data: 7.06MB + Index: 0.22MB + Motor InnoDB
www_pmxe_exports: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB + Motor InnoDB
www_pmxe_posts: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_postmeta: Data: 205.38MB + Index: 3.80MB + Motor InnoDB
www_posts: Data: 87.14MB + Index: 0.77MB + Motor InnoDB
www_revslider_css: Data: 0.13MB + Index: 0.02MB + Motor InnoDB
www_revslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_revslider_sliders: Data: 0.05MB + Index: 0.02MB + Motor InnoDB
www_revslider_sliders_bkp: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_revslider_slides: Data: 0.14MB + Index: 0.02MB + Motor InnoDB
www_revslider_slides_bkp: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_termmeta: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_terms: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_term_relationships: Data: 0.03MB + Index: 0.02MB + Motor InnoDB
www_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Motor InnoDB
www_usermeta: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_users: Data: 0.02MB + Index: 0.05MB + Motor InnoDB
www_wcpl_user_packages: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Motor InnoDB
www_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_wc_download_log: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Motor InnoDB
www_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Motor InnoDB
www_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Motor InnoDB
www_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wpjmpack_user_packages: Data: 0.02MB + Index: 0.00MB + Motor InnoDB### Post Type Counts ###
attachment: 178
company: 15
custom_css: 1
customize_changeset: 155
elementor_library: 16
jmfe_custom_fields: 52
job_alert: 34
job_application: 2
job_listing: 20
nav_menu_item: 76
page: 40
post: 13
product: 18
resume: 17
revision: 4216
shop_order: 2
testimonial: 4
visibility_groups: 7
wpcf7_contact_form: 5
wpjmsf_job_sections: 8
wpjmsf_res_sections: 5### Security ###
Secure connection (HTTPS): ?
Hide errors from visitors: ?### Active Plugins (25) ###
### Inactive Plugins (1) ###
WP File Manager: av mndpsingh287 – 7.1.5
### Settings ###
API Enabled: –
Force SSL: –
Currency: SEK (kr)
Currency Position: right_space
Thousand Separator:
Decimal Separator: ,
Number of Decimals: 0
Taxonomies: Product Types: company_promotion_package (company_promotion_package)
external (external)
grouped (grouped)
job_package (job_package)
job_package_subscription (job_package_subscription)
job_promotion_package (job_promotion_package)
job_visibility_package (job_visibility_package)
job_visibility_subscription (job_visibility_subscription)
resume_package (resume_package)
resume_package_subscription (resume_package_subscription)
resume_promotion_package (resume_promotion_package)
resume_visibility_package (resume_visibility_package)
resume_visibility_subscription (resume_visibility_subscription)
simple (simple)
variable (variable)Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)Connected to WooCommerce.com: –
Enforce Approved Product Download Directories: –### WC Pages ###
Butikbas: #144 – /onlinebutiken/
Varukorg: #146 – /onlinebutiken/varukorgen/
Kassan: #148 – /onlinebutiken/kassan/
Mitt konto: #150 – /kontrollpanelen/mitt-butikskonto/
Allm?nna villkor: #3102 – /om-oss/anvandaravtal/### Theme ###
### Templates ###
Overrides: cariera/woocommerce/archive-product.php
cariera/woocommerce/checkout/form-checkout.php
cariera/woocommerce/checkout/form-coupon.php
cariera/woocommerce/checkout/form-login.php
cariera/woocommerce/checkout/payment.php
cariera/woocommerce/content-single-product.php
cariera/woocommerce/product-searchform.php
cariera/woocommerce/single-product/product-image.php
cariera/woocommerce/single-product/review-meta.php
cariera/woocommerce/single-product/review.php
cariera/woocommerce/single-product.php### Action Scheduler ###
F?rdigbehandlad: 83
Oldest: 2022-05-31 14:46:27 +0200
Newest: 2022-07-01 11:03:40 +0200### Status report information ###
Generated at: 2022-07-01 11:55:31 +02:00
`Forum: Plugins
In reply to: [WooCommerce] Empty cart message translationI tried the code you wrote Raif, but I see now its the exact same code I wrote is not working before. Do you have any other suggestion for a more precise code than the over all get text that could work?
Forum: Plugins
In reply to: [WooCommerce] Empty cart message translationHi Raif, thanks for the answer. Yes swedish is correct. Yeah I have the website set to swedish. Everything is translated or possible with loco translate. Except for the empty cart message. The only way I managed to translate is using the code example 3 I wrote above – all else fails. I will test your code and see what happens – many thanks ????