I've obviously done something wrong somewhere along the line - finishing an order as a test customer results in
Code:
1054 Unknown column 'orders_id' in 'field list'
in:
[INSERT INTO zen_orders_giftwrap (orders_id, orders_products_id, wrap) VALUES ('4', '11', '1')]
Which leaves me a bit confused, since there's no 'orders_id' table in the sql I ran, only 'zen_orders_id'! I was pretty sure I edited the sql in the way the instructions said to - here's the modified orders_wrap.sql
Code:
DROP TABLE IF EXISTS zen_orders_giftwrap;
CREATE TABLE zen_orders_giftwrap(
zen_orders_giftwrap_id int(11) NOT NULL auto_increment,
zen_orders_products_id int(11) NOT NULL default '0',
zen_orders_id int(11) NOT NULL default '0',
zen_wrap int(11) NOT NULL default '0',
PRIMARY KEY (zen_orders_giftwrap_id),
KEY zen_idx_orders_id_orders_prod_id_giftwrap (zen_orders_id,zen_orders_products_id)
) TYPE=MyISAM;
All I did was add 'zen_' to each reference I could see to a filename, as my cart was auto-installed with Fantastico which automatically adds that prefix.
Anyone offer any advice? I can't just not use this mod until I work it out because in Order Total Modules it only offers 'Yes' to 'Do you want to offer Gift Wrap - there isn't a 'No' option!