• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

mcnerney
#1 Posted : Friday, February 16, 2007 10:59:07 AM(UTC)
mcnerney

Rank: Member

Joined: 10/1/2005(UTC)
Posts: 17

OBJECTIVE
I have imported over 2,000 products in a BV5 store using the BV Import tool that does not support the import of shared choices.
I have defined 8 Shared Choice fields using "Catalog - Shared Choices".
I need to add the 8 shared choice fields to each of the 2,000+ products.
This will take weeks if done manually. I would like to add the choice fields programmatically. I thought I could write a sile stored procedure that would populate bvc_ProductXInput with one entry per product/choice comibination.


ASSUMPTION
The 8 shared choice fields are stored in bvc_productinputs without a productID
I used the admin user interface to edit a product and added a shared choice usiing the Product Choices page.
An entry was made in bvc_ProductXInput which includes bvc_product.bvin, bvc_productinputs.bvin, and a date

I assume, therefore, that I can use a stored procedure to add product choices by populating the bvc_ProductXInput table with the appropriate pairs of bvins for products and shared choice fields



PROBLEM
When I manually populated bvc_ProductXInput with a bvin from bvc_product and a bvin from bvc_productinputs along with a date, the manually entered choice field was not visible in either the admin view of the product choices for the product or the store view of the choices for the product. Other choice fields entered using the admin user interface are visible.



THe attached gif file illustrates the table entries in question.



When I run a simple query to verify the links between the productxinput and the productinputs tables the manually populated choice fieled is picked up.



What am I missing?



Thanks!

-bob
mcnerney attached the following image(s):
SharedChoice.gif (45kb) downloaded 98 time(s).

You cannot view/download attachments. Try to login or register.
[color=gray>Bob]
Bernardi Auto Group[/color]

<FONT color=gray>www.bernardiparts.com
scott.mech
#2 Posted : Saturday, February 17, 2007 8:00:14 PM(UTC)
scott.mech

Rank: Member

Joined: 4/4/2004(UTC)
Posts: 670

where is your output of bvc_ProductChoiceCombinations? is this your problem?


did you test -

1. snapshot of db

2. human creation of your 1 product with choices per your goal.

3. snapshot of db

4. sql compare utility to see differences between databases?



Scott Mech

[email protected]
mcnerney
#3 Posted : Monday, February 19, 2007 9:16:49 AM(UTC)
mcnerney

Rank: Member

Joined: 10/1/2005(UTC)
Posts: 17

I am puzzled. I deleted all choices for the test product. I then added a choice using the sql interface. Unlike the last time, I found the choice displayed as I would expect in both the admin and store-front user interfaces. Not sure what I did differently.
Regards,

-bob
[color=gray>Bob]
Bernardi Auto Group[/color]

<FONT color=gray>www.bernardiparts.com
mcnerney
#4 Posted : Thursday, March 8, 2007 9:18:13 AM(UTC)
mcnerney

Rank: Member

Joined: 10/1/2005(UTC)
Posts: 17

In case my prior posting misled someone, I wanted to clarify why I was confused and where my assumptions were incorrect.

I assumed that the assignment of an existing shared choice to a product was accomplished by placing an entry into bvc_productXinput. This is incorrect. An entry must also be placed in bvc_productchoiceinputorder.

I didn't catch this in my initial testing because entries in bvc_productchoiceinputorder are not removed when the Admin site is used to remove a shared choice from a product. Thus, the entries were already in the table for some products and not others.

-bob
[color=gray>Bob]
Bernardi Auto Group[/color]

<FONT color=gray>www.bernardiparts.com
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2025 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012