Hi Yellow,


using Alpha 1 rev 39 (I think) and the option "And Cross sell 1 way only?" I got the error which shows: CROSS_SELL_NO_MAIN_FOUND (I did not upload the language file yet, but that's no problem).

I fixed it like this:
Code:
    if ($_POST['cross_sell_one_way'] == 1)
      if(count($product_id_array)>0){
        $_POST['main_product_id'] = zen_db_prepare_input($_POST['product_id'][0]);
        if(empty($_POST['main_product_id']))
          $messageStack->add(CROSS_SELL_NO_MAIN_FOUND, 'error');
        else
          foreach ($product_id_array as $id => $pid)
            if($id > 0){
              add_new_cross_product($_POST['main_product_id'], $pid);
            }
      }
Not sure if that's how you would want to fix it, but it indicates where the problem is. The "if($id > 0)" part I added because the main product was cross selled to itself after only adding the first fix. (it looks like the actual problem is that 'main_product_id' is not posted by the form)

hth