Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

AJAX Attribute Manager support


Guest

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 .

Link to comment
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.

Link to comment
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.

Link to comment
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 .

Link to comment
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

 

Link to comment
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 :)

Link to comment
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/

Link to comment
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.

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
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

Link to comment
Share on other sites

  • 3 weeks later...

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

Link to comment
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

you can cut up to 4 pages of your checkout by using my three add_ons

login create account in one page

Express checkout  

login pop up modal

Link to comment
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
Link to comment
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
Link to comment
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

you can cut up to 4 pages of your checkout by using my three add_ons

login create account in one page

Express checkout  

login pop up modal

Link to comment
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.

Link to comment
Share on other sites

  • 3 weeks later...

Strange problem: AJAX Attribute Manager started showing the admin index page on categories.php instead of the attribute manager...

Using osCommerce 2.3.4 BS Edge and AJAX Attribute Manager 1.0 as well as QTPro 4.1

Everything has been working fine for months, all of a sudden the Attribute Manager no longer shows up in its div on categories.php and instead it shows the entire front page (index.php) of the admin panel. It's doing it on all products.

I haven't changed anything in that area of my installation in a long time. My last changes involved changing the breadcrumbs over to schema.org and turning Sessions/Force Cookie Use to True (which I reverted to no effect).

The page code looks like this if I use Chrome Inspector. You can see it renders the index in the attributeManager:

<tr>
          	<td colspan="2"><div id="attributeManager">


<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex,nofollow">
<title>osCommerce Online Merchant Administration Tool</title>
<base href="https://www.domain.ca/skateshop/ADMIN/">...etc...

However, if I use View Source it looks like this:

<tr>
          	<td colspan="2"><div id="attributeManager"></div></td>
          </tr>
          <tr>
            <td colspan="2"><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="10" /></td>
          </tr>

Not sure I understand why. I restored my backups of both categories.php and the entire attributeManager folder from a month ago and it didn't have any effect.

What could possibly be causing this?

Link to comment
Share on other sites

UPDATE:
Chrome seems to be logging a new error related to Attribute Manager:
 

Quote

Refused to set unsafe header "Accept-Charset"
Requester.loadURL @ requester.js:64
amSendRequest @ attributeManager.js:72
amRefresh @ attributeManager.js:86
attributeManagerInit @ attributeManager.js:9
goOnLoad @ categories.php?cPath=147&pID=2238&action=new_product:32
onload @ categories.php?cPath=147&pID=2238&action=new_product:39

Not sure what to do about that though, I know nothing about AJAX and very little js. Help?

Link to comment
Share on other sites

Hello Nicolas @cinolas,

THis is a known incompatibility with the force cookie use setting in older Attributes manager versions. Are you really on version 1.0???

It has been fixed in AJAX Attribute Manager BS 2.9.4

In addition to revert the force cookie use setting, you'll need also to delete cookies and browser cache to fix it using your version.

I would recommend you to update to the latest CE version:

AJAX Attribute Manager BS 3.0.0.

 

Edited by raiwa
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...