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

Okay
  Public Ticket #3216463
FlyCart Custom Position
Closed

Comments

  • Tsvetomir Shkondachki started the conversation

    Hello, is there a way for the FlyCart cart icon to be displayed in a custom position, outside of a menu, maybe with a shortcode or a different solution?

    Also, is there a way to use a custom icon?

    Thanks!

  •  767
    Janilyn replied

    Hi Tsvetomir,

    Thanks for contacting us here. Sorry for the delayed response. We have just been back from a weeklong vacation so today I am able to respond to you. 

    I have assigned one of our developers to help you with that. 

    He’ll be looking into your question and responding with specific instructions as soon as possible. 

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  1,226
    Dustin replied

    Hi Tsvetomir,

    I'm so sorry for the late reply! I must have overlooked your ticketfrown.png

    Have some ways to add the Fly Cart cart icon on your site, please try it below.

    #1. Use PHP code

    if ( class_exists( 'WPCleverWoofc' ) ) {
        echo WPCleverWoofc::get_cart_link();
    }

    #2. Use the shortcode

    Please add the below custom code (How to add custom code?)

    add_shortcode( 'woofc_cart_icon', 'woofc_cart_icon_shortcode' );
    function woofc_cart_icon_shortcode() {
        if ( class_exists( 'WPCleverWoofc' ) ) {
            return WPCleverWoofc::get_cart_link();
        }
        return '';
    }

    Then you can use the shortcode [woofc_cart_icon] where you want.

    ---

    * In both of the above ways, it uses the icon here https://www.screencast.com/t/ReezADgoje9

    ---

    #3. Open the FlyCart popup when clicking on a button/icon that already exists on your site. 

    Please find the CSS class or id of this button/icon and fill it in here https://www.screencast.com/t/aDEnYcpms

    Best regards,
    Dustin