businesscloudinc
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] ‘Add fee’ breaks websiteThanks for the resources! I got a recommendation on Slack to make the following change and that resolved the issue:
if( is_object( $order_item ) && method_exists( $order_item, 'get_name' ) ) { $string = str_replace( '{subscription_name}', $order_item->get_name(), $string ); }Nevermind, I fixed that as well! Including the solution, if somebody else is having this issue – I had to add another line for the $address_formats so I have $address_formats[‘default’] and $address_formats[‘CA’] to make it work for both paid and free orders.
Would you know why or have you run into an issue where the code in functions.php wouldn’t always execute? I noticed during my testing that it sometimes works (with free orders) and shows the modified address format but sometimes it reverts back to the default (paid orders).
- This reply was modified 5 years, 10 months ago by businesscloudinc.
I figured it out. I had to uncheck the “Display in Emails” and “Display in Order Detail Pages” and the duplication was gone. For some reason tho, when I make a change in functions.php the code stops working until I modify it slightly and save again.
I also figured out the labels thing.
Forum: Plugins
In reply to: [WooCommerce] Order Details Missing after placing order in Checkout pageThis code seems to have fixed it for me > https://stackoverflow.com/questions/47336029/show-customer-details-on-woocommerce-thankyou-page-even-if-not-registered
It doesn’t show the email address in the top grey bar but at least the information shows under the order details.
Is there a particular reason why this information only shows for registered users?
Hi Damien,
I translated the text string by string. I couldn’t select entire blocks to translate, unfortunately. I modified the hyperlinks a bit so the articles would be part of the phrase that was being hyperlinked. That allowed me to use the French Le/La in the translation.
- This reply was modified 5 years, 11 months ago by businesscloudinc.
After some testing, it looks like the <translate-press data-trp-translate-id=”###” data-trp-node-group=”String List”> only shows while I am translating the form and submit it. If Translatepress is not active, the subject line comes out normal in both English and French.
Yes, I am still seeing this issue.
Seemed to work but as soon as I switched to French and back to English, the issue came back.
Would that delete anything that’s already been translated on the site?
Thank you! I tried disabling the cache plugin but the admin bar still doesn’t change back to English. It’s in English on the backend, but on the frontend, some buttons are in French and some are in English.
Also, for some reason, my WordPress admin bar doesn’t want to change back to English. It stays in French no matter what language I have selected > https://drive.google.com/file/d/1iU-RG7ZVp69cvSf-xCrJYCsniGo0G4AS/view?usp=sharing
Hmm, I tried to add the class but I still don’t get the option to translate the entire block.
Sorry, one thing I don’t see when translating is the merge button to translate the whole block. Do you know why that would be?
- This reply was modified 6 years, 4 months ago by businesscloudinc.
The checkbox for “Disable dynamic translation” is not selected. I hadn’t checked before but I went through the string selector and it looks like things pop-up when I click on markers so I can enter the translation.
Thank you for your help!