Hi
Your module uses it's own function to gather the eligible product types but excludes products defined by other modules (eg uc_hotel).
Can you change it to use the built in function uc_product_types instead?

http://api.lullabot.com/uc_product_types

Would this cause any issues with the export?
Lee

Comments

alladdin’s picture

Yes, please. I need uc_hotel to get alone with your module.

Crazy Joker’s picture

My working version:

// get all node types that are registered by ubercart
function _uc_product_node_types() {
  $node_types = uc_product_types('types');
  $product_types = array();
  foreach ($node_types as $n) {
    $product_types[$n] = $n;
  }

  return $product_types;
}
alladdin’s picture

Crazy Joker, where should I put this code to make it workign?

Crazy Joker’s picture

Replace function _uc_product_node_types (lines from 139 to 147) in the module yml_export.module.
Dont't copy and paste "<?php" and "?>" tags.

restyler’s picture

fixed in latest dev (by removing the function at all), thanks

restyler’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

alladdin’s picture

I can confirm it is working now. Thank you