QTpro

Attributes stock tab - QTpro

Attributes stock tab

by GdNico » Thu Dec 29, 2022 8:14 pm

hello
a problem appears when we have for the same product two attributes that have similar codes:
for my example, I had a product with options 1-11 and 1-1 (in that order in the database and without sort_order in the table)...

the code in the catQtPro.php file (in xx/includes/hooks/admin/catalog line 187)

Code: Select all

                        if ( strpos($test_string, $rec['products_stock_attributes'] ) === false ) {
does not allow to differentiate these two options and therefore it did not display the 1-1...
to correct, I put:

Code: Select all

                        if ( strpos($test_string, $rec['products_stock_attributes'] . ';') === false ) {
Thank you for this wonderful module.
(it was just to let you know for one of your next releases)
GdNico
Posts: 11
Joined: Tue Jul 20, 2021 8:43 pm
Contact:

Re: Attributes stock tab

by raiwa » Fri Dec 30, 2022 1:01 pm

Thank you very much
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1211
Joined: Sat Dec 21, 2019 8:08 am
Contact: