Modify Header Cart Widget - by dimitrim - on WordPress WooCommerce support

This topic has 2 replies, 2 voices, and was last updated 5 years, 8 months ago ago by Olga Barlow

  • Avatar: dimitrim
    dimitrim
    Participant
    August 14, 2018 at 08:48

    Hello

    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()
    Shortcode: [adq-added-items]
    It returns the string ‘x in quote’ and prefixes the WooCommerce cart icon.

    Any help would be greatly appreciated.

    Many Thanks
    D

    1 Answer
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 14, 2018 at 16:32

    Hello,

    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.

    Regards

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.