Post by affect » Thu Nov 03, 2011 7:01 am

This extension is a free single vQmod that adds an "Options" column to Sales - Orders area and a possibility to filter orders by option names and values.

Prerequisites:
* You need vQmod installed for this module to work.

Compatibility: OpenCart 1.5.x

Screenshots and also downloadable in OpenCart extension store and in our store.

Cheers,
Martin

ffct.cc

Attachments

Last edited by affect on Tue Feb 14, 2012 1:26 am, edited 1 time in total.

MultiMerch Marketplace for OpenCart

Image


User avatar
Active Member

Posts

Joined
Sat Aug 13, 2011 5:04 pm


User avatar
Active Member

Posts

Joined
Thu Nov 11, 2010 6:11 pm
Location - New Zealand (Tokomaru, Palmerston North)

Post by petereu » Mon Feb 13, 2012 9:41 pm

Dear sir,

I downloaded your mod: [vqmod] Order Options Filter and uploaded it to my website. But I get this error message:
Notice: Undefined index: options in /home/www/zero2hero.asia/admin/vq2-admin_controller_sale_order.php on line 547

Can you advise me what is missing? Your help is very much appreciated

Thanks

Peter

Newbie

Posts

Joined
Sun May 29, 2011 6:45 pm

Post by affect » Mon Feb 13, 2012 9:45 pm

Please replace the following line in the xml

Code: Select all

'options'		=> $result['options'],
with

Code: Select all

'options'		=> isset($result['options']) ? $result['options'] : '',
That should fix the notice.

MultiMerch Marketplace for OpenCart

Image


User avatar
Active Member

Posts

Joined
Sat Aug 13, 2011 5:04 pm


Post by petereu » Mon Feb 13, 2012 11:00 pm

Dear sir,

Thank you

peter

Newbie

Posts

Joined
Sun May 29, 2011 6:45 pm

Post by petereu » Mon Feb 13, 2012 11:17 pm

Dear sir,

The earlier error messages disappered but this new message appears when I do a search:

Notice: Error: Unknown column 'oo.name' in 'where clause'
Error No: 1054
SELECT o.order_id, o.firstname, o.lastname, CONCAT(o.firstname, ' ', o.lastname) AS customer, (SELECT os.name FROM order_status os WHERE os.order_status_id = o.order_status_id AND os.language_id = '1') AS status, o.total, o.currency_code, o.currency_value, o.date_added, o.date_modified, o.email, o.age, o.ride, o.payment_address_2, o.telephone, o.payment_method FROM `order` o WHERE o.order_status_id > '0' AND LCASE(concat(oo.name,' ',oo.value)) LIKE '%kuala%' GROUP BY o.order_id ORDER BY o.order_id DESC LIMIT 0,20 in /home/www/zero2hero.asia/system/database/mysql.php on line 49


Your kind advise is n=much appreciated,

Thanks

peter

Newbie

Posts

Joined
Sun May 29, 2011 6:45 pm

Post by petereu » Mon Feb 13, 2012 11:31 pm

Found the answer. Thanks anyway

Newbie

Posts

Joined
Sun May 29, 2011 6:45 pm

Post by petereu » Tue Feb 14, 2012 12:17 am

Hello,

If I want to retrieve the name of the product in the admin order list how do I modify the SQL?

Is this correct:

$sql = "SELECT o.order_id, o.firstname, o.lastname, CONCAT(o.firstname, ' ', o.lastname) AS customer, (SELECT os.name FROM " . DB_PREFIX . "order_status os WHERE os.order_status_id = o.order_status_id AND os.language_id = '" . (int)$this->config->get('config_language_id') . "') AS status, oo.value AS options, oo.name AS prodname, o.total, o.currency_code, o.currency_value, o.date_added, o.date_modified, o.email, o.age, o.ride, o.payment_address_2, o.telephone, o.payment_method FROM `" . DB_PREFIX . "order` o LEFT JOIN `" . DB_PREFIX . "order_option` oo LEFT JOIN `" . DB_PREFIX . "order_product` oo ON o.order_id = oo.order_id";

Thanks

Peter

Newbie

Posts

Joined
Sun May 29, 2011 6:45 pm
Who is online

Users browsing this forum: No registered users and 7 guests