J
J
jeka-32021-05-26 12:57:16
MODX
jeka-3, 2021-05-26 12:57:16

How to display a list of product options in the tv field?

How to display a list of product options in the tv field?
like @SELECT concat(`pagetitle`, ' (', `id`, ')') , `id` FROM `modx_site_content` where `class_key` = 'msProduct' and `deleted` = 0 and `published` = 1
in this example, the list of product names is entered, and the output is Id, and I need to get a list of product options and the output is the option key

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2021-06-03
@ig0r74

You need to select modx_ms2_product_options from another table :
https://github.com/Ibochkarev/miniShop2/blob/maste...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question