Jump to content
Latest News: (loading..)
Nimmit

AJAX Attribute Manager support

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

Share this post


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

Share this post


Link to post
Share on other sites
Posted (edited)

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

Building great webshops for customers with opensource backoffice application for a robotic accounting solution including POS
Migrating osC 2.x webshops to 2.3.4.x
osCommerce dedicated hosting/colocation + turnkey solutions + building addons per request

Share this post


Link to post
Share on other sites

After stripping down everything, but this attribute form, it now shows the index.php/dashboard.
So it must be in this contribution it self where there's a capture of the data.


Building great webshops for customers with opensource backoffice application for a robotic accounting solution including POS
Migrating osC 2.x webshops to 2.3.4.x
osCommerce dedicated hosting/colocation + turnkey solutions + building addons per request

Share this post


Link to post
Share on other sites

Hello i get an german umlaut problem (ä ö ü)

In the Dropdown it shos a (?) but underit it is correct.

do i have to set use_charset=utf8 somewhere?

 

Greetings

Unbenannt.png

Share this post


Link to post
Share on other sites

oops sorry, i had it in my notepad but forget to post.

1.)  osCommerce Online Merchant v2.3.1
2.)  standard osCommerce
3.)  existing store
4.)  PHP Version 5.4.45

 

Share this post


Link to post
Share on other sites
Posted (edited)

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

Share this post


Link to post
Share on other sites

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 

Share this post


Link to post
Share on other sites

@raiwa and whoever was the original developer...

Where has this addon BEEN all my life?!?!?!?

Idea, what would it take to make an AJAX specials management addon? Quickly looking some of it could be shared... could it not?

Share this post


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

Share this post


Link to post
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)
 

Share this post


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

Share this post


Link to post
Share on other sites

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

Share this post


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

Share this post


Link to post
Share on other sites

Now it says Parse error: syntax error, unexpected '$rec' (T_VARIABLE) in /xxx/attributeManager/attributeManager.php on line 536

line 536 with the quotes <?php echo $rec['products_stock_id']; ?>

Share this post


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

Share this post


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

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

×