R
R
rls-fl2020-05-12 14:46:45
WordPress
rls-fl, 2020-05-12 14:46:45

How to change product name when adding it (WordPress + WooCommerce)?

Good afternoon!

There is an online store WordPress + WooCommerce.
When adding a product to the store database, it is necessary to add the name of the section of this product to the name of the product.
For example:
There is a GOODS. It is located in the section SECTION.
When a PRODUCT is added, its name changes to "PRODUCT for SECTION".
In this modified form, it is entered into the database.

How it is better to implement and where to look?

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dubart, 2020-05-15
@dubart

Wouldn't it be easier to display the desired name on the front, which will consist of the product name + " for " + section name?

R
rls-fl, 2020-05-15
@rls-fl

It would be easier, but the database is also used for other purposes, so you need to put the changed name in the database

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question