sorry, but there is no 3.4.2 there is 3.4.1, and this what I have, and its the last one updated..raiwa wrote: shows that you are using version 3.4.0.
Please update to 3.4.2.
that error not show any more after I delete
Code: Select all
?>
sorry, but there is no 3.4.2 there is 3.4.1, and this what I have, and its the last one updated..raiwa wrote: shows that you are using version 3.4.0.
Please update to 3.4.2.
Code: Select all
?>
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;
}
}
?>
I have same (3.4.1) its just without the last ?> as I deletedraiwa 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:There is no "listen_updateProductAction" any more. It was in 3.4.0 but has been removed in 3.4.1.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; } } ?>
I recommend you to download again the 3.4.1 package, replace all files and start over.
Code: Select all
if ($attributeManager->getSelectedLanaguage() == $amLanguage['id']) {
echo ' <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 ' <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>';
}
The errors say:Omar_one wrote:
I have same (3.4.1) its just without the last ?> as I deleted
yes, this fixed the language buttonsraiwa wrote:Here the fix for the language buttons:
In: admin\attributeManager\attributeManager.php replace line 97-101 with:PLease confirm and I'll upload all fixes tomorrowCode: Select all
if ($attributeManager->getSelectedLanaguage() == $amLanguage['id']) { echo ' <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 ' <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>'; }
You are welcome .. Thank you for your workraiwa wrote:Uploaded version 3.4.2 with the above fixes.
Thank you very much Omar for reporting and testing.