Add To Cart With Notes (woocommerce) - woocommerce

I am at very basic knowledge of coding and I am trying to do my own snippet to Add To Woocommerce cart upon Gravity Forms Submission.
I also want each item to have a custom note in the item meta.
The other problem I am facing is the form is coming up with an error message (a whole page saying 'string') BUT it is still adding "ONE" item to the cart - not all. No item note is being added.
I understand that it could be too long?
Does anyone know what I could be doing wrong here?
Thanks :)
add_action( 'gform_after_submission_12', 'post_to_third_party', 10, 2 );
function post_to_third_party( $entry, $form ) {
global $woocommerce;
// use this to find out $entry output
var_dump($entry);
$if=rgar( $entry, '2990' );
$note = rgar( $entry, '1601' );
$cart_item_data =rgar( $entry, '1601' );
$Product1AM01 = rgar( $entry,2639);
$Product2AFP601=rgar( $entry,2671);
$Product3AFP6015=rgar( $entry,2672);
$Product4AFID6SSU=rgar( $entry,2669);
$Product5AFID8SSU=rgar( $entry,2670);
$Product6AP101=rgar( $entry,2678);
$Product7AW8110=rgar( $entry,2685);
$Product8AW7100SU=rgar( $entry,2575);
$Product9AAB100=rgar( $entry,2696);
$Product10EGA60=rgar( $entry,2688);
$Product11AA01=rgar( $entry,2576);
$Product12AAS50=rgar( $entry,2577);
$Product13AW8000SU=rgar( $entry,2578);
$Product14BHB2538=rgar( $entry,2687);
$Product15AB3=rgar( $entry,2579);
$Product16ABD10=rgar( $entry,2580);
$Product17ABS1010SU=rgar( $entry,2581);
$Product18ABC10=rgar( $entry,2956);
$Product19ABC10SU=rgar( $entry,2658);
$Product20ST30SU=rgar( $entry,2582);
$Product21FCP03=rgar( $entry,2689);
$Product22FCP06=rgar( $entry,2690);
$Product23ABCH100SU=rgar( $entry,2650);
$Product24ABCH100=rgar( $entry,2660);
$Product25ABCH25=rgar( $entry,2949);
$Product26ABCH25SU=rgar( $entry,2647);
$Product27ABCH50SU=rgar( $entry,2648);
$Product28ABCH50=rgar( $entry,2945);
$Product29ABCH75=rgar( $entry,2661);
$Product30ABCH75SU=rgar( $entry,2649);
$Product31ACD1010SSU=rgar( $entry,2583);
$Product32ACD1020SSU=rgar( $entry,2584);
$Product33ACD2020SSU=rgar( $entry,2585);
$Product34AF100SU=rgar( $entry,2665);
$Product35AF25SU=rgar( $entry,2586);
$Product36AF50SU=rgar( $entry,2587);
$Product37AF75SU=rgar( $entry,2588);
$Product38ACA150=rgar( $entry,2589);
$Product39CWD001=rgar( $entry,2590);
$Product40ACM100SU=rgar( $entry,2659);
$Product41ACM150SU=rgar( $entry,2662);
$Product42ACM25SU=rgar( $entry,2663);
$Product43ACM50SU=rgar( $entry,2591);
$Product44ACM75SU=rgar( $entry,2592);
$Product45AD1007B=rgar( $entry,2664);
$Product46AD1000=rgar( $entry,2654);
$Product47AD1001=rgar( $entry,2655);
$Product48PTD06=rgar( $entry,2616);
$Product49AWDPB01=rgar( $entry,2593);
$Product50ACE50SU=rgar( $entry,2646);
$Product51ATB130=rgar( $entry,2594);
$Product52ATB130SU=rgar( $entry,2694);
$Product53AEP1SSU=rgar( $entry,2595);
$Product54EB001=rgar( $entry,2596);
$Product55AFP701=rgar( $entry,2598);
$Product56AFP50125=rgar( $entry,2651);
$Product57AFP350=rgar( $entry,2599);
$Product58AFP506=rgar( $entry,2652);
$Product59AFP501=rgar( $entry,2601);
$Product60AFP5015=rgar( $entry,2600);
$Product61AFS001=rgar( $entry,2619);
$Product62AGB001=rgar( $entry,2602);
$Product63AGL001=rgar( $entry,2603);
$Product64AFP11=rgar( $entry,2625);
$Product65AFB13=rgar( $entry,2656);
$Product66AGS755SSU=rgar( $entry,2677);
$Product67AGS753SSU=rgar( $entry,2604);
$Product68AGNPF10=rgar( $entry,2675);
$Product69AGNPF02=rgar( $entry,2605);
$Product70AFH50SU=rgar( $entry,2666);
$Product71AFH75SU=rgar( $entry,2645);
$Product72AII5000=rgar( $entry,2947);
$Product73AII2500=rgar( $entry,2946);
$Product74KD160=rgar( $entry,2608);
$Product75APD101SSU=rgar( $entry,2611);
$Product76APD102SSU=rgar( $entry,2612);
$Product77APD100SSU=rgar( $entry,2614);
$Product78APD50SSU=rgar( $entry,2613);
$Product79APD75SSU=rgar( $entry,2653);
$Product80AP312SU=rgar( $entry,2609);
$Product81AP325DSU=rgar( $entry,2679);
$Product82ND90=rgar( $entry,2622);
$Product83APD100S=rgar( $entry,2680);
$Product84APD101S=rgar( $entry,2681);
$Product85APD102S=rgar( $entry,2682);
$Product86APD50S=rgar( $entry,2683);
$Product87APD75S=rgar( $entry,2684);
$Product88AGS75=rgar( $entry,2676);
$Product89ABN10SU=rgar( $entry,2695);
$Product90ABN10=rgar( $entry,2626);
$Product91ASN096P=rgar( $entry,2615);
$Product92AP10125=rgar( $entry,2617);
$Product93AP1015=rgar( $entry,2618);
$Product94PPC60=rgar( $entry,2691);
$Product95AWP16100SU=rgar( $entry,2686);
$Product96ASP12=rgar( $entry,2620);
$Product97ASC13=rgar( $entry,2621);
$Product98AFSB10=rgar( $entry,2673);
$Product99AFSB10SU=rgar( $entry,2674);
$Product100AFHSB100=rgar( $entry,2667);
$Product101AFHSB100SU=rgar( $entry,2668);
$Product102AW1060SU=rgar( $entry,2597);
$Product103SOFTTWR=rgar( $entry,2692);
$Product104ASP100SU=rgar( $entry,2624);
$Product105Stingoes25=rgar( $entry,2963);
$Product106AT25SU=rgar( $entry,2610);
$Product107AF9=rgar( $entry,2627);
$Product108USP19=rgar( $entry,2693);
$Product109AW1510SU=rgar( $entry,2644);
$Product110APWC7535SU=rgar( $entry,2623);
$Product111AWD13SSU=rgar( $entry,2628);
$Product112AWD14SSU=rgar( $entry,2629);
$Product113AWD15SSU=rgar( $entry,2630);
$Product114AFT25SU=rgar( $entry,2631);
$Product115AFPW010SU=rgar( $entry,2970);
$Product116AFPW015SU=rgar( $entry,2977);
$Quantity1AM01=rgar( $entry,2835);
$Quantity2AFP601=rgar( $entry,2793);
$Quantity3AFP6015=rgar( $entry,2799);
$Quantity4AFID6SSU=rgar( $entry,2781);
$Quantity5AFID8SSU=rgar( $entry,2787);
$Quantity6AP101=rgar( $entry,2841);
$Quantity7AW8110=rgar( $entry,2889);
$Quantity8AW7100SU=rgar( $entry,119);
$Quantity9AAB100=rgar( $entry,175);
$Quantity10EGA60=rgar( $entry,2907);
$Quantity11AA01=rgar( $entry,1278);
$Quantity12AAS50=rgar( $entry,198);
$Quantity13AW8000SU=rgar( $entry,216);
$Quantity14BHB2538=rgar( $entry,2901);
$Quantity15AB3=rgar( $entry,1987);
$Quantity16ABD10=rgar( $entry,234);
$Quantity17ABS1010SU=rgar( $entry,270);
$Quantity18ABC10=rgar( $entry,2960);
$Quantity19ABC10SU=rgar( $entry,2548);
$Quantity20ST30SU=rgar( $entry,306);
$Quantity21FCP03=rgar( $entry,2913);
$Quantity22FCP06=rgar( $entry,2919);
$Quantity23ABCH100SU=rgar( $entry,2530);
$Quantity24ABCH100=rgar( $entry,2943);
$Quantity25ABCH25=rgar( $entry,2953);
$Quantity26ABCH25SU=rgar( $entry,2534);
$Quantity27ABCH50SU=rgar( $entry,2542);
$Quantity28ABCH50=rgar( $entry,2713);
$Quantity29ABCH75=rgar( $entry,2719);
$Quantity30ABCH75SU=rgar( $entry,2538);
$Quantity31ACD1010SSU=rgar( $entry,324);
$Quantity32ACD1020SSU=rgar( $entry,342);
$Quantity33ACD2020SSU=rgar( $entry,360);
$Quantity34AF100SU=rgar( $entry,2757);
$Quantity35AF25SU=rgar( $entry,378);
$Quantity36AF50SU=rgar( $entry,396);
$Quantity37AF75SU=rgar( $entry,414);
$Quantity38ACA150=rgar( $entry,468);
$Quantity39CWD001=rgar( $entry,288);
$Quantity40ACM100SU=rgar( $entry,2731);
$Quantity41ACM150SU=rgar( $entry,2737);
$Quantity42ACM25SU=rgar( $entry,2743);
$Quantity43ACM50SU=rgar( $entry,522);
$Quantity44ACM75SU=rgar( $entry,540);
$Quantity45AD1007B=rgar( $entry,2751);
$Quantity46AD1000=rgar( $entry,2514);
$Quantity47AD1001=rgar( $entry,2518);
$Quantity48PTD06=rgar( $entry,1008);
$Quantity49AWDPB01=rgar( $entry,558);
$Quantity50ACE50SU=rgar( $entry,2554);
$Quantity51ATB130=rgar( $entry,576);
$Quantity52ATB130SU=rgar( $entry,2883);
$Quantity53AEP1SSU=rgar( $entry,1314);
$Quantity54EB001=rgar( $entry,612);
$Quantity55AFP701=rgar( $entry,630);
$Quantity56AFP50125=rgar( $entry,2526);
$Quantity57AFP350=rgar( $entry,2017);
$Quantity58AFP506=rgar( $entry,2522);
$Quantity59AFP501=rgar( $entry,1026);
$Quantity60AFP5015=rgar( $entry,2032);
$Quantity61AFS001=rgar( $entry,1404);
$Quantity62AGB001=rgar( $entry,684);
$Quantity63AGL001=rgar( $entry,1350);
$Quantity64AFP11=rgar( $entry,2246);
$Quantity65AFB13=rgar( $entry,2510);
$Quantity66AGS755SSU=rgar( $entry,2829);
$Quantity67AGS753SSU=rgar( $entry,702);
$Quantity68AGNPF10=rgar( $entry,2817);
$Quantity69AGNPF02=rgar( $entry,720);
$Quantity70AFH50SU=rgar( $entry,2763);
$Quantity71AFH75SU=rgar( $entry,2505);
$Quantity72AII5000=rgar( $entry,792);
$Quantity73AII2500=rgar( $entry,810);
$Quantity74KD160=rgar( $entry,864);
$Quantity75APD101SSU=rgar( $entry,1473);
$Quantity76APD102SSU=rgar( $entry,936);
$Quantity77APD100SSU=rgar( $entry,972);
$Quantity78APD50SSU=rgar( $entry,954);
$Quantity79APD75SSU=rgar( $entry,2560);
$Quantity80AP312SU=rgar( $entry,1368);
$Quantity81AP325DSU=rgar( $entry,2847);
$Quantity82ND90=rgar( $entry,1501);
$Quantity83APD100S=rgar( $entry,2853);
$Quantity84APD101S=rgar( $entry,2859);
$Quantity85APD102S=rgar( $entry,2865);
$Quantity86APD50S=rgar( $entry,2871);
$Quantity87APD75S=rgar( $entry,2877);
$Quantity88AGS75=rgar( $entry,2823);
$Quantity89ABN10SU=rgar( $entry,2725);
$Quantity90ABN10=rgar( $entry,1188);
$Quantity91ASN096P=rgar( $entry,990);
$Quantity92AP10125=rgar( $entry,1386);
$Quantity93AP1015=rgar( $entry,1487);
$Quantity94PPC60=rgar( $entry,2925);
$Quantity95AWP16100SU=rgar( $entry,2895);
$Quantity96ASP12=rgar( $entry,1080);
$Quantity97ASC13=rgar( $entry,1098);
$Quantity98AFSB10=rgar( $entry,2805);
$Quantity99AFSB10SU=rgar( $entry,2811);
$Quantity100AFHSB100=rgar( $entry,2769);
$Quantity101AFHSB100SU=rgar( $entry,2775);
$Quantity102AW1060SU=rgar( $entry,1332);
$Quantity103SOFTTWR=rgar( $entry,2931);
$Quantity104ASP100SU=rgar( $entry,1152);
$Quantity105Stingoes25=rgar( $entry,2967);
$Quantity106AT25SU=rgar( $entry,900);
$Quantity107AF9=rgar( $entry,1515);
$Quantity108USP19=rgar( $entry,2937);
$Quantity109AW1510SU=rgar( $entry,2482);
$Quantity110APWC7535SU=rgar( $entry,1134);
$Quantity111AWD13SSU=rgar( $entry,1206);
$Quantity112AWD14SSU=rgar( $entry,1224);
$Quantity113AWD15SSU=rgar( $entry,1242);
$Quantity114AFT25SU=rgar( $entry,1260);
$Quantity115AFPW010SU=rgar( $entry,2974);
$Quantity116AFPW015SU=rgar( $entry,2981);
WC()->cart->add_to_cart($Product1AM01,$Quantity1AM01);
WC()->cart->add_to_cart($Product2AFP601,$Quantity2AFP601);
WC()->cart->add_to_cart($Product3AFP6015,$Quantity3AFP6015);
WC()->cart->add_to_cart($Product4AFID6SSU,$Quantity4AFID6SSU);
WC()->cart->add_to_cart($Product5AFID8SSU,$Quantity5AFID8SSU);
WC()->cart->add_to_cart($Product6AP101,$Quantity6AP101);
WC()->cart->add_to_cart($Product7AW8110,$Quantity7AW8110);
WC()->cart->add_to_cart($Product8AW7100SU,$Quantity8AW7100SU);
WC()->cart->add_to_cart($Product9AAB100,$Quantity9AAB100);
WC()->cart->add_to_cart($Product10EGA60,$Quantity10EGA60);
WC()->cart->add_to_cart($Product11AA01,$Quantity11AA01);
WC()->cart->add_to_cart($Product12AAS50,$Quantity12AAS50);
WC()->cart->add_to_cart($Product13AW8000SU,$Quantity13AW8000SU);
WC()->cart->add_to_cart($Product14BHB2538,$Quantity14BHB2538);
WC()->cart->add_to_cart($Product15AB3,$Quantity15AB3);
WC()->cart->add_to_cart($Product16ABD10,$Quantity16ABD10);
WC()->cart->add_to_cart($Product17ABS1010SU,$Quantity17ABS1010SU);
WC()->cart->add_to_cart($Product18ABC10,$Quantity18ABC10);
WC()->cart->add_to_cart($Product19ABC10SU,$Quantity19ABC10SU);
WC()->cart->add_to_cart($Product20ST30SU,$Quantity20ST30SU);
WC()->cart->add_to_cart($Product21FCP03,$Quantity21FCP03);
WC()->cart->add_to_cart($Product22FCP06,$Quantity22FCP06);
WC()->cart->add_to_cart($Product23ABCH100SU,$Quantity23ABCH100SU);
WC()->cart->add_to_cart($Product24ABCH100,$Quantity24ABCH100);
WC()->cart->add_to_cart($Product25ABCH25,$Quantity25ABCH25);
WC()->cart->add_to_cart($Product26ABCH25SU,$Quantity26ABCH25SU);
WC()->cart->add_to_cart($Product27ABCH50SU,$Quantity27ABCH50SU);
WC()->cart->add_to_cart($Product28ABCH50,$Quantity28ABCH50);
WC()->cart->add_to_cart($Product29ABCH75,$Quantity29ABCH75);
WC()->cart->add_to_cart($Product30ABCH75SU,$Quantity30ABCH75SU);
WC()->cart->add_to_cart($Product31ACD1010SSU,$Quantity31ACD1010SSU);
WC()->cart->add_to_cart($Product32ACD1020SSU,$Quantity32ACD1020SSU);
WC()->cart->add_to_cart($Product33ACD2020SSU,$Quantity33ACD2020SSU);
WC()->cart->add_to_cart($Product34AF100SU,$Quantity34AF100SU);
WC()->cart->add_to_cart($Product35AF25SU,$Quantity35AF25SU);
WC()->cart->add_to_cart($Product36AF50SU,$Quantity36AF50SU);
WC()->cart->add_to_cart($Product37AF75SU,$Quantity37AF75SU);
WC()->cart->add_to_cart($Product38ACA150,$Quantity38ACA150);
WC()->cart->add_to_cart($Product39CWD001,$Quantity39CWD001);
WC()->cart->add_to_cart($Product40ACM100SU,$Quantity40ACM100SU);
WC()->cart->add_to_cart($Product41ACM150SU,$Quantity41ACM150SU);
WC()->cart->add_to_cart($Product42ACM25SU,$Quantity42ACM25SU);
WC()->cart->add_to_cart($Product43ACM50SU,$Quantity43ACM50SU);
WC()->cart->add_to_cart($Product44ACM75SU,$Quantity44ACM75SU);
WC()->cart->add_to_cart($Product45AD1007B,$Quantity45AD1007B);
WC()->cart->add_to_cart($Product46AD1000,$Quantity46AD1000);
WC()->cart->add_to_cart($Product47AD1001,$Quantity47AD1001);
WC()->cart->add_to_cart($Product48PTD06,$Quantity48PTD06);
WC()->cart->add_to_cart($Product49AWDPB01,$Quantity49AWDPB01);
WC()->cart->add_to_cart($Product50ACE50SU,$Quantity50ACE50SU);
WC()->cart->add_to_cart($Product51ATB130,$Quantity51ATB130);
WC()->cart->add_to_cart($Product52ATB130SU,$Quantity52ATB130SU);
WC()->cart->add_to_cart($Product53AEP1SSU,$Quantity53AEP1SSU);
WC()->cart->add_to_cart($Product54EB001,$Quantity54EB001);
WC()->cart->add_to_cart($Product55AFP701,$Quantity55AFP701);
WC()->cart->add_to_cart($Product56AFP50125,$Quantity56AFP50125);
WC()->cart->add_to_cart($Product57AFP350,$Quantity57AFP350);
WC()->cart->add_to_cart($Product58AFP506,$Quantity58AFP506);
WC()->cart->add_to_cart($Product59AFP501,$Quantity59AFP501);
WC()->cart->add_to_cart($Product60AFP5015,$Quantity60AFP5015);
WC()->cart->add_to_cart($Product61AFS001,$Quantity61AFS001);
WC()->cart->add_to_cart($Product62AGB001,$Quantity62AGB001);
WC()->cart->add_to_cart($Product63AGL001,$Quantity63AGL001);
WC()->cart->add_to_cart($Product64AFP11,$Quantity64AFP11);
WC()->cart->add_to_cart($Product65AFB13,$Quantity65AFB13);
WC()->cart->add_to_cart($Product66AGS755SSU,$Quantity66AGS755SSU);
WC()->cart->add_to_cart($Product67AGS753SSU,$Quantity67AGS753SSU);
WC()->cart->add_to_cart($Product68AGNPF10,$Quantity68AGNPF10);
WC()->cart->add_to_cart($Product69AGNPF02,$Quantity69AGNPF02);
WC()->cart->add_to_cart($Product70AFH50SU,$Quantity70AFH50SU);
WC()->cart->add_to_cart($Product71AFH75SU,$Quantity71AFH75SU);
WC()->cart->add_to_cart($Product72AII5000,$Quantity72AII5000);
WC()->cart->add_to_cart($Product73AII2500,$Quantity73AII2500);
WC()->cart->add_to_cart($Product74KD160,$Quantity74KD160);
WC()->cart->add_to_cart($Product75APD101SSU,$Quantity75APD101SSU);
WC()->cart->add_to_cart($Product76APD102SSU,$Quantity76APD102SSU);
WC()->cart->add_to_cart($Product77APD100SSU,$Quantity77APD100SSU);
WC()->cart->add_to_cart($Product78APD50SSU,$Quantity78APD50SSU);
WC()->cart->add_to_cart($Product79APD75SSU,$Quantity79APD75SSU);
WC()->cart->add_to_cart($Product80AP312SU,$Quantity80AP312SU);
WC()->cart->add_to_cart($Product81AP325DSU,$Quantity81AP325DSU);
WC()->cart->add_to_cart($Product82ND90,$Quantity82ND90);
WC()->cart->add_to_cart($Product83APD100S,$Quantity83APD100S);
WC()->cart->add_to_cart($Product84APD101S,$Quantity84APD101S);
WC()->cart->add_to_cart($Product85APD102S,$Quantity85APD102S);
WC()->cart->add_to_cart($Product86APD50S,$Quantity86APD50S);
WC()->cart->add_to_cart($Product87APD75S,$Quantity87APD75S);
WC()->cart->add_to_cart($Product88AGS75,$Quantity88AGS75);
WC()->cart->add_to_cart($Product89ABN10SU,$Quantity89ABN10SU);
WC()->cart->add_to_cart($Product90ABN10,$Quantity90ABN10);
WC()->cart->add_to_cart($Product91ASN096P,$Quantity91ASN096P);
WC()->cart->add_to_cart($Product92AP10125,$Quantity92AP10125);
WC()->cart->add_to_cart($Product93AP1015,$Quantity93AP1015);
WC()->cart->add_to_cart($Product94PPC60,$Quantity94PPC60);
WC()->cart->add_to_cart($Product95AWP16100SU,$Quantity95AWP16100SU);
WC()->cart->add_to_cart($Product96ASP12,$Quantity96ASP12);
WC()->cart->add_to_cart($Product97ASC13,$Quantity97ASC13);
WC()->cart->add_to_cart($Product98AFSB10,$Quantity98AFSB10);
WC()->cart->add_to_cart($Product99AFSB10SU,$Quantity99AFSB10SU);
WC()->cart->add_to_cart($Product100AFHSB100,$Quantity100AFHSB100);
WC()->cart->add_to_cart($Product101AFHSB100SU,$Quantity101AFHSB100SU);
WC()->cart->add_to_cart($Product102AW1060SU,$Quantity102AW1060SU);
WC()->cart->add_to_cart($Product103SOFTTWR,$Quantity103SOFTTWR);
WC()->cart->add_to_cart($Product104ASP100SU,$Quantity104ASP100SU);
WC()->cart->add_to_cart($Product105Stingoes25,$Quantity105Stingoes25);
WC()->cart->add_to_cart($Product106AT25SU,$Quantity106AT25SU);
WC()->cart->add_to_cart($Product107AF9,$Quantity107AF9);
WC()->cart->add_to_cart($Product108USP19,$Quantity108USP19);
WC()->cart->add_to_cart($Product109AW1510SU,$Quantity109AW1510SU);
WC()->cart->add_to_cart($Product110APWC7535SU,$Quantity110APWC7535SU);
WC()->cart->add_to_cart($Product111AWD13SSU,$Quantity111AWD13SSU);
WC()->cart->add_to_cart($Product112AWD14SSU,$Quantity112AWD14SSU);
WC()->cart->add_to_cart($Product113AWD15SSU,$Quantity113AWD15SSU);
WC()->cart->add_to_cart($Product114AFT25SU,$Quantity114AFT25SU);
WC()->cart->add_to_cart($Product115AFPW010SU,$Quantity115AFPW010SU);
WC()->cart->add_to_cart($Product116AFPW015SU,$Quantity116AFPW015SU);
foreach ($item->get_items() as $item_key => $item ) {
$item->add_meta_data( 'Belonging to kit', $note, true );}
}

I have altered my code so it now adds the items and custom meta to cart....
function post_to_third_party( $entry, $form ) {
global $woocommerce;
// use this to find out $entry output
var_dump($entry);
$doyouorder=rgar( $entry, '2990' );
$kitnote = rgar( $entry, '1601' );
$Product1AM01 = rgar( $entry,'2639');
$Product2AFP601=rgar( $entry,'2671');
$Product3AFP6015=rgar( $entry,'2672');
$Product4AFID6SSU=rgar( $entry,'2669');
$Product5AFID8SSU=rgar( $entry,'2670');
$Product6AP101=rgar( $entry,'2678');
$Product7AW8110=rgar( $entry,'2685');
$Product8AW7100SU=rgar( $entry,'2575');
$Product9AAB100=rgar( $entry,'2696');
$Product10EGA60=rgar( $entry,'2688');
$Product11AA01=rgar( $entry,'2576');
$Product12AAS50=rgar( $entry,'2577');
$Product13AW8000SU=rgar( $entry,'2578');
$Product14BHB2538=rgar( $entry,'2687');
$Product15AB3=rgar( $entry,'2579');
$Product16ABD10=rgar( $entry,'2580');
$Product17ABS1010SU=rgar( $entry,'2581');
$Product18ABC10=rgar( $entry,'2956');
$Product19ABC10SU=rgar( $entry,'2658');
$Product20ST30SU=rgar( $entry,'2582');
$Product21FCP03=rgar( $entry,'2689');
$Product22FCP06=rgar( $entry,'2690');
$Product23ABCH100SU=rgar( $entry,'2650');
$Product24ABCH100=rgar( $entry,'2660');
$Product25ABCH25=rgar( $entry,'2949');
$Product26ABCH25SU=rgar( $entry,'2647');
$Product27ABCH50SU=rgar( $entry,'2648');
$Product28ABCH50=rgar( $entry,'2945');
$Product29ABCH75=rgar( $entry,'2661');
$Product30ABCH75SU=rgar( $entry,'2649');
$Product31ACD1010SSU=rgar( $entry,'2583');
$Product32ACD1020SSU=rgar( $entry,'2584');
$Product33ACD2020SSU=rgar( $entry,'2585');
$Product34AF100SU=rgar( $entry,'2665');
$Product35AF25SU=rgar( $entry,'2586');
$Product36AF50SU=rgar( $entry,'2587');
$Product37AF75SU=rgar( $entry,'2588');
$Product38ACA150=rgar( $entry,'2589');
$Product39CWD001=rgar( $entry,'2590');
$Product40ACM100SU=rgar( $entry,'2659');
$Product41ACM150SU=rgar( $entry,'2662');
$Product42ACM25SU=rgar( $entry,'2663');
$Product43ACM50SU=rgar( $entry,'2591');
$Product44ACM75SU=rgar( $entry,'2592');
$Product45AD1007B=rgar( $entry,'2664');
$Product46AD1000=rgar( $entry,'2654');
$Product47AD1001=rgar( $entry,'2655');
$Product48PTD06=rgar( $entry,'2616');
$Product49AWDPB01=rgar( $entry,'2593');
$Product50ACE50SU=rgar( $entry,'2646');
$Product51ATB130=rgar( $entry,'2594');
$Product52ATB130SU=rgar( $entry,'2694');
$Product53AEP1SSU=rgar( $entry,'2595');
$Product54EB001=rgar( $entry,'2596');
$Product55AFP701=rgar( $entry,'2598');
$Product56AFP50125=rgar( $entry,'2651');
$Product57AFP350=rgar( $entry,'2599');
$Product58AFP506=rgar( $entry,'2652');
$Product59AFP501=rgar( $entry,'2601');
$Product60AFP5015=rgar( $entry,'2600');
$Product61AFS001=rgar( $entry,'2619');
$Product62AGB001=rgar( $entry,'2602');
$Product63AGL001=rgar( $entry,'2603');
$Product64AFP11=rgar( $entry,'2625');
$Product65AFB13=rgar( $entry,'2656');
$Product66AGS755SSU=rgar( $entry,'2677');
$Product67AGS753SSU=rgar( $entry,'2604');
$Product68AGNPF10=rgar( $entry,'2675');
$Product69AGNPF02=rgar( $entry,'2605');
$Product70AFH50SU=rgar( $entry,'2666');
$Product71AFH75SU=rgar( $entry,'2645');
$Product72AII5000=rgar( $entry,'2947');
$Product73AII2500=rgar( $entry,'2946');
$Product74KD160=rgar( $entry,'2608');
$Product75APD101SSU=rgar( $entry,'2611');
$Product76APD102SSU=rgar( $entry,'2612');
$Product77APD100SSU=rgar( $entry,'2614');
$Product78APD50SSU=rgar( $entry,'2613');
$Product79APD75SSU=rgar( $entry,'2653');
$Product80AP312SU=rgar( $entry,'2609');
$Product81AP325DSU=rgar( $entry,'2679');
$Product82ND90=rgar( $entry,'2622');
$Product83APD100S=rgar( $entry,'2680');
$Product84APD101S=rgar( $entry,'2681');
$Product85APD102S=rgar( $entry,'2682');
$Product86APD50S=rgar( $entry,'2683');
$Product87APD75S=rgar( $entry,'2684');
$Product88AGS75=rgar( $entry,'2676');
$Product89ABN10SU=rgar( $entry,'2695');
$Product90ABN10=rgar( $entry,'2626');
$Product91ASN096P=rgar( $entry,'2615');
$Product92AP10125=rgar( $entry,'2617');
$Product93AP1015=rgar( $entry,'2618');
$Product94PPC60=rgar( $entry,'2691');
$Product95AWP16100SU=rgar( $entry,'2686');
$Product96ASP12=rgar( $entry,'2620');
$Product97ASC13=rgar( $entry,'2621');
$Product98AFSB10=rgar( $entry,'2673');
$Product99AFSB10SU=rgar( $entry,'2674');
$Product100AFHSB100=rgar( $entry,'2667');
$Product101AFHSB100SU=rgar( $entry,'2668');
$Product102AW1060SU=rgar( $entry,'2597');
$Product103SOFTTWR=rgar( $entry,'2692');
$Product104ASP100SU=rgar( $entry,'2624');
$Product105Stingoes25=rgar( $entry,'2963');
$Product106AT25SU=rgar( $entry,'2610');
$Product107AF9=rgar( $entry,'2627');
$Product108USP19=rgar( $entry,'2693');
$Product109AW1510SU=rgar( $entry,'2644');
$Product110APWC7535SU=rgar( $entry,'2623');
$Product111AWD13SSU=rgar( $entry,'2628');
$Product112AWD14SSU=rgar( $entry,'2629');
$Product113AWD15SSU=rgar( $entry,'2630');
$Product114AFT25SU=rgar( $entry,'2631');
$Product115AFPW010SU=rgar( $entry,'2970');
$Product116AFPW015SU=rgar( $entry,'2977');
$Quantity1AM01=rgar( $entry,'2835');
$Quantity2AFP601=rgar( $entry,'2793');
$Quantity3AFP6015=rgar( $entry,'2799');
$Quantity4AFID6SSU=rgar( $entry,'2781');
$Quantity5AFID8SSU=rgar( $entry,'2787');
$Quantity6AP101=rgar( $entry,'2841');
$Quantity7AW8110=rgar( $entry,'2889');
$Quantity8AW7100SU=rgar( $entry,'119');
$Quantity9AAB100=rgar( $entry,'175');
$Quantity10EGA60=rgar( $entry,'2907');
$Quantity11AA01=rgar( $entry,'1278');
$Quantity12AAS50=rgar( $entry,'198');
$Quantity13AW8000SU=rgar( $entry,'216');
$Quantity14BHB2538=rgar( $entry,'2901');
$Quantity15AB3=rgar( $entry,'1987');
$Quantity16ABD10=rgar( $entry,'234');
$Quantity17ABS1010SU=rgar( $entry,'270');
$Quantity18ABC10=rgar( $entry,'2960');
$Quantity19ABC10SU=rgar( $entry,'2548');
$Quantity20ST30SU=rgar( $entry,'306');
$Quantity21FCP03=rgar( $entry,'2913');
$Quantity22FCP06=rgar( $entry,'2919');
$Quantity23ABCH100SU=rgar( $entry,'2530');
$Quantity24ABCH100=rgar( $entry,'2943');
$Quantity25ABCH25=rgar( $entry,'2953');
$Quantity26ABCH25SU=rgar( $entry,'2534');
$Quantity27ABCH50SU=rgar( $entry,'2542');
$Quantity28ABCH50=rgar( $entry,'2713');
$Quantity29ABCH75=rgar( $entry,'2719');
$Quantity30ABCH75SU=rgar( $entry,'2538');
$Quantity31ACD1010SSU=rgar( $entry,'324');
$Quantity32ACD1020SSU=rgar( $entry,'342');
$Quantity33ACD2020SSU=rgar( $entry,'360');
$Quantity34AF100SU=rgar( $entry,'2757');
$Quantity35AF25SU=rgar( $entry,'378');
$Quantity36AF50SU=rgar( $entry,'396');
$Quantity37AF75SU=rgar( $entry,'414');
$Quantity38ACA150=rgar( $entry,'468');
$Quantity39CWD001=rgar( $entry,'288');
$Quantity40ACM100SU=rgar( $entry,'2731');
$Quantity41ACM150SU=rgar( $entry,'2737');
$Quantity42ACM25SU=rgar( $entry,'2743');
$Quantity43ACM50SU=rgar( $entry,'522');
$Quantity44ACM75SU=rgar( $entry,'540');
$Quantity45AD1007B=rgar( $entry,'2751');
$Quantity46AD1000=rgar( $entry,'2514');
$Quantity47AD1001=rgar( $entry,'2518');
$Quantity48PTD06=rgar( $entry,'1008');
$Quantity49AWDPB01=rgar( $entry,'558');
$Quantity50ACE50SU=rgar( $entry,'2554');
$Quantity51ATB130=rgar( $entry,'576');
$Quantity52ATB130SU=rgar( $entry,'2883');
$Quantity53AEP1SSU=rgar( $entry,'1314');
$Quantity54EB001=rgar( $entry,'612');
$Quantity55AFP701=rgar( $entry,'630');
$Quantity56AFP50125=rgar( $entry,'2526');
$Quantity57AFP350=rgar( $entry,'2017');
$Quantity58AFP506=rgar( $entry,'2522');
$Quantity59AFP501=rgar( $entry,'1026');
$Quantity60AFP5015=rgar( $entry,'2032');
$Quantity61AFS001=rgar( $entry,'1404');
$Quantity62AGB001=rgar( $entry,'684');
$Quantity63AGL001=rgar( $entry,'1350');
$Quantity64AFP11=rgar( $entry,'2246');
$Quantity65AFB13=rgar( $entry,'2510');
$Quantity66AGS755SSU=rgar( $entry,'2829');
$Quantity67AGS753SSU=rgar( $entry,'702');
$Quantity68AGNPF10=rgar( $entry,'2817');
$Quantity69AGNPF02=rgar( $entry,'720');
$Quantity70AFH50SU=rgar( $entry,'2763');
$Quantity71AFH75SU=rgar( $entry,'2505');
$Quantity72AII5000=rgar( $entry,'792');
$Quantity73AII2500=rgar( $entry,'810');
$Quantity74KD160=rgar( $entry,'864');
$Quantity75APD101SSU=rgar( $entry,'1473');
$Quantity76APD102SSU=rgar( $entry,'936');
$Quantity77APD100SSU=rgar( $entry,'972');
$Quantity78APD50SSU=rgar( $entry,'954');
$Quantity79APD75SSU=rgar( $entry,'2560');
$Quantity80AP312SU=rgar( $entry,'1368');
$Quantity81AP325DSU=rgar( $entry,'2847');
$Quantity82ND90=rgar( $entry,'1501');
$Quantity83APD100S=rgar( $entry,'2853');
$Quantity84APD101S=rgar( $entry,'2859');
$Quantity85APD102S=rgar( $entry,'2865');
$Quantity86APD50S=rgar( $entry,'2871');
$Quantity87APD75S=rgar( $entry,'2877');
$Quantity88AGS75=rgar( $entry,'2823');
$Quantity89ABN10SU=rgar( $entry,'2725');
$Quantity90ABN10=rgar( $entry,'1188');
$Quantity91ASN096P=rgar( $entry,'990');
$Quantity92AP10125=rgar( $entry,'1386');
$Quantity93AP1015=rgar( $entry,'1487');
$Quantity94PPC60=rgar( $entry,'2925');
$Quantity95AWP16100SU=rgar( $entry,'2895');
$Quantity96ASP12=rgar( $entry,'1080');
$Quantity97ASC13=rgar( $entry,'1098');
$Quantity98AFSB10=rgar( $entry,'2805');
$Quantity99AFSB10SU=rgar( $entry,'2811');
$Quantity100AFHSB100=rgar( $entry,'2769');
$Quantity101AFHSB100SU=rgar( $entry,'2775');
$Quantity102AW1060SU=rgar( $entry,'1332');
$Quantity103SOFTTWR=rgar( $entry,'2931');
$Quantity104ASP100SU=rgar( $entry,'1152');
$Quantity105Stingoes25=rgar( $entry,'2967');
$Quantity106AT25SU=rgar( $entry,'900');
$Quantity107AF9=rgar( $entry,'1515');
$Quantity108USP19=rgar( $entry,'2937');
$Quantity109AW1510SU=rgar( $entry,'2482');
$Quantity110APWC7535SU=rgar( $entry,'1134');
$Quantity111AWD13SSU=rgar( $entry,'1206');
$Quantity112AWD14SSU=rgar( $entry,'1224');
$Quantity113AWD15SSU=rgar( $entry,'1242');
$Quantity114AFT25SU=rgar( $entry,'1260');
$Quantity115AFPW010SU=rgar( $entry,'2974');
$Quantity116AFPW015SU=rgar( $entry,'2981');
$word = "created";
// Test if string contains the word
if(strpos($doyouorder, $word) !== true){
WC()->cart->set_session();
WC()->cart->add_to_cart($Product1AM01,$Quantity1AM01,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product2AFP601,$Quantity2AFP601,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product3AFP6015,$Quantity3AFP6015,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product4AFID6SSU,$Quantity4AFID6SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product5AFID8SSU,$Quantity5AFID8SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product6AP101,$Quantity6AP101,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product7AW8110,$Quantity7AW8110,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product8AW7100SU,$Quantity8AW7100SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product9AAB100,$Quantity9AAB100,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product10EGA60,$Quantity10EGA60,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product11AA01,$Quantity11AA01,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product12AAS50,$Quantity12AAS50,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product13AW8000SU,$Quantity13AW8000SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product14BHB2538,$Quantity14BHB2538,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product15AB3,$Quantity15AB3,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product16ABD10,$Quantity16ABD10,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product17ABS1010SU,$Quantity17ABS1010SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product18ABC10,$Quantity18ABC10,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product19ABC10SU,$Quantity19ABC10SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product20ST30SU,$Quantity20ST30SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product21FCP03,$Quantity21FCP03,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product22FCP06,$Quantity22FCP06,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product23ABCH100SU,$Quantity23ABCH100SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product24ABCH100,$Quantity24ABCH100,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product25ABCH25,$Quantity25ABCH25,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product26ABCH25SU,$Quantity26ABCH25SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product27ABCH50SU,$Quantity27ABCH50SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product28ABCH50,$Quantity28ABCH50,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product29ABCH75,$Quantity29ABCH75,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product30ABCH75SU,$Quantity30ABCH75SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product31ACD1010SSU,$Quantity31ACD1010SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product32ACD1020SSU,$Quantity32ACD1020SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product33ACD2020SSU,$Quantity33ACD2020SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product34AF100SU,$Quantity34AF100SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product35AF25SU,$Quantity35AF25SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product36AF50SU,$Quantity36AF50SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product37AF75SU,$Quantity37AF75SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product38ACA150,$Quantity38ACA150,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product39CWD001,$Quantity39CWD001,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product40ACM100SU,$Quantity40ACM100SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product41ACM150SU,$Quantity41ACM150SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product42ACM25SU,$Quantity42ACM25SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product43ACM50SU,$Quantity43ACM50SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product44ACM75SU,$Quantity44ACM75SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product45AD1007B,$Quantity45AD1007B,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product46AD1000,$Quantity46AD1000,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product47AD1001,$Quantity47AD1001,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product48PTD06,$Quantity48PTD06,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product49AWDPB01,$Quantity49AWDPB01,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product50ACE50SU,$Quantity50ACE50SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product51ATB130,$Quantity51ATB130,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product52ATB130SU,$Quantity52ATB130SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product53AEP1SSU,$Quantity53AEP1SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product54EB001,$Quantity54EB001,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product55AFP701,$Quantity55AFP701,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product56AFP50125,$Quantity56AFP50125,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product57AFP350,$Quantity57AFP350,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product58AFP506,$Quantity58AFP506,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product59AFP501,$Quantity59AFP501,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product60AFP5015,$Quantity60AFP5015,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product61AFS001,$Quantity61AFS001,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product62AGB001,$Quantity62AGB001,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product63AGL001,$Quantity63AGL001,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product64AFP11,$Quantity64AFP11,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product65AFB13,$Quantity65AFB13,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product66AGS755SSU,$Quantity66AGS755SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product67AGS753SSU,$Quantity67AGS753SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product68AGNPF10,$Quantity68AGNPF10,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product69AGNPF02,$Quantity69AGNPF02,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product70AFH50SU,$Quantity70AFH50SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product71AFH75SU,$Quantity71AFH75SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product72AII5000,$Quantity72AII5000,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product73AII2500,$Quantity73AII2500,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product74KD160,$Quantity74KD160,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product75APD101SSU,$Quantity75APD101SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product76APD102SSU,$Quantity76APD102SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product77APD100SSU,$Quantity77APD100SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product78APD50SSU,$Quantity78APD50SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product79APD75SSU,$Quantity79APD75SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product80AP312SU,$Quantity80AP312SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product81AP325DSU,$Quantity81AP325DSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product82ND90,$Quantity82ND90,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product83APD100S,$Quantity83APD100S,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product84APD101S,$Quantity84APD101S,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product85APD102S,$Quantity85APD102S,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product86APD50S,$Quantity86APD50S,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product87APD75S,$Quantity87APD75S,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product88AGS75,$Quantity88AGS75,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product89ABN10SU,$Quantity89ABN10SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product90ABN10,$Quantity90ABN10,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product91ASN096P,$Quantity91ASN096P,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product92AP10125,$Quantity92AP10125,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product93AP1015,$Quantity93AP1015,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product94PPC60,$Quantity94PPC60,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product95AWP16100SU,$Quantity95AWP16100SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product96ASP12,$Quantity96ASP12,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product97ASC13,$Quantity97ASC13,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product98AFSB10,$Quantity98AFSB10,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product99AFSB10SU,$Quantity99AFSB10SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product100AFHSB100,$Quantity100AFHSB100,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product101AFHSB100SU,$Quantity101AFHSB100SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product102AW1060SU,$Quantity102AW1060SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product103SOFTTWR,$Quantity103SOFTTWR,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product104ASP100SU,$Quantity104ASP100SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product105Stingoes25,$Quantity105Stingoes25,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product106AT25SU,$Quantity106AT25SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product107AF9,$Quantity107AF9,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product108USP19,$Quantity108USP19,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product109AW1510SU,$Quantity109AW1510SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product110APWC7535SU,$Quantity110APWC7535SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product111AWD13SSU,$Quantity111AWD13SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product112AWD14SSU,$Quantity112AWD14SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product113AWD15SSU,$Quantity113AWD15SSU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product114AFT25SU,$Quantity114AFT25SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product115AFPW010SU,$Quantity115AFPW010SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
WC()->cart->add_to_cart($Product116AFPW015SU,$Quantity116AFPW015SU,0,array(),array('add_size' => array('Belonging to Kit'=> $kitnote)));
}}

Related

Second taxonomy is not displayed in the front-end

i had created two taxonomies with register_taxonomy() with same settings
register_taxonomy(
'books',
'books',
array(
'label' => __( 'Kategorie' ),
'rewrite' => array( 'slug' => 'books' ),
'hierarchical' => true,
'show_admin_column' => true,
'show_ui' => true,
'capabilities' => array(
'manage_terms' => 'manage_books',
'edit_terms' => 'edit_books',
'delete_terms' => 'delete_books',
'assign_terms' => 'assign_books',
)
)
);
register_taxonomy(
'genre',
'genre',
array(
'label' => __( 'Tag' ),
'rewrite' => array( 'slug' => 'genre' ),
'hierarchical' => true,
'show_admin_column' => true,
'show_ui' => true,
'capabilities' => array(
'manage_terms' => 'manage_genre',
'edit_terms' => 'edit_genre',
'delete_terms' => 'delete_genre',
'assign_terms' => 'assign_genre',
)
)
);
If i want to display the terms for books it works but if i want to display the genre taxnomie, i get a null statement.
$books = get_the_terms( $id, 'books');
=> Get all Tags
$genre = get_the_terms( $id, 'genre');
=> Get NULL without any values
You need to add in default capabilities instead of 'manage_genre' to 'manage_categories' same for others, please check below code
register_taxonomy( 'genre',
'genre',
array(
'label' => __( 'Tag' ),
'rewrite' => array( 'slug' => 'genre' ),
'hierarchical' => true,
'show_admin_column' => true,
'show_ui' => true,
'capabilities' => array(
'manage_terms' => 'manage_categories',
'edit_terms' => 'manage_categories',
'delete_terms' => 'manage_categories',
'assign_terms' => 'edit_posts'
)
)
)

Julia v0.6: loaded JLD file does not show full contents

(Still) new to julia so bear with me. I have a file Pkg.jld that was saved with package versions from a julia v0.6 installation. I have the correct JLD installed but when I execute load("<path>/Pkgs.jld")["data"] the output is cut off. It prints
Dict{String,VersionNumber} with 139 entries:
"FFTW" => v"0.0.4"
"Gtk" => v"0.14.0"
... (more packages)
: => :
but it shows less than the claimed 139 entries. How can I see all the entries in the encoded dictionary?
You should get all entries by
show(stdout, "text/plain", yourdict)
Example:
julia> using Pkg; somedict = Pkg.installed()
Dict{String,Union{Nothing, VersionNumber}} with 61 entries:
"FFTW" => v"0.2.4"
"ForwardDiff" => v"0.10.0"
"Arpack" => v"0.3.0"
"Measurements" => v"1.0.2"
"Juno" => v"0.5.3"
"EllipsisNotation" => v"0.3.0"
"HTTP" => v"0.7.1"
"NPZ" => v"0.3.0"
"DataStructures" => v"0.14.0"
"Latexify" => v"0.5.1"
"SimpleWeightedGraphs" => v"1.1.0"
"PeriodicTable" => v"0.1.2"
"JLD2" => v"0.1.2"
"Knet" => v"1.1.1"
"DataFrames" => v"0.14.1"
"Distributions" => v"0.16.4"
"Helpers" => v"0.0.0"
"TimerOutputs" => v"0.4.0"
"IterativeSolvers" => v"0.7.1"
"HDF5" => v"0.10.2"
"Humanize" => v"1.0.0"
"LsqFit" => v"0.6.0"
⋮ => ⋮
julia> show(stdout, "text/plain", somedict)
Dict{String,Union{Nothing, VersionNumber}} with 61 entries:
"FFTW" => v"0.2.4"
"ForwardDiff" => v"0.10.0"
"Arpack" => v"0.3.0"
"Measurements" => v"1.0.2"
"Juno" => v"0.5.3"
"EllipsisNotation" => v"0.3.0"
"HTTP" => v"0.7.1"
"NPZ" => v"0.3.0"
"DataStructures" => v"0.14.0"
"Latexify" => v"0.5.1"
"SimpleWeightedGraphs" => v"1.1.0"
"PeriodicTable" => v"0.1.2"
"JLD2" => v"0.1.2"
"Knet" => v"1.1.1"
"DataFrames" => v"0.14.1"
"Distributions" => v"0.16.4"
"Helpers" => v"0.0.0"
"TimerOutputs" => v"0.4.0"
"IterativeSolvers" => v"0.7.1"
"HDF5" => v"0.10.2"
"Humanize" => v"1.0.0"
"LsqFit" => v"0.6.0"
"Polynomials" => v"0.5.1"
"ProgressMeter" => v"0.6.1"
"GPUArrays" => v"0.5.0"
"ApproxFun" => v"0.9.0"
"DistributedArrays" => v"0.5.1"
"CSV" => v"0.4.2"
"Revise" => v"0.7.12"
"Atom" => v"0.7.6"
"BenchmarkTools" => v"0.4.1"
"Optim" => v"0.17.1"
"ReverseDiff" => v"0.3.1"
"LinearOperators" => v"0.5.1"
"PyCall" => v"1.18.5"
"Traceur" => v"0.2.0"
"BandedMatrices" => v"0.5.2"
"DataFramesMeta" => v"0.4.0"
"JSON" => v"0.19.0"
"StatsBase" => v"0.25.0"
"IJulia" => v"1.13.0"
"Flux" => v"0.6.8"
"PyPlot" => v"2.6.3"
"Unitful" => v"0.12.0"
"StaticArrays" => v"0.9.2"
"DifferentialEquations" => v"5.3.1"
"Parameters" => v"0.10.1"
"UnicodePlots" => v"0.3.1"
"OnlineStats" => v"0.19.2"
"BlockBandedMatrices" => v"0.1.1"
"LightGraphs" => v"1.2.0"
"LinearMaps" => v"2.2.1"
"Query" => v"0.10.1"
"LaTeXStrings" => v"1.0.3"
"Rebugger" => v"0.1.4"
"OhMyREPL" => v"0.3.0"
"ProfileView" => v"0.4.0"
"AbstractTrees" => v"0.2.0"
"BlockArrays" => v"0.4.1"
"QuantumOptics" => v"0.6.1"
"Gtk" => v"0.16.4"
This in on Julia v1.0.1 but should basically work on v0.6 as well (remove the using Pkg and replace stdout -> STDOUT).

QT symbol lookup error

When I run qtcreator from the command line, I get the following error:
qtcreator: symbol lookup error: /usr/lib/x86_64-linux-gnu/libQt5Network.so.5: undefined symbol: _ZN16QLoggingCategoryD1Ev
If I type
nm -u /usr/lib/x86_64-linux-gnu/libQt5Network.so.5
I get no symbols
The system is ubuntu 16.10
Edit: as requested by G.M., the results of ldd qtcreator are listed as below
linux-vdso.so.1 => (0x00007ffc73fc9000)
libExtensionSystem.so.1 => /home/milo/Qt5.7.0/Tools/QtCreator/bin/./../lib/qtcreator/libExtensionSystem.so.1 (0x00007f8298dc8000)
libAggregation.so.1 => /home/milo/Qt5.7.0/Tools/QtCreator/bin/./../lib/qtcreator/libAggregation.so.1 (0x00007f8298bc2000)
libUtils.so.1 => /home/milo/Qt5.7.0/Tools/QtCreator/bin/./../lib/qtcreator/libUtils.so.1 (0x00007f8298818000)
libQt5Widgets.so.5 => /home/milo/Qt5.7.0/Tools/QtCreator/bin/./../lib/Qt/lib/libQt5Widgets.so.5 (0x00007f8297fc9000)
libQt5Gui.so.5 => /home/milo/Qt5.7.0/Tools/QtCreator/bin/./../lib/Qt/lib/libQt5Gui.so.5 (0x00007f8297820000)
libQt5Concurrent.so.5 => /home/milo/Qt5.7.0/Tools/QtCreator/bin/./../lib/Qt/lib/libQt5Concurrent.so.5 (0x00007f829761a000)
libQt5Network.so.5 => /home/milo/Qt5.7.0/Tools/QtCreator/bin/./../lib/Qt/lib/libQt5Network.so.5 (0x00007f82972bc000)
libQt5Core.so.5 => /home/milo/Qt5.7.0/Tools/QtCreator/bin/./../lib/Qt/lib/libQt5Core.so.5 (0x00007f8296ba0000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f82968fb000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f82966de000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f829635b000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8296052000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8295e3c000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8295a72000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f829586e000)
/lib64/ld-linux-x86-64.so.2 (0x000055c6ee10e000)
libQt5Qml.so.5 => /home/milo/Qt5.7.0/Tools/QtCreator/bin/./../lib/qtcreator/../Qt/lib/libQt5Qml.so.5 (0x00007f8295274000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f829505a000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f8294e51000)
libicui18n.so.56 => /home/milo/Qt5.7.0/Tools/QtCreator/bin/./../lib/Qt/lib/libicui18n.so.56 (0x00007f82949b7000)
libicuuc.so.56 => /home/milo/Qt5.7.0/Tools/QtCreator/bin/./../lib/Qt/lib/libicuuc.so.56 (0x00007f82945fe000)
libicudata.so.56 => /home/milo/Qt5.7.0/Tools/QtCreator/bin/./../lib/Qt/lib/libicudata.so.56 (0x00007f8292c1b000)
libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f8292a19000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f8292707000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f82924de000)
libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f82922db000)
libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f82920d7000)
libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f8291ed0000)
libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f8291ccd000)
libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f8291a9d000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f829188b000)
libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f8291688000)
libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f8291481000)
libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f829127f000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f8290f45000)
libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f8290d2b000)
libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f8290b26000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f8290904000)
libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f82906fd000)
libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f82904ee000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f829027d000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f8290079000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f828fe72000)

How to get beaver builder custom module settings data in same file where module settings created?

In beaver builder custom module development how to get created settings results in same page where I am creating those settings. For example if I am creating settings in custom.php file and those are available in frontend.php file, while I want to get those saved values in custom.php file ... is it possible ? How to do that if this is possible ?
Here is my data in custom.php file:
FLBuilder::register_module('FLExampleModuleGallery', array(
'general' => array( // Tab
'title' => __('General', 'fl-builder'), // Tab title
'sections' => array( // Tab Sections
'general' => array( // Section
'title' => __('Section Title', 'fl-builder'), // Section Title
'fields' => array( // Section Fields
'select_field' => array(
'type' => 'select',
'label' => __('Show Filter or Not?', 'fl-builder'),
'default' => 'option-1',
'options' => array(
'option-1' => __('Yes', 'fl-builder'),
'option-2' => __('No', 'fl-builder')
)
),
'no_of_posts' => array(
'type' => 'my-custom-field',
'label' => __('Provide your desired number of Posts', 'fl-builder'),
'default' => '8'
),
'no_of_cols' => array(
'type' => 'select',
'label' => __('Provide your desired number of Cols', 'fl-builder'),
'default' => 'option-2',
'options' => array(
'option-1' => __('2', 'fl-builder'),
'option-2' => __('3', 'fl-builder'),
'option-3' => __('4', 'fl-builder'),
'option-4' => __('6', 'fl-builder')
)
),
'show_overlay' => array(
'type' => 'select',
'label' => __('Do You Want to Show Overlay?', 'fl-builder'),
'default' => 'option-1',
'options' => array(
'option-1' => __('Yes', 'fl-builder'),
'option-2' => __('No', 'fl-builder')
)
),
'show_lightbox' => array(
'type' => 'select',
'label' => __('Do You Want to Open Image in lightbox?', 'fl-builder'),
'default' => 'option-1',
'options' => array(
'option-1' => __('Yes', 'fl-builder'),
'option-2' => __('No', 'fl-builder')
)
),
'show_lightbox_link' => array(
'type' => 'select',
'label' => __('Do You Want to show Link Icon in Lightbox?', 'fl-builder'),
'default' => 'option-1',
'options' => array(
'option-1' => __('Yes', 'fl-builder'),
'option-2' => __('No', 'fl-builder')
)
),
'show_title' => array(
'type' => 'select',
'label' => __('Do You Want to show Post Title?', 'fl-builder'),
'default' => 'option-1',
'options' => array(
'option-1' => __('Yes', 'fl-builder'),
'option-2' => __('No', 'fl-builder')
)
),
'show_title_link' => array(
'type' => 'select',
'label' => __('Do You Want to use Link in Post Title?', 'fl-builder'),
'default' => 'option-1',
'options' => array(
'option-1' => __('Yes', 'fl-builder'),
'option-2' => __('No', 'fl-builder')
)
),
'show_content' => array(
'type' => 'select',
'label' => __('Do You Want to show Post Content?', 'fl-builder'),
'default' => 'option-1',
'options' => array(
'option-1' => __('Yes', 'fl-builder'),
'option-2' => __('No', 'fl-builder')
)
),
'show_link' => array(
'type' => 'select',
'label' => __('Do You Want to show Post Link?', 'fl-builder'),
'default' => 'option-1',
'options' => array(
'option-1' => __('Yes', 'fl-builder'),
'option-2' => __('No', 'fl-builder')
)
),
)
)
)
),
));
Now here is the code in frontend.php to get those values:
$show_lightbox = $settings->show_lightbox;
$show_lightbox_link = $settings->show_lightbox_link;
$show_title = $settings->show_title;
$show_title_link = $settings->show_title_link;
$show_content = $settings->show_content;
$show_link = $settings->show_link;
How to get these above values in the custom.php file?
create a custom method in your own module class just like this:
public function custom_file(){
$settings = $this->settings;
require_once 'includes/custom.php';
}
now call that method to the enqueue_scripts() like this:
public function enqueue_scripts(){
$this->custom_file();
}
or in your frontend.php:
$module->custom_file();
finally create custom.php then check $settings value to see if it's working
var_dump($settings);
hopefully this would be acceptable by modern development standards

Drupal: how to make select list show taxonomy terms in hierarchy?

I have a block generated by Finder module (simple search mechanism). The block contains a form with select lists of various taxonomy dictionaries.
Their order, however seems quite random (neither, alphabetical, nor chronological) and lists regions in such an order with no hierarchy:
Italy, France, Poland, Benelux, ..., Upper Austria, ... Switzerland, Tyrol, Croatia
The order I expect is my dictionary hierarchy, so:
Austria, Austria>Tyrol, Austria>Upper Austria, Benelux, Croatia, France, Italy, Poland, Switzerland
Do You have any idea how to make the select list items appear in the dictionary hierarchy order?
Edit: Finder configuration:
array(
'finder_id' => '5',
'base' => 'views',
'title' => 'Search results',
'description' => 'Finder for search',
'path' => 'search',
'block' => '1',
'settings' => array(
'form_on_page' => 0,
'form' => array(
'prefix' => '',
'prefix_format' => '2',
'suffix' => '',
'suffix_format' => '2',
'button_text' => 'Find',
'go_text' => 'Go',
),
'advanced' => array(
'no_results' => array(
'no_results' => 'We can\'t find any tours. Try to search for other tours.',
),
'filter' => 1,
'submission' => 1,
'ahah' => 0,
'ahah_effect' => 'fade',
'element_combination' => '2',
'pager' => '0',
'match' => 'c',
'goto' => '',
'hide_args' => 1,
'arg_sep' => ',',
'empty_symbol' => '',
'show_links' => 1,
'show_admin_links' => 0,
'cache_finder_find' => '360',
'search' => '0',
'search_tab' => 'node',
),
'views' => array(
'view' => 'search_start',
'displays' => array(
'query' => 'default',
'output' => 'default',
),
'results' => '0',
'views_args' => array(
'args' => '',
'delimiter' => '/',
),
),
'i18nstrings' => array(
'title' => array(
'#i18nstrings' => 'finder:f5:title',
),
'description' => array(
'#i18nstrings' => 'finder:f5:description',
),
'settings' => array(
'form' => array(
'prefix' => array(
'#i18nstrings' => 'finder:f5:settings][form][prefix',
),
'suffix' => array(
'#i18nstrings' => 'finder:f5:settings][form][suffix',
),
'button_text' => array(
'#i18nstrings' => 'finder:f5:settings][form][button_text',
),
'go_text' => array(
'#i18nstrings' => 'finder:f5:settings][form][go_text',
),
),
'advanced' => array(
'no_results' => array(
'no_results' => array(
'#i18nstrings' => 'finder:f5:settings][advanced][no_results][no_results',
),
),
'pager' => array(
'#i18nstrings' => 'finder:f5:settings][advanced][pager',
),
'arg_sep' => array(
'#i18nstrings' => 'finder:f5:settings][advanced][arg_sep',
),
'empty_symbol' => array(
'#i18nstrings' => 'finder:f5:settings][advanced][empty_symbol',
),
'cache_finder_find' => array(
'#i18nstrings' => 'finder:f5:settings][advanced][cache_finder_find',
),
),
),
),
),
'elements' => array(
'0' => array(
'finder_element_id' => '13',
'finder_id' => '5',
'element' => 'select',
'title' => 'Region',
'weight' => '0',
'settings' => array(
'form' => array(
'description' => '',
'prefix' => '',
'prefix_format' => '2',
'suffix' => '',
'suffix_format' => '2',
'default_value' => '',
'required' => 0,
'size' => '',
'multiple' => 0,
'empty' => 'prepend',
'empty_text' => '- every region -',
),
'choices' => array(
'field' => array(
'term_data_1.name' => 'term_data_1.name',
),
'rewrite' => array(
'php' => '',
),
'displays' => array(
'query' => 'default',
),
'views' => array(
'args' => '',
'delimiter' => '/',
),
),
'advanced' => array(
'delimit' => '',
'value_combination' => '0',
),
'i18nstrings' => array(
'title' => array(
'#i18nstrings' => 'finder:e13:title',
),
'settings' => array(
'form' => array(
'description' => array(
'#i18nstrings' => 'finder:e13:settings][form][description',
),
'prefix' => array(
'#i18nstrings' => 'finder:e13:settings][form][prefix',
),
'suffix' => array(
'#i18nstrings' => 'finder:e13:settings][form][suffix',
),
'default_value' => array(
'#i18nstrings' => 'finder:e13:settings][form][default_value',
),
),
'advanced' => array(
'delimit' => array(
'#i18nstrings' => 'finder:e13:settings][advanced][delimit',
),
),
),
),
),
'element_handler' => array(
'#title' => 'Select list',
'#module' => 'finder_optionwidgets',
),
'#_finder_object' => '1',
),
'1' => array(
'finder_element_id' => '14',
'finder_id' => '5',
'element' => 'select',
'title' => 'Season',
'weight' => '1',
'settings' => array(
'form' => array(
'description' => '',
'prefix' => '',
'prefix_format' => '2',
'suffix' => '',
'suffix_format' => '2',
'default_value' => '',
'required' => 0,
'size' => '',
'multiple' => 0,
'empty' => 'prepend',
'empty_text' => '- every season -',
),
'choices' => array(
'field' => array(
'term_data_2.name' => 'term_data_2.name',
),
'rewrite' => array(
'php' => '',
),
'displays' => array(
'query' => 'default',
),
'views' => array(
'args' => '',
'delimiter' => '/',
),
),
'advanced' => array(
'delimit' => '',
'value_combination' => '0',
),
'i18nstrings' => array(
'title' => array(
'#i18nstrings' => 'finder:e14:title',
),
'settings' => array(
'form' => array(
'description' => array(
'#i18nstrings' => 'finder:e14:settings][form][description',
),
'prefix' => array(
'#i18nstrings' => 'finder:e14:settings][form][prefix',
),
'suffix' => array(
'#i18nstrings' => 'finder:e14:settings][form][suffix',
),
'default_value' => array(
'#i18nstrings' => 'finder:e14:settings][form][default_value',
),
),
'advanced' => array(
'delimit' => array(
'#i18nstrings' => 'finder:e14:settings][advanced][delimit',
),
),
),
),
),
'element_handler' => array(
'#title' => 'Select list',
'#module' => 'finder_optionwidgets',
),
'#_finder_object' => '1',
),
'2' => array(
'finder_element_id' => '15',
'finder_id' => '5',
'element' => 'select',
'title' => 'Theme',
'weight' => '2',
'settings' => array(
'form' => array(
'description' => '',
'prefix' => '',
'prefix_format' => '2',
'suffix' => '',
'suffix_format' => '2',
'default_value' => '',
'required' => 0,
'size' => '',
'multiple' => 0,
'empty' => 'prepend',
'empty_text' => '- every theme -',
),
'choices' => array(
'field' => array(
'term_data_3.name' => 'term_data_3.name',
),
'rewrite' => array(
'php' => '',
),
'displays' => array(
'query' => 'default',
),
'views' => array(
'args' => '',
'delimiter' => '/',
),
),
'advanced' => array(
'delimit' => '',
'value_combination' => '0',
),
'i18nstrings' => array(
'title' => array(
'#i18nstrings' => 'finder:e15:title',
),
'settings' => array(
'form' => array(
'description' => array(
'#i18nstrings' => 'finder:e15:settings][form][description',
),
'prefix' => array(
'#i18nstrings' => 'finder:e15:settings][form][prefix',
),
'suffix' => array(
'#i18nstrings' => 'finder:e15:settings][form][suffix',
),
'default_value' => array(
'#i18nstrings' => 'finder:e15:settings][form][default_value',
),
),
'advanced' => array(
'delimit' => array(
'#i18nstrings' => 'finder:e15:settings][advanced][delimit',
),
),
),
),
),
'element_handler' => array(
'#title' => 'Select list',
'#module' => 'finder_optionwidgets',
),
'#_finder_object' => '1',
),
'3' => array(
'finder_element_id' => '17',
'finder_id' => '5',
'element' => 'text',
'title' => 'Full text search',
'weight' => '3',
'settings' => array(
'form' => array(
'description' => '',
'prefix' => '',
'prefix_format' => '2',
'suffix' => '',
'suffix_format' => '2',
'default_value' => '',
'required' => 0,
'field_prefix' => '',
'field_suffix' => '',
'maxlength' => '',
'minlength' => '',
'size' => '',
'rows' => '0',
),
'choices' => array(
'field' => array(
'node_data_field_services.field_services_value' => 'node_data_field_services.field_services_value',
'node_data_field_subtitle.field_subtitle_value' => 'node_data_field_subtitle.field_subtitle_value',
'node_data_field_text.field_text_value' => 'node_data_field_text.field_text_value',
'node_data_field_tips.field_tips_value' => 'node_data_field_tips.field_tips_value',
'node_data_field_additional_services.field_additional_services_value' => 'node_data_field_additional_services.field_additional_services_value',
'node.title' => 'node.title',
),
'displays' => array(
'query' => 'default',
),
'views' => array(
'args' => '',
'delimiter' => '/',
),
),
'advanced' => array(
'delimit' => '',
'value_combination' => '0',
),
'i18nstrings' => array(
'title' => array(
'#i18nstrings' => 'finder:e17:title',
),
'settings' => array(
'form' => array(
'description' => array(
'#i18nstrings' => 'finder:e17:settings][form][description',
),
'prefix' => array(
'#i18nstrings' => 'finder:e17:settings][form][prefix',
),
'suffix' => array(
'#i18nstrings' => 'finder:e17:settings][form][suffix',
),
'default_value' => array(
'#i18nstrings' => 'finder:e17:settings][form][default_value',
),
),
'advanced' => array(
'delimit' => array(
'#i18nstrings' => 'finder:e17:settings][advanced][delimit',
),
),
),
),
),
'element_handler' => array(
'#title' => 'Text',
'#module' => 'finder_text',
),
'#_finder_object' => '1',
),
),
'elements_index' => array(
'13' => 0,
'14' => 1,
'15' => 2,
'17' => 3,
),
'base_handler' => array(
'#title' => 'Views finder',
'#module' => 'finder_views',
),
'admin_links' => array(
'search' => 'View \"Path\"',
'admin/build/finder/5/edit' => 'Edit',
),
'links' => array(),
'#_finder_object' => '1',
)
For your requirement drupal's Hierarchical Select module will help you..
You can do this really easily without a Drupal module if you're just theming:
$tree = taxonomy_get_tree($vid);
if ( $tree ) {
$content .= '<select class="your-class">';
$content .= '<option class="placeholder" value="">You Dropdown</option>';
foreach ($tree as $term) {
$path = taxonomy_term_path($term);
$content .= '<option value="/terms/' . strtolower(str_replace( " ", "-",$term->name)) . '">' . $term->name . '</option>';
}
$content .= '</select>';
}//end if ( $view )
return $content;
}
My solution: since I don't need much of Finder features, I came up with an alternative solution using just Views:
In the view listing all the nodes among which I'd like to search I added a filter Region:
Filters > Taxonomy > Term (The taxonomy term ID) > "regions" vocabulary
I exposed the filter, set it to dropdown and checked Show hierarchy in dropdown
Then I exposed the form into a block
4 And enabled the block under admin/build/block
It works fine for me. :-)

Resources