Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Added new production_option_valuesto PHPMyadmin, yet not showing up in zencart admin

Added new production_option_valuesto PHPMyadmin, yet not showing up in zencart admin

Locked

Started by chris112 on 15 Feb 2010, 11:28 PM · Views: 796

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
15 Feb 2010, 11:28 PM
#1
chris112 avatar

chris112

New Zenner

Join Date:
Apr 2008
Posts:
10
Plugin Contributions:
0

Post #1 by chris112

I am trying to enter dozens of options, and I Added new the new options to the production_option_values in PHPMyadmin. The data is showing up in phpmyadmin. The option value manager also shows the correct next value to create a new one, but the option values aren't listed with the other option values.

is there a better way to do this?

Also how do I continue doing it this way? IS there another table I need to add data to?

See screenshot

Thank you in advance

16 Feb 2010, 12:33 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

I would suspect that by entering directly that you might have overlooked adding the proper indexing

Post the table structure here for that table

Zen-Venom Get Bitten

16 Feb 2010, 3:58 AM
#3
chris112 avatar

chris112

New Zenner

Join Date:
Apr 2008
Posts:
10
Plugin Contributions:
0

Post #3 by chris112

See the attachments for more clues as to what is going on. Notice I am following the format of the other items, yet they don't show up correctly, not can I choose them to be a part of a product because its missing something.

16 Feb 2010, 4:27 AM
#4
drbyte avatar

drbyte

Sensei

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

Post #4 by drbyte

chris112:

is there a better way to do this?
Yes, there is: use the supplied Zen Cart Admin interface.

Or, if you insist on reverse-engineering it, study the code and the queries it uses to determine which dependencies you're failing to create by manually hacking raw database content without safeties.

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

16 Feb 2010, 5:30 AM
#5
chris112 avatar

chris112

New Zenner

Join Date:
Apr 2008
Posts:
10
Plugin Contributions:
0

Post #5 by chris112

Dr byte
If that is your answer how do you enter about 1200 values at once through the admin.

And is it hacking if your just importing?

Cmon. With so many posts, at least give me something constructive to work with.

16 Feb 2010, 5:48 AM
#6
drbyte avatar

drbyte

Sensei

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

Post #6 by drbyte

chris112:

Cmon. With so many posts, at least give me something constructive to work with.
Well, since I don't know that part of the code off the top of my head without looking, just like you, I would go look at the code and figure it out.
a) when you're entering those values in the admin, you have a URL for the page you're on, and that URL contains the filename driving that page.
b) so, open that page in your favorite text/code editor, and follow the logic to find out how it saves the data ... what fields into what tables, etc.

Without going and studying the code for you, I can't answer it. So, I'm giving you the next best thing: how to find out the answer for yourself.

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

16 Feb 2010, 10:54 AM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #7 by kuroi

There isn't currently a way do doing bulk uploads of products or attributes from the Admin in the base Zen Cart. Easy Populate provides an extension for doing this for for products and I believe that the advanced version (which is paid for) may do this for attributes, though I have never used it.

I have done bulk uploads, several times, so it can be done. But it's complex because of the relationships between options, option values and products. Each of my bulk uploads has been purpose written to fit the specific way in which the data is arriving and who it is going to be used.

Although I've done this several times, I still go back each time to double check that I've got those relationships right. So despite his extensive knowledge of Zen Cart, it's not that DrByte knows your answer but is withholding it. Instead his last two posts encourage you down the path that he would have to take to find your answer, but which would be much more valuable for you to do yourself.

In the meantime, a possible clue ... in your posts and screenshots I can't see any evidence of you linking your option values to any options ...

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)