I
I
Ilia Malashko2020-06-01 17:34:15
WordPress
Ilia Malashko, 2020-06-01 17:34:15

How to edit WooCommerce?

Hello.

I am good with programming, but I am almost not familiar with CMS Wordpress.

They asked to deal with the problem, when placing an order, the left mail falls into the admin panel, and accordingly the client does not receive a letter about the order, since the email is not his.
For example: when ordering, the client specifies [email protected], and in the order, the client's mail is written [email protected] (conditional addresses).

I didn’t find a solution in the settings, I want to rustle in the code, but I don’t know where to go.
On the /checkout/ page, the [woocommerce_checkout] function is called, I go into the theme editing in the functions.php file, there is no such function there.

Where to look for a problem?
How to customize WooCommerce but then update it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Orkhan Hasanli, 2020-06-01
@azerphoenix

when placing an order, the left mail falls in the admin panel,

this should not be. Maybe someone before you customized WC and screwed it up somewhere?
WooCommerce customization can be in other files, not just functions.php
If we are talking about customizing templates, then copy the content from the /wp-content/plugins/woocommerce/templates directory to the /YOUR_THEMA/woocommerce directory
But the left mail should not be a priori . Especially in templates.

A
AlexGR07, 2020-06-01
@AlexGR07

In which field is the wrong mail? It is not clear what the problem is - an email box from which mail is leaving.
1. Check the fields of the WordPress itself (through the admin panel) - the mail from which letters usually "come" is indicated there.
2. In the Wookomers section (via the admin panel) - there is another setting, 5ed53a2100b16342630191.png there is also a lot to do with emails.
As for the moment of checking and writing the contents of the order (through the code) - see the "hooks" that are called when /checkout/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question