Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2007
    Posts
    9
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: 1064 Error

    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!
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  3. #3
    Join Date
    Aug 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: 1064 Error

    Thanks for your speedy reply!

    This is where I downloaded it from.

    http://www.zen-cart.com/index.php?ma...roducts_id=166

  4. #4
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: 1064 Error

    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`;
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  5. #5
    Join Date
    Aug 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: 1064 Error

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

  6. #6
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: 1064 Error

    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  7. #7
    Join Date
    Aug 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: 1064 Error

    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?

  8. #8
    Join Date
    Aug 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: 1064 Error

    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.



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

  9. #9
    Join Date
    Aug 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: 1064 Error

    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

 

 

Similar Threads

  1. Merging Dual Pricing Mod and Group Pricing Mod
    By dewaltdave in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 13 Dec 2013, 02:24 AM
  2. v138a Super Orders mod for Dual Pricing mod to show Reseller on Packing Slip
    By kavlito in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 29 Dec 2012, 08:17 PM
  3. Making Dual Pricing Mod and Add Customer from Admin Mod Work Together
    By r2llc1605 in forum Customization from the Admin
    Replies: 5
    Last Post: 19 May 2009, 04:37 AM
  4. Dual Pricing mod for zen cart 1.3.7.1 ?
    By vasilios in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 20 Dec 2008, 02:36 PM
  5. Dual pricing / wholesale Pricing mod
    By zskiman in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 16 Feb 2007, 05:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR