Wholesale Lite

Customers Details admin Page Issue - Wholesale Lite

Customers Details admin Page Issue

by mhsuffolk » Tue Mar 30, 2021 12:05 pm

1.0.8.1 PHP 7.4
When editing Customers Details I get this. I cannot find any missing files or files in the wrong directory. Should there be a full stop after the opening bracket in the second warning?

Warning: Use of undefined constant MODULE_CUSTOMER_DATA_COMPANY_TEMPLATE - assumed 'MODULE_CUSTOMER_DATA_COMPANY_TEMPLATE' (this will throw an Error in a future version of PHP) in D:\Phoenix_1_0_8_0\htdocs\includes\modules\customer_data\cd_wholesale.php on line 87

Warning: include(./templates/tpl_MODULE_CUSTOMER_DATA_COMPANY_TEMPLATE): failed to open stream: No such file or directory in D:\Phoenix_1_0_8_0\htdocs\includes\modules\customer_data\cd_wholesale.php on line 87

Warning: include(): Failed opening './templates/tpl_MODULE_CUSTOMER_DATA_COMPANY_TEMPLATE' for inclusion (include_path='D:\Phoenix_1_0_8_0\php\PEAR') in D:\Phoenix_1_0_8_0\htdocs\includes\modules\customer_data\cd_wholesale.php on line 87
User avatar
mhsuffolk
Contributor
Posts: 199
Joined: Sat Oct 26, 2019 9:13 am
Phoenix Version: v1.1.0.6
Contact:

Re: Customers Details admin Page Issue

by raiwa » Tue Mar 30, 2021 12:23 pm

Hi,

The Company module is required, see instructions:
. Mandatory base installation:
.............................
Install Customer Data Module in admin => Modules => Customer Data => Wholesale
The Company module is also required in this section.
Customer Wholesale selection menu is shown in Company section.
Meanwhile, please do not test and report errors with Phoneix 1.0.8.1.
I know that it will break the addon (and other addons).
Wholesale Lite and my other addons will not be updated until the next stable release, probably Phoenix 1.0.9.0.
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: Customers Details admin Page Issue

by mhsuffolk » Tue Mar 30, 2021 1:30 pm

Sorry for testing on 1.0.8.1. However all appears fine on that version now thank you.
User avatar
mhsuffolk
Contributor
Posts: 199
Joined: Sat Oct 26, 2019 9:13 am
Phoenix Version: v1.1.0.6
Contact:

Re: Customers Details admin Page Issue

by mhsuffolk » Mon Apr 12, 2021 1:53 pm

1.0.8.0 PHP 7.4
Wholesale Light 4.5.0 AND Ship in Cart 5.6

When customer is logged in all is well.

When customer is not logged in I get in shopping cart

Notice: Undefined index: customer_id in D:\Phoenix_1_0_8_0\htdocs\includes\system\override\wholesale\shipping.php on line 29

The Ship in Cart calculations are correct.

If I turn off Ship in Cart error disappears.
User avatar
mhsuffolk
Contributor
Posts: 199
Joined: Sat Oct 26, 2019 9:13 am
Phoenix Version: v1.1.0.6
Contact:

Re: Customers Details admin Page Issue

by raiwa » Mon Apr 12, 2021 2:04 pm

Thanks, I'll address this in the next update.
Meanwhile to fix it, you can modify line 29 to:

Code: Select all

        if ( isset($_SESSION['customer_id']) && defined('MODULE_STORE_WHOLESALE_STATUS') && MODULE_STORE_WHOLESALE_STATUS == 'True' ) {
ANyway it's "only" a notice error which should not prevent the module to work correct.
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: Customers Details admin Page Issue

by mhsuffolk » Mon Apr 12, 2021 6:24 pm

Thank you, it works but needs another } before Line 80
User avatar
mhsuffolk
Contributor
Posts: 199
Joined: Sat Oct 26, 2019 9:13 am
Phoenix Version: v1.1.0.6
Contact:

Re: Customers Details admin Page Issue

by raiwa » Mon Apr 12, 2021 8:15 pm

You have to replace the existing line, not add it as a new line!
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: Customers Details admin Page Issue

by mhsuffolk » Tue Apr 13, 2021 6:31 am

Ah, sorted it now. I now realise that your replacement line is for Line 28.

Thank you again
User avatar
mhsuffolk
Contributor
Posts: 199
Joined: Sat Oct 26, 2019 9:13 am
Phoenix Version: v1.1.0.6
Contact:

Re: Customers Details admin Page Issue

by raiwa » Tue Apr 13, 2021 7:03 am

Yes, sorry.
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: