Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 22, 2012, 05:02:08 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
The E-commerce forum, the best place for advice for your Small Business.
12786
Posts in
1519
Topics by
6450
Members
Latest Member:
granvillegar1230
E-commerce forum
E-commerce
Shopping cart software
Zen cart
attributes
« previous
next »
Pages:
[
1
]
Author
Topic: attributes (Read 574 times)
Andy c
Members - (ws)
Shareholder ;o)
Karma: 2
Offline
Gender:
Posts: 581
attributes
«
on:
April 03, 2011, 07:34:46 PM »
HI
I have yet another problem.. Have taken the leap to learn attributes but while trying to get it to work......
When I am trying to insert Option Values I keep getting this meassage
1062 Duplicate entry '1-1' for key 1
in:
[insert into zen_products_options_values (products_options_values_id, language_id, products_options_values_name, products_options_values_sort_order) values ('1', '1', 'rrrrr', '3')]
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.
there is 1 insert already and I can't delete it either I get this message
Error: Mismatched Option Name and Option Value selected from: 12-14 Size
have got it working on my test site so have no idea what could be the problem
thanks
Logged
Andy c
Members - (ws)
Shareholder ;o)
Karma: 2
Offline
Gender:
Posts: 581
Re: attributes
«
Reply #1 on:
April 06, 2011, 07:50:53 PM »
have found this thread
http://www.zen-cart.com/forum/showthread.php?p=1014878#post1014878
ran the sql
and now get this any ideas plz
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 '0' at line 1
in:
[DELETE FROM zen_products_options_values where products_options_values_id > 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.
Logged
seamus
zen master
Shareholder ;o)
Karma: 44
Offline
Gender:
Posts: 1109
Re: attributes
«
Reply #2 on:
April 06, 2011, 08:02:38 PM »
take these off [ ] and then run the patch
Logged
Zen cart tutorial, build a template from scratch
Portfolio & Zen Cart Template Designs
Free zen cart template
Andy c
Members - (ws)
Shareholder ;o)
Karma: 2
Offline
Gender:
Posts: 581
Re: attributes
«
Reply #3 on:
April 06, 2011, 10:05:11 PM »
delete from products_options_values where products_options_values_id > 0;
yeah that's what I ran and it brings up this error without the []
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 '0' at line 1
in:
[DELETE FROM zen_products_options_values where products_options_values_id > 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.
Logged
seamus
zen master
Shareholder ;o)
Karma: 44
Offline
Gender:
Posts: 1109
Re: attributes
«
Reply #4 on:
April 07, 2011, 05:13:34 PM »
check that your not leaving any spaces or anything at the end of the line,
I've seen the thread you got the info from on the zen cart forum and provided you havent added any prefix to the zen cart tables in your database, it should be fine, I've checked the sql syntax in an sql validator and it seems fine.
how did you install your zen cart? was it a manual or auto install?
auto installs like to add a prefix or zen_ to the database tables so if it was an auto install try this
DELETE FROM zen_products_options_values where products_options_values_id > 0;
if it was a manual install and there was no prefix set for the database tables try this
DELETE FROM products_options_values where products_options_values_id > 0;
you could check in phpmyadmin via cpanel, go into phpmyadmin and click on your zen cart database, have a look at the database names and if there is a prefix on the tables, it'll be on the start of every database name
eg,
address_book < no prefix
zen_address_book < has a prefix of zen_
«
Last Edit: April 07, 2011, 05:17:50 PM by seamus
»
Logged
Zen cart tutorial, build a template from scratch
Portfolio & Zen Cart Template Designs
Free zen cart template
Andy c
Members - (ws)
Shareholder ;o)
Karma: 2
Offline
Gender:
Posts: 581
Re: attributes
«
Reply #5 on:
April 07, 2011, 09:23:24 PM »
yeah everything has a prefix of zen .....
I'm using scotts hosting with scripts
thanks for helping
Logged
Andy c
Members - (ws)
Shareholder ;o)
Karma: 2
Offline
Gender:
Posts: 581
Re: attributes
«
Reply #6 on:
April 12, 2011, 09:43:06 PM »
can anyone help plz ..am still unable to use attributes
thanks
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Small Business Network
-----------------------------
=> General Network Stuff .....
-----------------------------
E-commerce
-----------------------------
=> Dropship discussion
=> Dropship suppliers
=> Wholesale discussion
=> Wholesale suppliers
=> Products discussion
=> Website development
=> Shopping cart software
===> Zen cart
===> Prestashop
===> Cubecart
===> Open Cart
===> Magento
===> OsCommerce / Creload
===> Other cart software
=> SEO and marketing
=> Payment and shipping
=> Ebay and auction sites
=> Business start ups
=> Accounts and book keeping
=> General business discussions
=> Services offered
=> Services requested
-----------------------------
Social Networking
-----------------------------
=> Facebook
===> Wordpress
===> Drupal
===> DotNetNuke
===> Joomla
===> Blogger
-----------------------------
General Category
-----------------------------
=> Introductions
=> General Discussion
=> The Lounge
===> The Bar
===> Recipes
Loading...
SimplePortal 2.2.2 © 2008-2009