Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Attribute Manager


amanz

Recommended Posts

:P I installed ATTRIBUTE MANAGER in admin as per instructions.

I then added script to the catalog.php file as instructed:

Install Instructions

Note: if you are upgrading from a previous version you must OVERWRITE all files in the attributeManager directory. The best way is to delete the whole folder then add the new one.

 

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/)

 

2) Open admin/categories.php

 

Find (Around line 243 on a fresh ms2)

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 **/

 

 

 

Find (Around line 341 on a fresh ms2)

<script language="javascript" src="includes/general.js"></script>

 

Below add

<!-- AJAX Attribute Manager -->

<?php require_once( 'attributeManager/includes/attributeManagerHeader.inc.php' )?>

<!-- AJAX Attribute Manager end -->

 

 

 

Find (Around line 346 on a fresh ms2)

onload="SetFocus();"

 

Replace With

onload="goOnLoad();"

 

 

 

Find (around line 530 on a fresh ms2)

<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>

 

Below add

<!-- AJAX Attribute Manager -->

<tr>

<td colspan="2"><?php require_once( 'attributeManager/includes/attributeManagerPlaceHolder.inc.php' )?></td>

</tr>

<!-- AJAX Attribute Manager end -->

 

 

Finished !

---> Go and add or edit a product and you should see the new attribute manager below the price.

 

Now when I try to open catalog/products in the OSC admin (backend) I get an error message:

 

Warning: main(attributeManager/includes/attributeManagerHeader.inc.php) [function.main]: failed to open stream: No such file or directory in /home/content/t/e/r/terranova/html/OSC/catalog/admin/categories.php on line 345

 

Fatal error: main() [function.require]: Failed opening required 'attributeManager/includes/attributeManagerHeader.inc.php' (include_path='.:/usr/local/lib/php') in /home/content/t/e/r/terranova/html/OSC/catalog/admin/categories.php on line 345

 

I have double checked the changes I made and they are the same as instructed. I now can't add new products to my catalog! Help!!

 

How do I undo these changes? I'd like to restore catalog.php back to original.

 

Many thanks for any suggestions.

 

Alan

Link to comment
Share on other sites

you can (if no other add ons exist) upload a default page from a downloaded application of osCommerce 

 

Nic

 

Thanks Nic,

 

What would be the file name? I have a copy of OSC on my laptop. I looked for catagories.php in this copy but it does not exist. If I can find an original catagories.php file, I can replace the defected copy. I had backed up my data prior to this change, but I can't find this file in the back-up!

 

Alan

Link to comment
Share on other sites

Thanks Nic,

 

What would be the file name? I have a copy of OSC on my laptop. I looked for catagories.php in this copy but it does not exist. If I can find an original catagories.php file, I can replace the defected copy. I had backed up my data prior to this change, but I can't find this file in the back-up!

 

Alan

 

Question: Will I lose my product image files that I have uploaded (hundreds!) if I install a fresh copy of OSC?

 

Adding Attribute Manager has corrupted the catagories.php file

 

Many thanks

Link to comment
Share on other sites

  • 11 months later...

I'm running 2.3.1 Oscommerce and after several searches I can't even find the attribute manager folder!! :blush:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...