When i try to create a product from the 'cosmetics' content type (which is a product class)
i cannot see the ubercart google base integration settings.

If i try to create a product from the 'Product' content type i can see it fine.
Any ideas how to fix this?

Comments

jasonabc’s picture

Priority: Normal » Critical

confirmed. Marking as critical since if this doesn't work with Ubercart product classes it's pretty much unusable.

seancr’s picture

I fixed this for myself, but don't know how to commit the changes. The only content types that it was storing data for - or showing the edit form for, was hard coded. You need to open uc_gbase.module and change line 292, 301, and 159.

159 now look like:
if (in_array( $form['type']['#value'], array('copier', 'product'))) {

292, 301 now look like:
if(in_array($node->type, array('copier', 'product'))){

/* this just hard codes the problem for my install - but the right way to do this would be to query the database for the product classes - or provide through the admin the options for which product classes need to be allowed to be submitted */

compujohnny’s picture

Version: 6.x-1.0 » 6.x-2.0
Status: Active » Fixed

Fixed in latest dev branch

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

flyingyoda51’s picture

I am having this problem. Works for regular products but not products in product classes. Using 6.x-2.2.

flyingyoda51’s picture

Status: Closed (fixed) » Active
compujohnny’s picture

This feature was implemented in the Drupal 7 version, it was not backported to Drupal 6 yet

flyingyoda51’s picture

I am confused because you said it was fixed in the latest dev release this was back with 6-2.0, so shouldn't the fix be included in 6-2.2?

compujohnny’s picture

Status: Active » Fixed

I added it to the latest dev in 6.x, please test and let me know if you fins any more issues

flyingyoda51’s picture

I am now able to access uc_gbase within product classes with the latest dev release.

Thank you

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.