Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2010
    Posts
    106
    Plugin Contributions
    0

    Default Canada post database error

    I am setting up the new store with the latest version, so far so good, Canada post working, showing dimensions etc, BUT when I copy a product (I have many varients of similar products) to save some typing,
    I double checked the install, I went to adjust the PHP for mm and grams, but it was already set.

    I get the following 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 '// CANADA POST changes below: 'kgs', ' at line 20
    in:
    [insert into products (products_type, products_quantity, products_model, products_image, products_price, products_virtual, products_date_added, products_date_available, products_weight, products_weight_type, products_dim_type, products_length, products_width, products_height, products_ready_to_ship, products_status, products_tax_class_id, manufacturers_id, products_quantity_order_min, products_quantity_order_units, products_priced_by_attribute, product_is_free, product_is_call, products_quantity_mixed, product_is_always_free_shipping, products_qty_box_status, products_quantity_order_max, products_sort_order, products_price_sorter, master_categories_id ) values ('1', '50', 'golf ball', 'golfball cache open.JPG', '4.5000', '0', now(), '0001-01-01 00:00:00', '0', // CANADA POST changes below: 'kgs', 'cm', '0.00', '0.00', '0.00', '0', '0', '0', '0', '1', '1', '0', '0', '0', '1', '0', '1', '0', '0', '4.5000', '6')]
    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
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Canada post database error

    In the addon's /admin/includes/modules/copy_to_confirm.php file, on line 74 you'll see this comment line starting with // which needs to be removed:
    Code:
                                      '" . $products_weight . "',
     // CANADA POST changes below:
                                      '" . zen_db_input($product->fields['products_weight_type']) . "',
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Feb 2010
    Posts
    106
    Plugin Contributions
    0

    Default Re: Canada post database error

    Thank you oh Guru for the very fast reply and easy fix.

    Guy

  4. #4
    Join Date
    Dec 2009
    Posts
    16
    Plugin Contributions
    0

    Default Re: Canada post database error

    I am having this same problem / error when I go to copy a product.
    " 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 '// CANADA POST changes below: 'kgs', ' "

    I have done what this posts says to correct the problem but it still does not work. Any suggestions please?
    Using v .3.9

    Thank you....

  5. #5
    Join Date
    Aug 2009
    Posts
    210
    Plugin Contributions
    1

    Default Re: Canada post database error

    It’s the second one, if you are using Dreamweaver you will see it is colored red instead of orange.

  6. #6
    Join Date
    Apr 2009
    Posts
    46
    Plugin Contributions
    0

    Default Re: Canada post database error

    Thanks you for easy fix!

  7. #7
    Join Date
    Mar 2009
    Posts
    8
    Plugin Contributions
    0

    Default Re: Canada post database error

    Me too. Found the answer here!
    Thanks so much:)

 

 

Similar Threads

  1. Canada Post module error
    By DJLQD in forum Addon Shipping Modules
    Replies: 1
    Last Post: 6 Aug 2010, 07:02 PM
  2. Canada post error 65???
    By AutumnLisa in forum Addon Shipping Modules
    Replies: 8
    Last Post: 27 Dec 2006, 12:45 AM
  3. Canada Post error
    By tabish in forum Addon Shipping Modules
    Replies: 2
    Last Post: 31 Aug 2006, 06:34 AM
  4. canada post checkout error
    By MB1 in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 23 Jun 2006, 02:41 PM

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