Skip to content

Instantly share code, notes, and snippets.

@caaheek
Created July 20, 2015 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caaheek/de45ea6c3d3a2fabf8ac to your computer and use it in GitHub Desktop.
Save caaheek/de45ea6c3d3a2fabf8ac to your computer and use it in GitHub Desktop.
diff --git a/app/functions/fn.search.php b/app/functions/fn.search.php
index 734220d..886f34d 100644
--- a/app/functions/fn.search.php
+++ b/app/functions/fn.search.php
@@ -403,7 +403,7 @@ function fn_create_products_condition($params, $lang_code = CART_LANGUAGE)
$params['get_conditions'] = true;
if (AREA == 'A') {
- $params['pcode'] = $params['q'];
+ $params['pcode_from_q'] = 'Y';
$params['pid'] = $params['q'];
}
diff --git a/app/schemas/search/schema.php b/app/schemas/search/schema.php
index 2e4918e..fc1dc0b 100644
--- a/app/schemas/search/schema.php
+++ b/app/schemas/search/schema.php
@@ -24,7 +24,7 @@ $schema = array(
'title' => __('products'),
'more_data_function' => '',
'bulk_data_function' => 'fn_gather_additional_products_data_for_search',
- 'action_link' => 'products.manage?compact=Y&q=%search%&pshort=Y&pfull=Y&pname=Y&pkeywords=Y&pcode=%search%&pid=%search%&match=any&content_id=products_content',
+ 'action_link' => 'products.manage?compact=Y&q=%search%&pshort=Y&pfull=Y&pname=Y&pkeywords=Y&pcode_from_q=Y&pid=%search%&match=any&content_id=products_content',
'detailed_link' => 'products.update?product_id=%id%',
'show_in_search' => false,
'default' => true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment