Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #3653730
Is it possible to add WPC Fly Cart to header using elementor?
Open

Comments

  • Alejandro Ascencio started the conversation

    I'd like to purchase the wpc fly cart for my site, but I haven't find any documention on how to use a shortcode or widget to add it to my elementor header. 

    Could you please be so kind to share a method to do it? If there is any of course.

  •  1,226
    Dustin replied

    Hi Alejandro,

    Please add the custom code below. (How to add custom code? ↗):

    add_shortcode( 'woofc_header_cart', function () {
        if ( class_exists( 'WPCleverWoofc' ) ) {
            return WPCleverWoofc::get_cart_link();
        }
        return null;
    } );

    Then, you can use the shortcode [woofc_header_cart] on the header of your site.

    Best regards,
    Dustin