Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SKU Finder will not save attribute value #95

Closed
melaxon opened this issue Aug 21, 2014 · 5 comments
Closed

SKU Finder will not save attribute value #95

melaxon opened this issue Aug 21, 2014 · 5 comments

Comments

@melaxon
Copy link

melaxon commented Aug 21, 2014

Nothing entered into config field of SKU Finder will be saved and displayed

@Kamik
Copy link
Contributor

Kamik commented Aug 21, 2014

duplikate #26

@geraldcann
Copy link

This is the solution. Add this piece of code into SkuFinderItemProcessor class :

public function getPluginParams($params)


{

  
$pp=array();

  
foreach($params as $k=>$v)

  
{

    
if(preg_match("/^SKUF:.*$/",$k))

    
{

      
$pp[$k]=$v;

    
}

  
}

  
return $pp;


}

And add echo before $this->getParam("SKUF:matchfield","") into options_panel.php

@dweeves
Copy link
Owner

dweeves commented Sep 4, 2014

Thanx geraldcann, fixed the plugin in latest commit.

@dweeves dweeves closed this as completed Sep 4, 2014
@geraldcann
Copy link

Just see another error...The select request to find sku is wrong due to missing space in file 001_skufinder.php line 77 :
catalog_product_entity_".$attinfo["backend_type"]. "ON value=? AND attribute_id=?";
should be
catalog_product_entity_".$attinfo["backend_type"]. " ON value=? AND attribute_id=?";

@dweeves
Copy link
Owner

dweeves commented Sep 4, 2014

There is no such line 77, check out the latest sku finder. the sql request
uses aliases & variables.

2014-09-04 17:57 GMT+02:00 geraldcann notifications@github.com:

Just see another error...The select request to find sku is wrong due to
missing space in file 001_skufinder.php line 77 :
catalog_product_entity_".$attinfo["backend_type"]. "ON value=? AND
attribute_id=?";
should be
catalog_product_entity_".$attinfo["backend_type"]. "* ON *value=? AND
attribute_id=?";


Reply to this email directly or view it on GitHub
#95 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants