carbon8
Code Test


Code reveal

<div id="myClientWidget" class="piq-widget-container"></div>


<script>
        window.CartWidget_Config = PrintIQ.CartWidget.Init({
        appKey: "39C5A80C-9606-4481-8334-45599FA20F95",     // appKey from tblAPI_Application for CART widget
        UserId: "700F0031-DA75-4502-882F-8EF179150B53",     // udUserID from tblUserDetail for WIDGET user
        container: document.getElementById("myCartWidget"),
        hideCartIfEmpty: false,             //when true, hide the cart icon when there are no products
        useCookies: true,                   //when true, users cart will be persisted across page refresh
        checkoutUsesSimplified: true        //when true, user will be taken to QuoteDetails page, else they’ll be taken to the simplified page with their product set
        });         
        
     PrintIQ.ClientWidget.Init({
        treeNodeId: null, //tree node to pre-select
        shortCodes: "", //short codes which pre-select various options
        appKey: "764A4BA6-04BC-45AB-8CC3-0D693CF391FE", // appKey from tblAPI_Application for ClientWidget
        userId: "700F0031-DA75-4502-882F-8EF179150B53", // udUserID from tblUserDetail for WIDGET user
        showTreeNodeSelector: true, //allow user to select different tree nodes (visible yes/no)
        isParentTreeNodeSelected: false,
        showPrice: true, //user can show price and then proceed to quote, else user will proceed to quote and see price in PIQ
        showKinds: false, //prompt user for number of kinds
        container: document.getElementById("myClientWidget"), // where to build the widget
        includeGst: false //include gst in the price shown to user
        /*,
        debug: true,
        debugApplicationPath: "http://iq8-11/PrintIQ"*/
    });

</script>
 

(Working All-in-one Widget)

Volcanic Code


Code reveal

<div id="myWidget" class="piq-widget-container"></div>
    <script>
            PrintIQ.ClientWidget.Init({
        treeNodeId: null, //tree node to pre-select
        shortCodes: "", //short codes which pre-select various options
        appKey: "BC5A7F56-A94D-425A-BA11-FB716FE3A2BF", // appKey from tblAPI_Application for Client Widget
        userId: "3CA8FB34-0965-4706-8F52-640A220C21B9", // udUserID from tblUserDetail for WIDGET user
        showTreeNodeSelector: true, //allow user to select different tree nodes (visible yes/no)
        showPrice: true, //user can show price and then proceed to quote, else user will proceed to quote and see price in PIQ
        showKinds: false, //prompt user for number of kinds
        container: document.getElementById("myWidget"), // where to build the widget
        includeGst: false, //include gst in the price shown to user
        addToCart: true, //when true, add product to cart, else go straight to the details page
    useCheckoutScreen: true, //when true, the cart checkout button will take user to quote details, else theyíll go to simplified and have to select one of their products
    showAnotherProductButton: true //when true, another product button will be shown so they can add another product to cart, else theyíll go to the quote details/simplified page
    });

</script>

<script>
  $('[id="myWidget2"]').not(':eq(1)').remove();
window.CartWidget_Config = PrintIQ.CartWidget.Init({
            appKey: "5EC62A46-2FB5-4A4C-9ED9-FC9448E80086",
            UserId: "3CA8FB34-0965-4706-8F52-640A220C21B9",
            container: document.getElementById("myWidget2"),
            hideCartIfEmpty: false, //when true, hide the cart icon when there are no products
            useCookies: true, //when true, users cart will be persisted across page refresh
            checkoutUsesSimplified: false //when true, user will be taken to QuoteDetails page, else  theyíll be taken to the simplified page with their product set
        });
</script>