PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

plugin writes attributes into wp_term_relationships instead of wp_postmeta

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

tested on WC 4.1.1 and then on 4.3.0

WOOBE 2.0.6


so, I have created a bunch of global attributes in Products - Attributes menu. And added them to selected products via WOOBE. All seems fine BUT

$product->get_attributes();

returns empty values.

a product with manually added attributes https://take.ms/Kp0a4d

Hello

Paste your license key here - https://c2n.me/43SC6rb.png -> https://c2n.me/42HBIt7.png

plugin writes attributes into wp_term_relationships instead of wp_postmeta -  It is right. Attributes are taxonomies.

 

Хотілось писати англійською, щоб більше користувачів бачили, але забагато займе часу( Тому:

Після створення атрибутів  за допомогою плагіна WOOBE (масове створення) на сторінці редагування кожного товару їх можна побачити. Також вони висвітлюються на фронт-енді.

Але якщо ми застосуємо функцію $product->get_attributes() або get_post_meta( get_the_ID(), '_product_attributes' ), то отрумеємо порожні значення цих атрибутів. За допомогою якої функції, можна отримати дані атрибутів, які були створені за допомогою вашого плагіну  версії 2.0.6 ?

Здравствуйте

Этот  плагин использует  стандартную  функцию для  добавления атрибутов  - https://wp-kama.ru/function/WC_Product::set_attributes

И если  все  корректно  отображается   на  фронт-энде    тогда  проблема  на  вашей  стороне. Думаю    Вы  делаете  что-то не корректно в  коде.

Для  теста  можете  добавить  это поле  и  проверить  продукты  - https://c2n.me/48u56Wb.png