I have a problem with installing the Ajax attibute manager.
Can somebody help me.
I tried to install the follwing contribute: http://addons.oscomm.../info/7888/v,23
********************************************************************************
* STEP 1 *
********************************************************************************
Copy the attribute Manager Directory and all of it's contents into your admin directory.
(Your file structure should look like this /admin/attributeManager/)--> Done
********************************************************************************
* STEP 2 *
********************************************************************************
Open admin/categories.php
Find (Around line 243 on a fresh ms2.3)
tep_db_perform(TABLE_PRODUCTS, $sql_data_array, 'update', "products_id = '" . (int)$products_id . "'");
}
Below add
/** ajax Attribute Manager **/
require_once('attributeManager/includes/attributeManagerUpdateAtomic.inc.php');
/** ajax Attribute Manager end **/
Done:
tep_db_perform(TABLE_PRODUCTS, $sql_data_array, 'update', "products_id = '" . (int)$products_id . "'");
}
/** ajax Attribute Manager **/
require_once('attributeManager/includes/attributeManagerUpdateAtomic.inc.php');
/** ajax Attribute Manager end **/
Find (around line 556 on a fresh ms2.3)
<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price_gross', $pInfo->products_price, 'onkeyup="updateNet()"'); ?></td>
</tr>
< !-- ajax Attribute Manager -->
<tr>
<td colspan="2"><?php require_once( 'attributeManager/includes/attributeManagerPlaceHolder.inc.php' )?></td>
</tr>
< !-- ajax Attribute Manager end -->
Done:
< td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price_gross', $pInfo->products_price, 'onkeyup="updateNet()"'); ?></td>
</tr>
<!-- ajax Attribute Manager -->
<tr>
<td colspan="2"><?php require_once( 'attributeManager/includes/attributeManagerPlaceHolder.inc.php' )?></td>
</tr>
< !-- ajax Attribute Manager end -->
********************************************************************************
* STEP 3 *
********************************************************************************
Open admin/includes/template_top.php
Find around line 38
< script type="text/javascript" src="includes/general.js"></script>
Below add
< !-- ajax Attribute Manager -->
< ?php require_once( 'attributeManager/includes/attributeManagerHeader.inc.php' )?>
< !-- ajax Attribute Manager end -->
Done:
< script type="text/javascript" src="includes/general.js"></script>
< !-- BOF CKEditor by escri2 -->
< script type="text/javascript" src="./ckeditor/ckeditor.js"></script>
< !-- EOF CKEditor by escri2 -->
< !-- ajax Attribute Manager -->
< ?php require_once( 'attributeManager/includes/attributeManagerHeader.inc.php' )?>
< !-- ajax Attribute Manager end -->
The <body> tag is also in the same file as above. Just add the new onload as the <body> tag is empty in 2.3.1
onload="SetFocus();"
Replace With
onload="goonload();"
Maybe I didn't define body good?
// Discount Code 3.1.1 - start
if (basename($PHP_SELF) == FILENAME_DISCOUNT_CODES && isset($action) && $action == 'new') {
echo '<body onload="goonload();">';
} else {
echo '<body>';
}
// Discount Code 3.1.1 - end
?>
********************************************************************************
* STEP 4 *
********************************************************************************
In catalog/product_info.php
Find this:
$products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'");
REPLACE with this:
//<!-- ajax Attribute Manager -->
$products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "' order by pa.products_options_sort_order");
//<!-- ajax Attribute Manager end -->
Done:
//<!-- ajax Attribute Manager -->
$products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "' order by pa.products_options_sort_order");
//<!-- ajax Attribute Manager end -->
De ajax attibute manager wordt wel weergegeven in broncode:
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
< html dir="ltr" lang="nl">
< head>
< meta http-equiv="Content-Type" content="text/html; charset=utf-8">
< meta name="robots" content="noindex,nofollow">
< title>Wolmarkt.nl</title>
< base href="http://www.projectje.../catalog/admin/" />
< !--[if IE]><script type="text/javascript" src="http://www.projectjes.nl/catalog/ext/flot/excanvas.min.js"></script><![endif]-->
< link rel="stylesheet" type="text/css" href="http://www.projectje...ry-ui-1.8.6.css">
< script type="text/javascript" src="http://www.projectjes.nl/catalog/ext/jquery/jquery-1.4.2.min.js"></script>
< script type="text/javascript" src="http://www.projectjes.nl/catalog/ext/jquery/ui/jquery-ui-1.8.6.min.js"></script>
<script type="text/javascript" src="http://www.projectjes.nl/catalog/ext/jquery/ui/i18n/jquery.ui.datepicker-nl.js"></script>
< script type="text/javascript">
$.datepicker.setDefaults($.datepicker.regional['nl']);
< /script>
<script type="text/javascript" src="http://www.projectjes.nl/catalog/ext/flot/jquery.flot.js"></script>
< link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
< script type="text/javascript" src="includes/general.js"></script>
< !-- BOF CKEditor by escri2 -->
< script type="text/javascript" src="./ckeditor/ckeditor.js"></script>
< !-- EOF CKEditor by escri2 -->
< !-- ajax Attribute Manager -->
< script language="Javascript" type="text/Javascript">
var productsId='44';
var pageAction='new_product';
var sessionId='osCAdminID=07e51cb455ee76a1b6c2a2a191ed9cff';
< /script>
< script language="Javascript" type="text/Javascript" src="attributeManager/javascript/requester.js"></script>
< script language="Javascript" type="text/Javascript" src="attributeManager/javascript/alertBoxes.js"></script>
< script language="Javascript" type="text/Javascript" src="attributeManager/javascript/attributeManager.js"></script>
<link rel="stylesheet" type="text/css" href="attributeManager/css/attributeManager.css" />
< script language="Javascript" type="text/javascript">
Latest News: (loading..)
Ajax attribute manager
Started by leonsajaxpage, Feb 08 2012 03:06 PM
No replies to this topic









