Osclass forums

Support forums => Plugins => Topic started by: xop32 on April 17, 2016, 04:10:51 pm

Title: <SLOVED> products_attributes plugin not updating values on edit in osc 3.6.1 >
Post by: xop32 on April 17, 2016, 04:10:51 pm
on installing the products_attributes plugin in osc 3.6.1 there is a problem with updating or editing values when you create a listing

when you install the products attributes plugin from the market  there seems to be a problem updating values after you have created a listing, they do not update


if you create a listing then add any values into make and model, it stores ok

then when you edit the listings, and try to change these values they are not being updated

does anyone else have this same problem??

 
Title: Re: products_attributes plugin not updating values on edit in osc 3.6.1
Post by: xop32 on May 25, 2017, 03:29:40 am
this problem still is present in the products attributes plug in

the update function is not working in the index.php file for some reason



you can add (insert) values, but trying to edit them is not ok, looks like a error in the , function products_item_edit_post maybe passing the $item values???

anyone remember how to fix this?

trying this on 3.7.3
Title: Re: products_attributes plugin not updating values on edit in osc 3.6.1
Post by: xop32 on May 25, 2017, 03:47:13 am
<SLOVED>

there is a error in the index.php of the products_attributes plugin

around line 170

// Edit an item special attributes POST
osc_add_hook('edited_post', 'products_item_edit_post');


where it should be this !!!!!!



// Edit an item special attributes POST
osc_add_hook('edited_item', 'products_item_edit_post');


the hook is called  edited_post where it looks like it should be  edited_item in maybe later versions of osc


I think this error runs across some of the other attribute plugins as well, looks like a update is needed!!