I am using a third party plugin – Request A Quote and they have given me three ways to change the woocommerce shopping cart to reflect the items in quote instead of the default commerce cart.
I would like to know how I can use this information to display the items in quote on the XStore cart icon on the header via a template tag (possibly?).
The documentation they have provided me with is as follows :
Now you can easily show the number of products added to the quote.
We have created a function that you can access using a widget, a shortcode or a template tag.
This function shows the number of products added to the quote which is updated by ajax. By clicking on it, it is linked to the list of products added to the quote from which the user can send the request for a quote.
This way you have all the flexibility to show the number of products added to the quote in your theme, in a widgetized area or even on a page or post.
Widget: Appearance> Widget> ‘Quotation – Number of items in quote’
Template tag: adq_added_items()
It returns the string ‘x in quote’ and prefixes the WooCommerce cart icon.
Go to xstore/framework/woo.php and find etheme_top_cart function, copy it to child theme functions.php. And edit this function according to your need either using function or shortcode from plugin developers.