Jump to content
Nimmit

AJAX Attribute Manager support

Recommended Posts

 

Weight support needs additional installation of the correspondant addon. I never used this.

see config class:

    /**
         * Use More Product Weight plugin? (http://addons.oscommerce.com/info/2706) (added by RusNN)
         */
        $this->add('AM_USE_MPW', false);

Check first if everything works without any additional plugin switched on.

Also the versions you refer are for the Bootstrapped community versions.

I didn't try them on  2.3.4 standard and do not give support for them. I began to touch AJAX attrributes manager for BS COmmunity versions.

Even admin side has not changed too much, there can be issues. If you do not get it to work, try the older versions for your 2.3.4 standard store:

https://apps.oscommerce.com/dGA4a&ajax-attribute-manager-for-2-3

Share this post


Link to post
Share on other sites
On 9/30/2019 at 10:47 AM, Garret Krampe said:

it just throws up error 500 

I had to remove the package .. tried a few versions even started on fresh php code

2.8 and 2.9.5

nup .. it's broken under https

Don't get me wrong it was lovely when it was working but 

I can't debug java script

just as soon as you edit a product it crashes.

and the errors are the same despite recoding fresh php and putting new attrib directory contents.

 

Hi Folks,

got the same Error and found 

if (@mysql_get_server_info($db_link)) {

in attributeManager.php in Line 23. Changed to:

if (@mysqli_get_server_info($db_link)) {

and the Error 500 past away ;)

See Ya,

Denzel.

Share this post


Link to post
Share on other sites
24 minutes ago, Denzel said:

Hi Folks,

got the same Error and found 


if (@mysql_get_server_info($db_link)) {

in attributeManager.php in Line 23. Changed to:


if (@mysqli_get_server_info($db_link)) {

and the Error 500 past away ;)

See Ya,

Denzel.

Then you are using an outdated version.

And your fix is incorrect if you only changed the line you posted.

Since 2.9 it uses:

// Determine connection type
if (@mysqli_get_server_info($db_link)) {
  define ('AM_MYSQL_CONNECTION_TYPE', 'mysqli');
} else {
  define ('AM_MYSQL_CONNECTION_TYPE', 'mysql');
}

Not the same error like reported by @Garret Krampe

Edited by raiwa

Share this post


Link to post
Share on other sites

Maybe I run confused with the two different contribs: 

AJAX Attribute Manager for 2.3 Last updated 5 years ago 

Anyway, its only keeping this old part alive... Looks like I have to update to CE :-/

See Ya,

Denzel

Share this post


Link to post
Share on other sites
28 minutes ago, Heatherbell said:

@raiwa

Thanks again for this addon - I have just upgraded to 1.0.3.0 and sadly it has "disappeared" from view :(
Do you know a 'quick fix'?

I ignore how you updated, but if you replaced the admin/categories.php file with the new 1.0.3.0 version, you'll need to appliy again the ajax attributes manager modifications. Otherwise there may be an update required. I'll have a look when I find some time.

Share this post


Link to post
Share on other sites

I did it oposite, use the new categories.php and add the ajax attributes manager code and all works fine. You ll find it in the product specific tab.

Only thing is that the code reference for the first modification needs to be updated to hardcoded database table name:

          tep_db_perform('products', $sql_data_array, 'update', "products_id = '" . (int)$products_id . "'");
        }

instead of:

          tep_db_perform(TABLE_PRODUCTS, $sql_data_array, 'update', "products_id = '" . (int)$products_id . "'");
        }

 

Share this post


Link to post
Share on other sites

I had the same issue, after upgrading to 1.0.3.0 If you overwrite admin/includes/template_top.php make also the changes for ajax attribute manager

Share this post


Link to post
Share on other sites

I had a look and the attributes manager can be hooked in the new categories.php => no more file editing. Coming soon.

Share this post


Link to post
Share on other sites

Uploaded new package :

AJAX Attribute Manager Phoenix

with;

v 3.0.0 for Phoenix 1.0.0.0-1.0.2.x (older BS version support removed)

v3.1.0 for Phoenix 1.0.3.x

changes:

+ Updated for Phoenix 1.0.3.x compatibility
+ hooked all modifications
+ no core file modifications at all
+ removed modified files and references for older BS version

Share this post


Link to post
Share on other sites
9 hours ago, hungryfrank said:

I do not see anything when I am adding or editing a product

Which Phoenix version, which AJAX Attributes Manager Version?

Need help?  See this thread and provide the information requested.

Edited by raiwa

Share this post


Link to post
Share on other sites

hi

Installed Version: OSCOM CE Phoenix v1.0.3.0

version  3.1.0

Server Host: localhost (127.0.0.1)      Database Host: localhost (127.0.0.1)
Server OS: Darwin 18.7.0      Database: MySQL 8.0.18
Server Date: 2019-11-07 08:46:47 +0000 UTC      Database Date: 2019-11-07 12:16:47
Server Up Time: 12:16 up 2 days, 16:11, 1 user, load averages: 1.26 1.31 1.37
pixel_trans.gif
HTTP Server: Apache/2.4.34 (Unix) PHP/7.1.32
PHP Version: 7.1.32 (Zend: 3.1.0)

Share this post


Link to post
Share on other sites

Do you see the Ajax Attributes Manager Tab in admin/categories.php when you edit a product?

Share this post


Link to post
Share on other sites
20 minutes ago, raiwa said:

Do you see the Ajax Attributes Manager Tab in admin/categories.php when you edit a product?

no.  not editing and not adding   with or without battributes

 

Edited by hungryfrank

Share this post


Link to post
Share on other sites

Can you please post a screenshot of your admin/categories.php when editing a product.

Please make also sure:

- that you have copied both hooks to:
includes/hooks/admin/siteWide/
and:
includes/hooks/admin/categories/

- that you have correct updated your store:
hook registers and calls in: admin/application_top.php, template_top.php, templatee_bottom.php and categories.php

Edited by raiwa

Share this post


Link to post
Share on other sites

relevant are the tabs at the top. Attributes manager has its own tab now

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×