Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

AJAX Attribute Manager support


Guest

Recommended Posts

4 hours ago, PiLLaO said:

I just find that console shows this error:


Refused to set unsafe header "Accept-Charset"

from admin/attributeManager/javascript/requester.js:64


this.commInterface.setRequestHeader('Accept-Charset',e);

 

Just comment out or remove that line and try

Link to comment
Share on other sites

23 minutes ago, BrockleyJohn said:

Yes, that header's not allowed (probably a security risk) see https://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#dom-xmlhttprequest-setrequestheader

but a browser will probably just ignore it.

Is anything not working?

No, all seem to works correctly.

 

19 minutes ago, raiwa said:

Just comment out or remove that line and try

Ok, but will be a good idea to update addon with this line commented?

Thanks to both :)

Link to comment
Share on other sites

2 minutes ago, PiLLaO said:

Ok, but will be a good idea to update addon with this line commented?

Yes, I''ll double check and include it in the next update.

Link to comment
Share on other sites

  • 1 month later...

Hi Raiwa,

Thanks for the update.
I Always used this contribution in my 2.2 shops, but in the 2.3.4BS version, it shows me the full admin page including menubar of the edited product instead of the attribut set form.

Just to rule out influence of other contributions, I've also tested it with the basic (clean) 2.3.4BS version of categories.php which just gives the same issue.

Any ideas?

Edited by cDGo IT Consultancy
Link to comment
Share on other sites

Can you please give us more details.

Screenshots would be also appreciated and help a lot.

Link to comment
Share on other sites

@cr0co,

Yes you probably need to add utf-8 somewhere, but where depends on your exact store version. Please read this and give necessary information:

 

Link to comment
Share on other sites

Even the character encoding for the language files is already set to utf-8, full utf-8 support is not introduced until OsCommerce version 2.3.3.4.

So you may have your data in the database still encoded in ISO.

You could try to install this add-on:

https://apps.oscommerce.com/KMwhZ&tim-s-osc-solutions-iso-8859-1utf-8-du

otherwise, if you have the problem only in the templates drop down, check the character encoding for the templates table and change it to utf-8 if its ISO or viceversa.

 

Edited by raiwa
Link to comment
Share on other sites

  • 3 months later...

Hi, This works great with frozen..even with Attribute weight addon...But when I am trying to use the weight of ATTRIBUTES on edit_order.php, The shipping does not calculate accordingly. It does not calculate the attribut weight only shows the base weight for every attribute.

Any help would be deeply appreciated

Warm Regds

Radhavallabh 

Link to comment
Share on other sites

@radhavallabh,

This is not related to Ajax Attribute Manager, please post your request in the official support thread for Order Editor.

rgds

Rainer

Link to comment
Share on other sites

  • 1 month later...

@TsimiIt needs some update which I have already prepared. I'll upload it within the next 2 days.

Link to comment
Share on other sites

Uploaded update:

Version v2.9.2

+ updated for PHP 7.2 compatibility. Changed deprecated while...each loops to foreach loops. Fixed undefined errors.
+ Added sort order support for 2.3.4.1 CE Frozen modular Product Info page.


https://apps.oscommerce.com/mKsGy&ajax-attribute-manager-bs

Link to comment
Share on other sites

@raiwa Thank you for update it,,
I just install it ,, when I create new product it show   "Save Product before adding options" and after create product and save it and I come back to product but there is no  Ajax Attribute Manager shown ..
1.)  2.3.4.1 CE Frozen
2.)  test  store
3)  PHP Version 5.6 and 7.2 ( I test it under both)
 

Link to comment
Share on other sites

9 hours ago, joe122joe said:

I just install it ,, when I create new product it show   "Save Product before adding options" and after create product and save it and I come back to product but there is no  Ajax Attribute Manager shown ..
 

Hello @joe122joe,

Just checked again and it works all correct on my 2.3.4.1 CE Frozen test store under PHP 7.2.

Note that 2.3.4.1 CE Frozen and the correspondant AJAX Attributes Manager require PHP 7+.

Please check your modifications in admin/includes/template_top.php or use the provided file.

 

rgds

Rainer

Link to comment
Share on other sites

  • 1 month later...

Hello Rainer,

Just uploaded the new version and have a little error that seems to come with QTPro and Attribute Manager but I can not figure out what it is referring to (screenshot included :     
Warning /xxxxx/xxxx/attributeManager/attributeManager.php 526

line 526  :       $val_array=explode(",",$rec[products_stock_attributes]);

On FROZEN CE BS3, PHP 7.2

QTPro was functioning fine and is set to true in attribute manager.  There is stock for the product attributes. What do you think?

 

Bobbee

attribute_error.jpg

Link to comment
Share on other sites

Can you just try to wrap products_stock_attributes in single quotes so it looks like this:

    

      $val_array=explode(",",$rec['products_stock_attributes']);

same line 548:

				<?php echo $rec['products_stock_id']; ?>

and line 577

				<?php echo tep_draw_input_field("productStockQuantity_$rec[products_stock_id]", $rec['products_stock_quantity'], ' style="margin:3px 0px 3px 0px;" id="productStockQuantity_'.$rec['products_stock_id'].'" size="4" onChange="return amUpdateProductStockQuantity(\''.$rec['products_stock_id'].'\');"'); ?>

and line 419

    $db_quantity=$list['products_quantity'];

and lines 497-501:

    while($list=tep_db_fetch_array($q)) {
      $options[$list['_option_id']][]=array($list['_value'],$list['_value_id']);
      $option_names[$list['_option_id']]=$list['_option'];
      $product_name=$list['products_name'];
    }

Please confirm

There may be more, I'll check.

Link to comment
Share on other sites

Please revise your changes.

for me line 536 is:

				<span style="margin-right:41px;">

this is line 548

				<?php echo $rec['products_stock_id']; ?>

 

I could reproduce your first errors.

The modifications I posted do fix them and I can't reproduce the consecutive error you posted.

Please try my file:

 

attributeManager.php

Link to comment
Share on other sites

This time I have 

Warning/homepages/11/d570016152/htdocs/osc234/cav2mt/attributeManager/attributeManager.php417

Still with Quantity Tracking Professional (QT Pro)

underneath the color option as in the screenshot, so somehow it must have a problem with the QTPro

Link to comment
Share on other sites

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