Turn shopping cart to inquiry cart

Hello, I am new to WIX, I am wondering if it is possible to convert the shopping cart into inquiry cart?

My business is wholesaler and my client needs to let me know specific the product with preferred quantity so that I could send them a quotation back, it would be very helpful if I could turn the shopping cart to inquiry cart and let my client send me the information without any payment process.

Thank you so much, and I hope you guys could help me to solve this problem.

You can try this:

import wixStores from 'wix-stores';
$w.onReady(function () {
    wixStores.getCurrentCart()
        .then((cartData) => {
            let lineItems = cartData.lineItems;
            const items = [];
            for (let item of lineItems) {
                let optionsName = ' ';
                if (item.options && item.options.length > 0) {
                    for (let index = 0; index < item.options.length; index++) {
                        const options = item.options[index];
                        optionsName = optionsName.concat(`${options.option} : ${options.selection} `);
                    }
                }

                items.push(`${item.quantity} x ${item.name} | ${optionsName}`);
            }
            $w('#lineItems').value = items.join(`\n`)
        })
        .catch((error) => {
            console.log(error);
        });

});

It is something like getting the cart data, then ‘translate’ into human-readable language, then set the text to the form

If you are going to send the visitor from the wix checkout page to your own quotation page, read this (use on Dashboard > Settings > Custom Code):


//force a new page to load and replace the current 
one
<script>
window.location.replace("http://www.example.com"); //set your quote page here
</script>

this code should only be run on the ‘checkout page’, don’t choose “all pages”