Forums / All Other Contributions/Addons / 1062 Duplicate entry 'SHOW_PRODUCT_INFO_CONDITION' installing numinix product fields

1062 Duplicate entry 'SHOW_PRODUCT_INFO_CONDITION' installing numinix product fields

Views: 1,504

Results 1 to 9 of 9
28 Oct 2011, 9:41 AM
#1
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

1062 Duplicate entry 'SHOW_PRODUCT_INFO_CONDITION' installing numinix product fields

ok so i uploaded all the files using ftp and went to install the .sql file and got the following error message....

1062 Duplicate entry 'SHOW_PRODUCT_INFO_CONDITION' for key 2
in:
[INSERT INTO zen_product_type_layout (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, product_type_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Show Condition', 'SHOW_PRODUCT_INFO_CONDITION', '0', 'Show product condition on product info page (requires Numinix Product Fields)?', 1, 17, NULL, NOW(), NULL, 'zen_cfg_select_option(array('1', '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.

any ideas?

29 Oct 2011, 2:11 PM
#2
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

Re: 1062 Duplicate entry 'SHOW_PRODUCT_INFO_CONDITION' installing numinix product fields

can anyone help me?

25 Sep 2012, 12:38 AM
#3
heteromorphic avatar

heteromorphic

New Zenner

Join Date:
Jul 2012
Posts:
60
Plugin Contributions:
0

Re: 1062 Duplicate entry 'SHOW_PRODUCT_INFO_CONDITION' installing numinix product fields

I got the same error - does anyone know the fix?
heteromorphic.com

25 Sep 2012, 1:50 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: 1062 Duplicate entry 'SHOW_PRODUCT_INFO_CONDITION' installing numinix product fields

1062 Duplicate entry 'SHOW_PRODUCT_INFO_CONDITION' ...
It means that setting is already in your database, and doesn't need to be re-added.

So, if you don't mind losing whatever that addon installed initially, run its uninstall so it can remove everything it ever added, and then re-run the install to set it up afresh again.

Of course, always backup your database before running any sql scripts on it. And always test on a TEST COPY of your site first, never on your live site directly.

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

25 Sep 2012, 2:22 PM
#5
heteromorphic avatar

heteromorphic

New Zenner

Join Date:
Jul 2012
Posts:
60
Plugin Contributions:
0

Re: 1062 Duplicate entry 'SHOW_PRODUCT_INFO_CONDITION' installing numinix product fields

Thanks! Just in case that file came from another mod; is there any way to "remove" from the scipt to get the rest to run by chance? Just needed to ask - sql clueless newbie :)
If not, any way to find out if another mod is "using" that already?

Thanks!

25 Sep 2012, 8:22 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: 1062 Duplicate entry 'SHOW_PRODUCT_INFO_CONDITION' installing numinix product fields

If you have enough SQL knowledge, you could comment-out, or just delete the SQL statements that have already been run, and thereby only run the statements after those ones. You might need to do that repeatedly.
But since you're having problems with a mod written by an author who supports his stuff on another website, you're probably better off asking him directly, since he has much more specialized knowledge about it than people like me who don't even use the mod.

As for finding out if a constant such as SHOW_PRODUCT_INFO_CONDITION is used anyplace else, you could use the Developers Toolkit to do a search for it, using the "search ALL files" option at the bottom of the list of search choices.

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

20 Jun 2013, 12:53 AM
#7
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: 1062 Duplicate entry 'SHOW_PRODUCT_INFO_CONDITION' installing numinix product fields

I installed Numinix_Product_Fields. The second description does not appear in the Product info page!

I have added:

<!-- bof Product description 2 -->
<?php if ($products_description2 != '') { ?>
<div id="productDescription2" class="productGeneral biggerText"><?php echo stripslashes($products_description2); ?></div>
<br class="clearBoth" />
<?php } ?>
<!-- eof Product description 2 -->

to
tpl_product_info_display.php

I have also set the following in Product Type Info Page Layout options :: Product - General
Attachment 12681

Any ideas why Second description is not showing up.

ps. I do see the products_description2 field in the products_description table:rant:

Using Zen Cart 1.5.1

20 Jun 2013, 4:15 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: 1062 Duplicate entry 'SHOW_PRODUCT_INFO_CONDITION' installing numinix product fields

Numinix supports their plugins at https://www.numinix.com

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

24 Jun 2013, 12:11 PM
#9
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: 1062 Duplicate entry 'SHOW_PRODUCT_INFO_CONDITION' installing numinix product fields

Kevin205:

Any ideas why Second description is not showing up.

Apparently you are missing some code.

Somewhere in the php file there will/should be code that reads the data from....
products_description2 field in the products_description table

...and assigns it to the variable named "$products_description2"

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.