
Originally Posted by
swingandmiss
1062 Duplicate entry 'Customers who have never completed a purchase' for key 2
You'll only get that message if you're trying to upgrade a database that's already had the upgrade run on it at least once.
If you want to skip ever getting that error, you'll have to remove it from the upgrade script:
edit /zc_install/sql/mysql_upgrade_zencart_137_to_138.sql
find the line (around 62)that says the following, and add the # at the beginning, as show:
Code:
#audience list addition: customers who have signed up but never made a purchase
#INSERT INTO query_builder (query_category, query_name, query_description , query_string) VALUES ('email,newsletters', 'Customers who have never completed a purchase', 'For sending newsletter to all customers who registered but have never completed a purchase', 'SELECT DISTINCT c.customers_email_address as customers_email_address, c.customers_lastname as customers_lastname, c.customers_firstname as customers_firstname FROM TABLE_CUSTOMERS c LEFT JOIN TABLE_ORDERS o ON c.customers_id=o.customers_id WHERE o.date_purchased IS NULL');