WooCommerce PayPal internationalization issue - wordpress

I am setting up a WooCommerce site and it's supposed to be in German.
I have a problem with one translation.
On the checkout page there is the PayPal payment option and there is a div like:
<div class="payment_box payment_method_paypal">
<p>Bezahlen mit Paypal; Sie können mit Kreditkarte bezahlen auch wen Sie keinen PayPal Account besitzen.</p>
</div>
The ; is ugly and the wen should be wenn. But I didn't find this sentence in any file (.po, .mo, ...) of my WordPress installation. Does this sentence get loaded directly from PayPal somehow? How could I correct it?

Embarrassing... I totally missed that this string can be set in the WooCommerce PayPal settings. :) The wrong default string should be fixed though by the developers.

Related

Problem with woocommerce checkout and Paypal - buy button does not redirect to paypal as it doesnt change the form action

I am using paypal plus with woocommerce as you can see here: https://www.pro-hypnose.de
The paypal display is working so far. But when I click the buy button (here "jetzt kaufen" it does not redirect to paypal. It leads to a summary of the products without adress information. An email is being sent with a buy now link.
The form action remains still as
<form name="checkout" method="post" class="checkout woocommerce-checkout" action="https://www.pro-hypnose.de/checkout/" enctype="multipart/form-data">
The console says the following: Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf inline blockiert ("script-src"). in English: the configuration has blocked a resource
Shouldn't it changes to a paypal destination? What can be the reason for it? I also checked if there is a double form tag. It isn't.

Wordpress Polylang Translation of “Read More” and “Submit” button

I'm using Polylang on my clients website. They now have a blog, but the read more and submit button (for adding comments) are not translated into German. Also the title of the comment section is: Schreibe einen Kommentar, but my clients wants to change this into: Schreiben Sie einen Kommentar. Does anyone know how to do this?
I found this piece of code for the read more button on a older StackOVerflow topic:
function modify_read_more_link() {
return '' . pll__('read more') . '';
}
add_filter( 'the_content_more_link', 'modify_read_more_link' );
pll_register_string('my-theme', 'read more');
It is showing up in the String Translations, but the translation is not working on the website. I'm sure I'm doing something wrong since I know very little JavaScript. I'm really stuck so I hope someone on here can help me out.
Thank you in advance!
Kind regards,
Michelle
try
__('read more')
or
_e('read more')

Basic PHP, guidance needed for Woocommerce customer email

I know this is basic PHP, but I am just starting off. I'm editing the Woocommerce email template for customer confirmation emails /woocommerce/emails/customer-processing-order.php
I need to add a link which pulls the customer email and products ordered into the URL. This is where I am up to:
<div style="text-align:center">
Click here
</div>
This is not working for me, but I appreciate my basic PHP knowledge is poor so I've probably made a pretty fundamental mistake here. How can I reference customers email and products ordered into a URL string? Thanks.
First of all, it is a wrong practice to update the email templates located at /woocommerce/emails/ directory directly.
If you need to make customization for woocommerce email templates, you need to copy, the file
from /woocommerce/emails/customer-processing-order.php to
content/themes/yourtheme/woocommerce/emails/customer-processing-order.php .
Refer https://docs.woocommerce.com/document/template-structure/ for details.
For the rest, I as stated by #Jignesh , just pass order id , in the url and then in the template, you may get order details using
$order = wc_get_order( $order_id );

Changed wordpress template by url Parameter

Where wordpress determinds the template which is loaded? Ich want to changed the template Depended on a url Parameter. Also a hacky solution is welcomed
I think you need following: https://wordpress.stackexchange.com/a/100858 , https://stackoverflow.com/a/24772581/3475869
But you need to do more detailed research before ask.

How come my email link in drupal footer message doesn't work?

This is what I have typed in the footer message section from the site configuration, sight information page:
Copyright Sage 2010 | Contact Us: < a ="mailto:admin#mysite.org" >admin#mysite.org< / a> | < a="www.mysite.org/contactoptions" >other contact options< / a>
However, when i click on the links nothing happens. I was told all I need to do is set input format to 'Full HTML' in drupal to make that work. But it still doesn't work.
You appear to be missing the 'href' attribute. Also, lose the spaces. It should be:
Contact Us: admin#mysite.org
Something similar works fine on my drupal site.

Resources