AJAX Attribute Manager

install on 1.0.8.7 attribute manage tab not shown - AJAX Attribute Manager

Re: install on 1.0.8.7 attribute manage tab not shown

by Omar_one » Mon Dec 06, 2021 6:25 pm

raiwa wrote: shows that you are using version 3.4.0.
Please update to 3.4.2.
sorry, but there is no 3.4.2 there is 3.4.1, and this what I have, and its the last one updated..
that error not show any more after I delete

Code: Select all

?>
Omar_one
VIP Member
VIP Member
Posts: 481
Joined: Fri Oct 25, 2019 5:06 pm
Contact:

Re: install on 1.0.8.7 attribute manage tab not shown

by raiwa » Mon Dec 06, 2021 6:32 pm

Sorry, yes, it's version 3.4.1, i have 3.4.2 prepared for these fixes, but not uploaded yet.
However I downloaded the 3.4.1 package and in the admin/catalog hook it shows:

Code: Select all

<?php
/*

  $Id: ajaXAttribManager.php,v 3.4.1

  by @raiwa
  info@oscaddons.com
  www.oscaddons.com

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2021 Rainer Schmied

  Released under the GNU General Public License
*/

  class hook_admin_catalog_ajaxAttribManager {

    public $version = '3.4.1';

    function listen_productTab() {
      global $base_url;

      include( 'attributeManager/includes/attributeManagerPlaceHolder.inc.php' );

      $tab_title = addslashes('Attribute Manager');

      $output = <<<EOD
<script>
document.querySelector('#productTabs ul').innerHTML = document.querySelector('#productTabs ul').innerHTML + '<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#section_attribute_manager" role="tab"><i class="fas fa-language fa-fw mr-1"></i>{$tab_title}</a></li>';
</script>
EOD;

      return $output;

    }
  }
?>
There is no "listen_updateProductAction" any more. It was in 3.4.0 but has been removed in 3.4.1.

I recommend you to download again the 3.4.1 package, replace all files and start over.
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: install on 1.0.8.7 attribute manage tab not shown

by Omar_one » Mon Dec 06, 2021 6:42 pm

raiwa wrote:Sorry, yes, it's version 3.4.1, i have 3.4.2 prepared for these fixes, but not uploaded yet.
However I downloaded the 3.4.1 package and in the admin/catalog hook it shows:

Code: Select all

<?php
/*

  $Id: ajaXAttribManager.php,v 3.4.1

  by @raiwa
  info@oscaddons.com
  www.oscaddons.com

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2021 Rainer Schmied

  Released under the GNU General Public License
*/

  class hook_admin_catalog_ajaxAttribManager {

    public $version = '3.4.1';

    function listen_productTab() {
      global $base_url;

      include( 'attributeManager/includes/attributeManagerPlaceHolder.inc.php' );

      $tab_title = addslashes('Attribute Manager');

      $output = <<<EOD
<script>
document.querySelector('#productTabs ul').innerHTML = document.querySelector('#productTabs ul').innerHTML + '<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#section_attribute_manager" role="tab"><i class="fas fa-language fa-fw mr-1"></i>{$tab_title}</a></li>';
</script>
EOD;

      return $output;

    }
  }
?>
There is no "listen_updateProductAction" any more. It was in 3.4.0 but has been removed in 3.4.1.

I recommend you to download again the 3.4.1 package, replace all files and start over.
I have same (3.4.1) its just without the last ?> as I deleted
Omar_one
VIP Member
VIP Member
Posts: 481
Joined: Fri Oct 25, 2019 5:06 pm
Contact:

Re: install on 1.0.8.7 attribute manage tab not shown

by raiwa » Mon Dec 06, 2021 6:48 pm

Here the fix for the language buttons:
In: admin\attributeManager\attributeManager.php replace line 97-101 with:

Code: Select all

        if ($attributeManager->getSelectedLanaguage() == $amLanguage['id']) {
          echo '&nbsp;<button class="btn btn-info" type="button">' . $Admin->catalog_image('includes/languages/' . $amLanguage['directory'] . '/images/' . $amLanguage['image'], ['class' => 'lng mr-2'], $amLanguage['name']) . $amLanguage['name'] . '</button>';
        } else {
          echo '&nbsp;<button class="btn btn-outline-info" type="button" onclick="return amSetInterfaceLanguage(\''.$amLanguage['id'].'\');">' . $Admin->catalog_image('includes/languages/' . $amLanguage['directory'] . '/images/' . $amLanguage['image'], ['class' => 'lng mr-2'], $amLanguage['name']) . $amLanguage['name'] . '</button>';
        }
PLease confirm and I'll upload all fixes tomorrow
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: install on 1.0.8.7 attribute manage tab not shown

by raiwa » Mon Dec 06, 2021 7:00 pm

Omar_one wrote:
I have same (3.4.1) its just without the last ?> as I deleted
The errors say:
listen_productActionSave
and
listen_updateProductAction

I searched my complete test shop and the downloaded package, there is nothing like this.
You may have still an old hook somewhere in your shop.

Please try also a new installation in a clean unmodified store.
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: install on 1.0.8.7 attribute manage tab not shown

by Omar_one » Mon Dec 06, 2021 7:01 pm

raiwa wrote:Here the fix for the language buttons:
In: admin\attributeManager\attributeManager.php replace line 97-101 with:

Code: Select all

        if ($attributeManager->getSelectedLanaguage() == $amLanguage['id']) {
          echo '&nbsp;<button class="btn btn-info" type="button">' . $Admin->catalog_image('includes/languages/' . $amLanguage['directory'] . '/images/' . $amLanguage['image'], ['class' => 'lng mr-2'], $amLanguage['name']) . $amLanguage['name'] . '</button>';
        } else {
          echo '&nbsp;<button class="btn btn-outline-info" type="button" onclick="return amSetInterfaceLanguage(\''.$amLanguage['id'].'\');">' . $Admin->catalog_image('includes/languages/' . $amLanguage['directory'] . '/images/' . $amLanguage['image'], ['class' => 'lng mr-2'], $amLanguage['name']) . $amLanguage['name'] . '</button>';
        }
PLease confirm and I'll upload all fixes tomorrow
yes, this fixed the language buttons
Thank you
Omar_one
VIP Member
VIP Member
Posts: 481
Joined: Fri Oct 25, 2019 5:06 pm
Contact:

Re: install on 1.0.8.7 attribute manage tab not shown

by raiwa » Tue Dec 07, 2021 9:42 am

Uploaded version 3.4.2 with the above fixes.
Thank you very much Omar for reporting and testing.
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: install on 1.0.8.7 attribute manage tab not shown

by Omar_one » Tue Dec 07, 2021 12:41 pm

raiwa wrote:Uploaded version 3.4.2 with the above fixes.
Thank you very much Omar for reporting and testing.
You are welcome .. Thank you for your work
BTW , is there support for QtPro on ajax attribute manager?
Omar_one
VIP Member
VIP Member
Posts: 481
Joined: Fri Oct 25, 2019 5:06 pm
Contact:

Re: install on 1.0.8.7 attribute manage tab not shown

by raiwa » Tue Dec 07, 2021 12:44 pm

It has been removed. There is no need any more. Qtpro has it’s own tab beside the attribute manager tab.
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: install on 1.0.8.7 attribute manage tab not shown

by Omar_one » Tue Dec 07, 2021 12:51 pm

OK ,, I will check it out when Qtpro updated, I am not sure if it will work on the phoenix,,
maybe I will try it out today
Omar_one
VIP Member
VIP Member
Posts: 481
Joined: Fri Oct 25, 2019 5:06 pm
Contact: