News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Help! VirtueMart 2.0.16 Product Search cant worked. Joomla! 2.5.8

Started by aronxie, December 26, 2012, 19:40:46 PM

Previous topic - Next topic

aronxie

When I try to search sth, it display below message:

vmError: exeSortSearchListQuery Column 'ordering' in where clause is ambiguous SQL=SELECT SQL_CALC_FOUND_ROWS l.`virtuemart_product_id` FROM `jml_virtuemart_products_zh_cn` as l JOIN `jml_virtuemart_products` AS p using (`virtuemart_product_id`) LEFT JOIN `jml_virtuemart_product_categories` as pc ON p.`virtuemart_product_id` = `pc`.`virtuemart_product_id` LEFT JOIN `jml_virtuemart_categories_zh_cn` as c ON c.`virtuemart_category_id` = `pc`.`virtuemart_category_id` LEFT JOIN `jml_virtuemart_product_manufacturers` ON p.`virtuemart_product_id` = `jml_virtuemart_product_manufacturers`.`virtuemart_product_id` LEFT JOIN `jml_virtuemart_manufacturers_zh_cn` as m ON m.`virtuemart_manufacturer_id` = `jml_virtuemart_product_manufacturers`.`virtuemart_manufacturer_id` LEFT JOIN `jml_virtuemart_product_prices` as pp ON p.`virtuemart_product_id` = pp.`virtuemart_product_id` LEFT JOIN `jml_virtuemart_product_shoppergroups` ON p.`virtuemart_product_id` = `jml_virtuemart_product_shoppergroups`.`virtuemart_product_id` LEFT OUTER JOIN `jml_virtuemart_shoppergroups` as s ON s.`virtuemart_shoppergroup_id` = `jml_virtuemart_product_shoppergroups`.`virtuemart_shoppergroup_id` WHERE ((`product_name` LIKE "%karicare%" OR `product_s_desc` LIKE "%karicare%" OR `category_name` LIKE "%karicare%" OR `category_description` LIKE "%karicare%" OR `mf_name` LIKE "%karicare%" OR `product_price` LIKE "%karicare%" OR `product_availability` LIKE "%karicare%" OR `ordering` LIKE "%karicare%") AND p.`published`="1" AND `pc`.`virtuemart_category_id` > 0 AND ( s.`virtuemart_shoppergroup_id`= "2" OR s.`virtuemart_shoppergroup_id` IS NULL ) ) group by p.`virtuemart_product_id` ORDER BY product_name ASC LIMIT 0, 9

PRO


aronxie


PRO

is this backend or frontend?

have you tried

"tools & migration"  "install or update tables"   ?

aronxie

Quote from: PRO on December 26, 2012, 22:34:36 PM
is this backend or frontend?

have you tried

"tools & migration"  "install or update tables"   ?

This is the frontend. Yes, I have tried the "install or update tables".

jjk

Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

aronxie

Quote from: jjk on December 27, 2012, 14:37:24 PM
Perhaps the same problem/solution as this one:
http://forum.virtuemart.net/index.php?topic=111341.msg373996#msg373996

I have changed the the "case 'ordering':" to "case '`pc`.ordering':". But still doesn't work. Could you help to find the problem? thank you

vmError: exeSortSearchListQuery Column 'ordering' in where clause is ambiguous SQL=SELECT SQL_CALC_FOUND_ROWS l.`virtuemart_product_id` FROM `jml_virtuemart_products_zh_cn` as l JOIN `jml_virtuemart_products` AS p using (`virtuemart_product_id`) LEFT JOIN `jml_virtuemart_product_categories` as pc ON p.`virtuemart_product_id` = `pc`.`virtuemart_product_id` LEFT JOIN `jml_virtuemart_categories_zh_cn` as c ON c.`virtuemart_category_id` = `pc`.`virtuemart_category_id` LEFT JOIN `jml_virtuemart_product_manufacturers` ON p.`virtuemart_product_id` = `jml_virtuemart_product_manufacturers`.`virtuemart_product_id` LEFT JOIN `jml_virtuemart_manufacturers_zh_cn` as m ON m.`virtuemart_manufacturer_id` = `jml_virtuemart_product_manufacturers`.`virtuemart_manufacturer_id` LEFT JOIN `jml_virtuemart_product_prices` as pp ON p.`virtuemart_product_id` = pp.`virtuemart_product_id` LEFT JOIN `jml_virtuemart_product_shoppergroups` ON p.`virtuemart_product_id` = `jml_virtuemart_product_shoppergroups`.`virtuemart_product_id` LEFT OUTER JOIN `jml_virtuemart_shoppergroups` as s ON s.`virtuemart_shoppergroup_id` = `jml_virtuemart_product_shoppergroups`.`virtuemart_shoppergroup_id` WHERE ((`product_name` LIKE "%karicare%" OR `product_s_desc` LIKE "%karicare%" OR `category_name` LIKE "%karicare%" OR `category_description` LIKE "%karicare%" OR `mf_name` LIKE "%karicare%" OR `product_price` LIKE "%karicare%" OR `product_availability` LIKE "%karicare%" OR `ordering` LIKE "%karicare%") AND p.`published`="1" AND `pc`.`virtuemart_category_id` > 0 AND ( s.`virtuemart_shoppergroup_id`= "2" OR s.`virtuemart_shoppergroup_id` IS NULL ) ) group by p.`virtuemart_product_id` ORDER BY product_name ASC LIMIT 0, 9