Zen Cart Logo
Forums / All Other Contributions/Addons / 1064 Error - dual pricing mod

1064 Error - dual pricing mod

Locked

Views: 1,260

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
28 Aug 2007, 8:45 PM
#1
pidotcr avatar

pidotcr

New Zenner

Join Date:
Aug 2007
Posts:
9
Plugin Contributions:
0

1064 Error - dual pricing mod

I was getting a 1036 column error that I think was caused by Dual Pricing when I was trying to copy attributes to a category. I followed the instructions in this posting to fix that Now I'm getting the error below.

Anyone have any ideas on what's causing this? Thanks!

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '', '+', '50', '1', '0', '+', ' at line 5
in:
[insert into products_attributes values (0, '52', '1', '5', '156.0000', 0', '+', '50', '1', '0', '+', '0', '0', '1', '', '0', '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', '', '', '0.0000', '0', '0.0000', '0', '0')]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

28 Aug 2007, 9:24 PM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: 1064 Error - dual pricing mod

Can you give the link from where you downloaded this mod?

Also, seems like the modifiction to the table products_attributes did not happen successfully!

28 Aug 2007, 10:21 PM
#4
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: 1064 Error - dual pricing mod

Seems like you forgot to perform this step
Go to Admin
Tools->Install SQL Patches
and run these

ALTER TABLE customers ADD customers_whole VARCHAR( 4 ) DEFAULT '0' NOT NULL;
ALTER TABLE products ADD products_price_w VARCHAR( 150 ) DEFAULT '0' AFTER products_price;
ALTER TABLE products_attributes ADD options_values_price_w VARCHAR( 150 ) DEFAULT '0' AFTER options_values_price;

28 Aug 2007, 10:28 PM
#5
pidotcr avatar

pidotcr

New Zenner

Join Date:
Aug 2007
Posts:
9
Plugin Contributions:
0

Re: 1064 Error - dual pricing mod

I just tried to install that and it says couldn't install because they already exist.. hmm.

28 Aug 2007, 11:40 PM
#7
pidotcr avatar

pidotcr

New Zenner

Join Date:
Aug 2007
Posts:
9
Plugin Contributions:
0

Re: 1064 Error - dual pricing mod

I looked through that thread and it didn't really help. Thanks though :)

It looks to me like maybe there's a problem because there isn't a place to put Wholesale pricing when setting a price for the attribute. Would that be the cause or am I totally off?

29 Aug 2007, 2:15 PM
#8
pidotcr avatar

pidotcr

New Zenner

Join Date:
Aug 2007
Posts:
9
Plugin Contributions:
0

Re: 1064 Error - dual pricing mod

I went through and made the adjustments to the 3 files

/admin/attributes_controller.php
/admin/includes/functions/general.php
/admin/options_values_manager.php

And now I'm getting the same but slightly different error.

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '', '+', '10', '1', '0', '+', ' at line 5
in:
[insert into products_attributes (products_attributes_id, products_id, options_id, options_values_id, options_values_price, options_values_prices_w, price_prefix, products_options_sort_order, product_attribute_is_free, products_attributes_weight, products_attributes_weight_prefix, attributes_display_only, attributes_default, attributes_discounted, attributes_image, attributes_price_base_included, attributes_price_onetime, attributes_price_factor, attributes_price_factor_offset, attributes_price_factor_onetime, attributes_price_factor_onetime_offset, attributes_qty_prices, attributes_qty_prices_onetime, attributes_price_words, attributes_price_words_free, attributes_price_letters, attributes_price_letters_free, attributes_required) values (0, '48', '1', '1', '27.0000', 0', '+', '10', '1', '0', '+', '0', '0', '1', '', '0', '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', '', '', '0.0000', '0', '0.0000', '0', '0')]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

:frusty:

Should I just get rid of the Dual Pricing mod? Has anyone else run into this problem?

29 Aug 2007, 4:28 PM
#9
pidotcr avatar

pidotcr

New Zenner

Join Date:
Aug 2007
Posts:
9
Plugin Contributions:
0

Re: 1064 Error - dual pricing mod

I took out the Dual Pricing mod and am still getting this error when trying to copy attributes to a category or a product. If anyone has any other ideas on what the problem is please help.

Thanks