Beispiel #1
0
                    $product_id = $product->save();
                    $pb->set_productbundle_product_relationship($product_id, $product_key, $product_bundle_id);
                    break;
                }
                //while
            }
            //foreach
            $pb->tax = 0;
            $pb->shipping = 0;
            $pb->save();
            //Save any product bundle comment
            if (isset($bundle['comment'])) {
                $product_bundle_note = new ProductBundleNote();
                $product_bundle_note->description = $bundle['comment'];
                $product_bundle_note->save();
                $pb->set_product_bundle_note_relationship($bundle_key, $product_bundle_note->id, $product_bundle_id);
            }
            $pb->set_productbundle_quote_relationship($focus->id, $product_bundle_id, $bundle_key);
            $focus->tax += $pb->tax;
            $focus->shipping += $pb->shipping;
            $focus->subtotal += $pb->subtotal;
            $focus->deal_tot += $pb->deal_tot;
            $focus->new_sub += $pb->new_sub;
            $focus->total += $pb->total;
        }
        //foreach
        //Save the quote
        $focus->save();
    }
    //foreach
}