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

Okay
  Public Ticket #2274408
Cart icon with numbers
Closed

Comments

  • Aviel started the conversation

    How can i set an icon with product count like you did in demo?

    Is it a shortcode or what?

  •  767
    Janilyn replied

    Hi,

    Thank you for contacting WPClever Support Forum. I have assigned one of our developers to givebyou instructiojs on that. He’ll be responding to you soon. 

    Best regards. 

    Janilyn T. - WPClever Support Agent

  • Aviel replied

    Waiting for an answer! Thanks


    ********

    Also, why is "Undo?" and "Removed." when deleting an item from cart is untranslatable in Loco Translate?

    Can you fix this???

    *********


  •  1,222
    Dustin replied

    Hi Aviel,

    To add an icon with count on the menu, please use this option https://prnt.sc/qphs7r

    When using LocoTranslate, please try to press "Sync" button https://prnt.sc/qphsr0 before searching the word to translate.

    Best regards,
    Dustin

  • Aviel replied

    Hey, did thatbwith loco - didn't work.

    Check it please!

  • Aviel replied

    How can i add this cart with count trough Elementor ??

  •  1,222
    Dustin replied

    About the LocoTranslate, thank you for informing us of this issue! We'll check and fix it soon.

    About the cart with count, please add an element with class "woofc-menu-item", e.g:

    <span class="woofc-menu-item">Fly Cart</span>

    Best regards,
    Dustin

  • Aviel replied

    Thank you very much for quick responses!


    Is there a way to add "Add 999$ more for free shipping!" ??

  •  1,222
    Dustin replied

    To set the free shipping conditional, you need to use another plugin, e.g https://wordpress.org/plugins/flexible-shipping/

    To add the text to the fly cart, please add below function to current theme (or child-theme) / functions.php:

    add_filter( 'woofc_below_items_content', 'your_woofc_below_items_content', 99, 1 );
    function your_woofc_below_items_content( $text ) {
       return '<div style="text-align: center; color: white">Your text here</div>';
    }

    And the result https://prnt.sc/qqj8k8

    Best regards,
    Dustin

  • Aviel replied

    Wow!

    Thank you very much!


    How to put it under Subtotal??

  •  1,222
    Dustin replied

    You can change woofc_below_items_content to woofc_below_subtotal_content or woofc_below_total_contentsmile.png

    Best regards,
    Dustin

  • Aviel replied

    Thanks!

    When trying i get

    syntax error, unexpected 'return' (T_RETURN)

     




  • Aviel replied

    Is it possible to add amount of products instead of subtotal?

  • Aviel replied

    What are all the hooks?


  •  1,222
    Dustin replied

    The code must be:

    add_filter( 'woofc_below_subtotal_content', 'your_woofc_below_subtotal_content', 99, 1 );
    function your_woofc_below_subtotal_content( $text ) {
       return '<div style="text-align: center; color: white">Your text here</div>';
    }

    Sorry, currently we haven't any document about the hooks. We're trying to write the fully document.

    Best regards,
    Dustin

  • Aviel replied

    How to count products?

  •  767
    Janilyn replied

    Dear users,

    Welcome to WPClever Support Forum. This is a systematic notification.

    Thank you for reaching out to us. We have had a very successful, fruitful year thanks to your valuable support and cooperation last year. We are truly grateful for your interest and passion in our plugins. 

    To celebrate this and prepare for another marvelous year, we are having a long vacation from 22 to 28 January, 2020. So during this time period, all the support activities will be temporarily unavailable. We're still receiving your tickets but they will be held Pending until 29 January, 2020. After that time, support might still be a bit slower than normal as we're planning to conduct some major assessments of the system and operation. (Just a secret between you and me: We're running a really BIG project for WPClever.) But don't worry, we'll try our best to proceed your tickets respectively at the same time. 

    We're sorry for any inconvenience caused to you during this time. Hopefully, our dear users will understand and wait patiently for us. With high inspiration, we will come back better, faster and stronger to deliver you the best. 

    A thousand thanks to you all from WPClever team. We wish you all the best for the year of 2020. 

    From WPClever team with love.

    Janilyn T. - WPClever Support Agent

  •  1,222
    Dustin replied

    Hi Aviel,

    Please try the function WC()->cart->get_cart_contents_count()

    E.g:

    add_filter( 'woofc_below_subtotal_content', 'your_woofc_below_subtotal_content', 99, 1 );
    function your_woofc_below_subtotal_content( $text ) {
       return '<div style="text-align: center; color: white">Products: ' . WC()->cart->get_cart_contents_count() . '</div>';
    }

    Best regards,
    Dustin