Jump to content
Nimmit

AJAX Attribute Manager support

Recommended Posts

On 12/6/2019 at 11:33 AM, LeeFoster said:

Just installed this and it's causing the font size etc on product screen to drop.

Product Screen

image.png.afc7682750787fd31204f9887a1a9a1c.png

Any other 

image.png.d7f81d8f07975febca5cbe0d3e5a06bc.png

The page is not zoomed in or anything. I have installed other addons but the product page was right until I installed this one.

Store uses Phoenix 1.0.4.0

same here the font size become smaller everywhere  when I'm on the product edit page 


Get the latest Responsive osCommerce CE (community edition) here .

Share this post


Link to post
Share on other sites
11 minutes ago, Omar_one said:

same here the font size become smaller everywhere  when I'm on the product edit page 

I'll have a look, but is this consistent after reloading, relogging in etc.

Share this post


Link to post
Share on other sites

@LeeFoster, @Omar_one,

Just checked and you are right.

The css is wrong, it selects any div.

The correct fix is this in admin/attribute_manager/css/attributeManager.css line 8:

#attributeManager td, #attributeManager div {
	font-family:'Trebuchet MS' Arial;
	font-size:12px;
}

I'll fix it in the next update, thanks.

Share this post


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

@LeeFoster, @Omar_one,

Just checked and you are right.

The css is wrong, it selects any div.

The correct fix is this in admin/attribute_manager/css/attributeManager.css line 8:


#attributeManager td, #attributeManager div {
	font-family:'Trebuchet MS' Arial;
	font-size:12px;
}

I'll fix it in the next update, thanks.

Thank you @raiwa that was fix it 


Get the latest Responsive osCommerce CE (community edition) here .

Share this post


Link to post
Share on other sites

Uploaded new package :

AJAX Attribute Manager Phoenix 3.1.1

changes:
+ fixed wrong css definition which caused all text in admin to show reduced. Thanks to @LeeFoster and @Omar_one for the report and testing

 

Share this post


Link to post
Share on other sites

Hi,

For those who want to replace Jquery for vanilla JS,

catalog/includes/hooks/admin/categories/ajaxAttribManager.php

Find:
$(function() {
  $('#productTabs #productTabsMain').append('<li><a href="{$tab_link}">{$tab_title}</a></li>');
});


Replace with:
document.querySelector('#productTabs #productTabsMain').innerHTML = document.querySelector('#productTabs #productTabsMain').innerHTML + '<li><a href="{$tab_link}">{$tab_title}</a></li>';

 

catalog/includes/hooks/admin/siteWide/ajaxAttribManager.php

Find:
 $( window ).load(function() {
   goOnLoad();
  });


Replace with:
document.addEventListener('DOMContentLoaded', function() {
  goOnLoad();
}); 

 

Now you have a Jquery less entire addon :)

Share this post


Link to post
Share on other sites

Since 2015 with ECMAScript 6, pure javascript it's more easy to use, near to jQuery but you don't need to load and extra file.

If you use de "order editor" addon, you can view that not use jQuery and have ajax.

The tendency is to program in pure javascript.

GitHub removes from his frontend jQuery: https://github.blog/2018-09-06-removing-jquery-from-github-frontend/

Share this post


Link to post
Share on other sites
4 hours ago, PiLLaO said:

Since 2015 with ECMAScript 6, pure javascript it's more easy to use, near to jQuery but you don't need to load and extra file.

If you use de "order editor" addon, you can view that not use jQuery and have ajax.

The tendency is to program in pure javascript.

GitHub removes from his frontend jQuery: https://github.blog/2018-09-06-removing-jquery-from-github-frontend/

Hello Gustavo @PiLLaO,

JQuery is core on admin and store side and used in many core files, PayPal App, core header tags, core hooks and other third party apps. So I really do not see any need for the suggested mod to pure javascript.

Share this post


Link to post
Share on other sites

I have two queries.

by mistakes admin add multiple same name for options like many products have same option name color and others options. and also same options values for same option like many products have same red values for color options name. can we run a queries to remove the redundency of option names and values.

second i want the option name must be select from drop down if require we can add a new option name but if add an existing option name it should error message and also i want when a new option value added there should be a drop down of available option values like if option name is color there will be option values drop down to select (red , green, black) and if option value not exist we can add a new value.

please help me in both the queries.

thanks

Share this post


Link to post
Share on other sites

Hello @waheed146,

Sorry, but as far as I understand this is not related to Ajax Attributes Manager. Please post in the general support area or open a new topic for your questions.

rgds
Rainer

Share this post


Link to post
Share on other sites

Hello Rainer

For install this addon only need copy to the
admin/attributeManager /*.*
includes/hooks/admin/categories/ajaxAttribManager.php
includes/hooks/admin/siteWide/ajaxAttrManager.php

Nothing more? 😞

Share this post


Link to post
Share on other sites

That's it. And adjust the configuration if you need support enabled for other Addons. Please see the instructions.

Share this post


Link to post
Share on other sites

my second attempt to install this. I got further and this time I am getting to tabs.both when adding and editing product. but I have nothing in the attribute section when I click the tab

I have just the stock products and other than qtpro added nothing with regard to attributes. 

the Phoenix 10.4. php 7 localhost on my Mac php 7.2

Share this post


Link to post
Share on other sites

Please post a screenshot.

10.4 is not a valid Phoenix version, please be precise.

When adding a new product, it will not show. You have to save the product first, then edit.

Or better duplicate an existing product and edit, this is what 99.9% of users do.

Edited by raiwa

Share this post


Link to post
Share on other sites

This is not standard 1.0.4.0.

Screenshot from my 1.0.4.0 dev store:

image.thumb.png.e9919c47f2133eb937a73d2eeb897d19.png

Please revise your installation, there must be something wrong or you have modifications which are not compatible.

Try on a clean instalation.

Edited by raiwa

Share this post


Link to post
Share on other sites

no matter  what I do I tried editing shiny red apple nd I made new product but no attributes.  I commented out my sidebar but that didn't help.



no javascript error  no php error shows either.

ok I turned javascript off and I get this error.
Cannot redeclare app_paypal_get_admin_box_links() (previously declared in /Library/WebServer/Documents/metro/includes/apps/paypal/admin/functions/boxes.php:15) in
/Library/WebServer/Documents/metro/includes/apps/paypal/admin/functions/boxes.php
on line
49

Edited by hungryfrank

Share this post


Link to post
Share on other sites

Did you read this:
 

Quote

Please revise your installation, there must be something wrong or you have modifications which are not compatible.

Try on a clean instalation.

I can't give support for modified stores within this support thread.

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

×