Slim Checkout

Adding a new Template how? - Slim Checkout

Adding a new Template how?

by plamastus » Thu Apr 29, 2021 10:18 am

Hi,

Phoenix 1.0.8.0

I bought S0506 Template...After installation now I have the following constant error_log:
28-Apr-2021 15:07:37 America/New_York] PHP Notice: Undefined variable: module_group_prefix in /home/lamastus/public_html/includes/system/override/slim_checkout/osc_template.php on line 186
[28-Apr-2021 15:07:37 America/New_York] PHP Notice: Undefined variable: module_group_prefix in /home/lamastus/public_html/includes/system/override/slim_checkout/osc_template.php on line 199
[28-Apr-2021 15:07:38 America/New_York] PHP Notice: Undefined variable: module_group_prefix in /home/lamastus/public_html/includes/system/override/slim_checkout/osc_template.php on line 186
[28-Apr-2021 15:07:38 America/New_York] PHP Notice: Undefined variable: module_group_prefix in /home/lamastus/public_html/includes/system/override/slim_checkout/osc_template.php on line 199
Any ideas on how do I use them together to avoid the warning?

They work fine is just the warning.

Thanks for the help,
patrick
plamastus
VIP Member
VIP Member
Posts: 83
Joined: Fri Mar 12, 2021 2:09 am
Contact:

Re: Adding a new Template how?

by raiwa » Thu Apr 29, 2021 12:34 pm

I do not have the Gustavo theme to check, but try the following in:
includes/system/override/slim_checkout/osc_template.php
change line 178-184:

Code: Select all

        if (strtok($module, '_') == 'bm') {
          $module_group_prefix = strtok($module, '_');
        } elseif ((strpos($module, 'cm_footer_extra') !== false)) {
          $module_group_prefix = 'footer_extra';
        } elseif (strtok($module, '_') == 'cm') {
          $module_group_prefix = (strtok($module, '_'.strtok($module, '_')));
        }
to:

Code: Select all

        if (strtok($module, '_') == 'bm') {
          $module_group_prefix = strtok($module, '_');
        } elseif ((strpos($module, 'cm_footer_extra') !== false)) {
          $module_group_prefix = 'footer_extra';
        } elseif (strtok($module, '_') == 'cm') {
          $module_group_prefix = (strtok($module, '_'.strtok($module, '_')));
        } else {
          $module_group_prefix = '';
        }
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: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: Adding a new Template how?

by plamastus » Thu Apr 29, 2021 12:54 pm

You are awesome., it works!!!

Thanks,
patrick
plamastus
VIP Member
VIP Member
Posts: 83
Joined: Fri Mar 12, 2021 2:09 am
Contact: