This topic has 17 replies, 3 voices, and was last updated 10 years, 4 months ago ago by Eva Kemp
Hello,
I can’t figure out where to configure the address to be displayed under the “pay by check” option. Right now, the shop only shows a placeholder text, but i can’t find a menu to configure it at.
Hello,
Could you please show us screenshot of what you exactly want to configure?
Regards,
Jack Richardson
This:
Hello,
You can edit this text in wp-content/plugins/woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php file (line number 68).
Regards,
Jack Richardson
Hmm, thanks for the info. Would be a good idea to make this configurable through the theme settings to be honest, editing files is not all that easy for everyone that doesn’t have a tech-savy person to take care of it… 😉
Hello,
You’re welcome!
It is better to contact WooCommerce plugin developers concerning implementation this feature.
Regards,
Jack Richardson
Yes, i suppose it’s not really related to your theme, seeing the name/location of the file concerned…
Anyways, i’ll check it out when i am back on my main pc, don’t have the ftp details on this pc so i can’t really edit it as it is 🙂
Okay!
If you have any troubles with text editing don’t hesitate to contact us.
Regards,
Jack Richardson
NP, i am a systems and networks engineer myself, editing a bit of php is not that big a deal, even tho i am not a developper or do coding. Still, the site/shop is my mother’s, i am helping her out with all the technical stuff. But yeah, as i said, this kinda manipulation remains too complicated for the average user.
Too bad that WC support is impossible to reach really, unless you buy their modules :S
Hello again,
I tried modifying the file as follows:
…
'description' => array(
'title' => __( 'Description', 'woocommerce' ),
'type' => 'textarea',
'description' => __( 'Merci d’envoyer votre chèque à l’adresse suivante: Dobrinka Grillet-Aubert, 4 rue Santos Dumont, 44300 Nantes, France.', 'woocommerce' ),
'default' => __( 'Merci d’envoyer votre chèque à l’adresse suivante: Dobrinka Grillet-Aubert, 4 rue Santos Dumont, 44300 Nantes, France', 'woocommerce' ),
'desc_tip' => true,
),
…
However it does nothing. I also tried searching in our WPML for the original phrase in english, to verify that we didn’t translate it badly by mistake when we first started the shop, but i can’t find that particular string. What’s weird is that for some reason the site shows some sort of a french translation of the string, but with placeholders for “store name” “store address” etc. I tried looking up the individual strings for the placeholders too, but i can’t find them in our translations. I can’t figure out where this text is getting it’s values from…
Hello,
Are you unable to translate some words to your language or some aren’t translated in wpml for both languages?
Please provide us with FTP and wp-admin panel credentials in Private Content.
Regards,
Eva Kemp.
Hello,
The problem is that the current translation of the text-box i showed in a previous post contains placeholder words such as “shop address”, “shop name” etc, that (i suppose) get their actual values from somewhere, but on our site they remain a placeholder text.
The text itself is somehow translated (the text around the placeholders, as well as the placeholders themselves), but i can’t find the translation in WPML or the theme MO file. I was trying to find that, to make sure that by misstake i didn’t translate the placeholders as a text and as such render them impossible to change the string value. However, i can’t find these strings anywhere in WPML or the theme translation.
What we want is to get the site to show the actual address, name etc postal information to which the clients should send their checks to. I tried editing the file you pointed me to, modifying the default text etc, but after modification and saving the file, the actual shown values on the live site don’t change.
Hello,
Sorry, but you have to contact Woocommerce support team regarding your question as this configuration is related to them.
Regards,
Eva Kemp.
Is there a way to at least not show this field?
Hello,
Try to use this code in custom.css file:
.payment_box {
display: none;
}
or
.payment_box {
display: none !important;
}
Here you can find a tutorial how to create custom.css.
Regards,
Eva Kemp.
Thanks, the second bit worked.
It’s a bit stupid that this can’t be configured any better, but i understand it’s not your fault.
Thanks for the help!
You’re welcome.
Enjoy your work!
Regards,
Eva Kemp.
You must be logged in to reply to this topic.Log in/Sign up