[Support request] Prime library add cart in the widget

Home Forums Support [Support request] Prime library add cart in the widget

Home Forums Support Prime library add cart in the widget

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #1464506
    roadlink

    Hi,

    I read below post and exactly need same thing. But couldn’t find solution there.

    https://generatepress.com/forums/topic/prime-library-site-cart-location/

    Hey guys, I’m customizing the “Prime” template from the site library.

    I want to replace the text “GP | Gutenberg | Woo” in Header the Widgets with a shopping cart/basket, and remove the existing cart/basket icon.

    In short, I want to relocate the cart to the very top right corner in place of the “GP | Gutenberg | Woo” text as I want it to be as easy as possible to checkout (location is important)

    -I’ve figured out how to edit/resize the text widget with CSS, I tried removing that in the Customizer and adding the “Cart” widget, but that adds the word and not the cart/basket symbol

    #1464565
    Leo
    Staff
    Customer Support

    Hi there,

    My solution should still work:
    https://generatepress.com/forums/topic/prime-library-site-cart-location/#post-1242400

    What issue are you having?

    #1464703
    roadlink

    Hi Leo,

    Yes, Indeed I read that post before open this one.
    But couldn’t understand how to start, sorry 🙁

    #1465518
    Leo
    Staff
    Customer Support

    Go to Appearance > Widgets > Header to remove the default text widget then add in the cart widget:
    https://www.screencast.com/t/32bRy7zVN2

    #1465791
    roadlink

    Hi Leo,

    Thanks for reply.
    I was trying to add cart icon like in the menu.
    But your suggestion added whole cart content.
    https://prnt.sc/uqsaik

    #1465810
    Leo
    Staff
    Customer Support

    Ahh unfortunately our cart icon option only works in the menu.

    Sorry about that!

    #1465826
    roadlink

    🙂 No problem, is there any way to take it there?

    #1465834
    Leo
    Staff
    Customer Support

    Sorry not sure what you mean by take it there?

    The cart icon from GP only works in the primary navigation currently.

    #1465836
    roadlink

    The cart icon from GP only works in the primary navigation currently.

    Thanks, do you know any other method to show cart in header widget?
    Not urgent, please take your time.

    thanks

    #1465839
    Leo
    Staff
    Customer Support

    The cart widget is from WooCommerce plugin itself.

    Maybe there is a plugin out there that offers a similar option with a better appearance?

    #1512577
    roadlink

    Hi again,
    I saw a site which is using Generatepress. It has cart icon just next the search bar. (when you scrool a bit down)
    https://prnt.sc/vas75y

    https://shopdesign2.key4dev.nl/product-categorie/computers-laptops/

    Can it be done in this case?

    #1512977
    Leo
    Staff
    Customer Support

    The top part (in green) is actually the primary navigation and the bottom part (in red) is using the secondary navigation which is why it’s able to use the cart icon from GP.

    #2540027
    Marcel

    Hi, I was wondering if there is already a way to display the shopping cart icon in a custom location. Maybe via a hook?

    #2540209
    David
    Staff
    Customer Support

    Hi there,

    add the following PHP Snippet to your site:

    add_shortcode( 'wc_cart_menu_items', function() {
        ob_start();     
        echo generate_wc_do_cart_menu_item();  
        return ob_get_clean();
    } );

    then you can add the [wc_cart_menu_items] shortcode to anywhere you need it.

    #2540329
    roadlink

    Hi David,

    I even forget that I asked about this but solution is great.
    thanks

Viewing 15 posts - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.