QTpro

Phoenix 1.1.0.0.+ - QTpro

Phoenix 1.1.0.0.+

by Omar_one » Wed Apr 16, 2025 7:54 pm

Hello Rainer,
thank you for updating the QTpro addon,
the QTPRO Options not show on the product info page and there is PHP Warning and Undefined array key in the error file

Code: Select all

PHP Warning:  Undefined array key "track_stock" in /home/XXXX/public_html/shop/includes/system/override/qtpro/pad_base.php on line 233
Undefined array key "track_stock" in /home/XXXX/public_html/shop/includes/system/override/qtpro/pad_base.php on line 234
so I changed the lines 233-235
from this

Code: Select all

 if ( ($build_stocked && $attribute['track_stock'] == '1') ||
             ($build_nonstocked && $attribute['track_stock'] == '0') ||
             ($build_stocked && $build_nonstocked) ) {
to this

Code: Select all

 if ( ($build_stocked && ($attribute['track_stock'] ?? '0') == '1') ||
     ($build_nonstocked && ($attribute['track_stock'] ?? '0') == '0') ||
     ($build_stocked && $build_nonstocked) ) {
Now the QTPRO Options show

on the QTPro Documentation file it's say copy the file
* templates/override/includes/hooks/shop/siteWide/qtPro.php
to
* templates/YOUR SELECTED TEMPLATE/includes/hooks/shop/siteWide/qtPro.php
but there is no qtPro.php file there .. the file in includes/hooks/shop/siteWide/qtPro.php

Br
Omar
Omar_one
Senior Contributor
Posts: 677
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Contact:

Re: Phoenix 1.1.0.0.+

by raiwa » Thu Apr 17, 2025 7:28 am

I can't reproduce that error. Make sure you deleted the old file:
templates\override\includes\hooks\shop\siteWide\qtPro.php
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
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Phoenix 1.1.0.0.+

by raiwa » Fri May 02, 2025 9:10 am

Hi,
Thank you for your report.
Please update in:
includes\hooks\admin\siteWide\swQtPro.php line 55 to:

Code: Select all

      if (!file_exists(DIR_FS_CATALOG . '/includes/hooks/shop/siteWide/qtPro.php')) {
I'll upload an update with the fix.

Best wishes
Rainer
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
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Phoenix 1.1.0.0.+

by radhavallabh » Fri May 02, 2025 9:10 am

Hi;
On afresh install of 1.1.0.2 I get below message in yellow on categories/product page in admin-
QTPro requires the QTPro Shop Sitewide hook "qtPro.php" to be in place and the "Override" template to be selected. QtPro will not work correct until the hook has been copied to "templates/[YOUR SELECTED TEMPLATE]/includes/hooks/shop/siteWide/".

Kindly help with a fix pls
Thank you in advance;
Warm Regds./
radhavallabh
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Contact:

Re: Phoenix 1.1.0.0.+

by raiwa » Fri May 02, 2025 9:23 am

Uploaded version 8.0r2 with the fix.
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
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Phoenix 1.1.0.0.+

by radhavallabh » Fri May 02, 2025 9:56 am

raiwa wrote:Uploaded version 8.0r2 with the fix.
Thank you dear;
Regds./
radhavallabh
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Contact: