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

Okay
  Public Ticket #2368914
Adding some text to the cart ajax popup
Closed

Comments

  • peter Hillman started the conversation

    Hi there, we love your cart popup!

     we want to add some words/ tetxt or html to the ajax popup is it possible?

    via a hook or code?

    thanks

  •  767
    Janilyn replied

    Hi Peter,

    Thank you for contacting WPClever Support Forum. 

    We’ve received your ticket and 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 in touch as he might need discuss further with you. 

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  1,223
    Dustin replied

    Hi Peter,

    Yes! You can do that by using some filter hooks. Example:

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

    And the text will be shown like the screenshot in the attachment.

    You also can use other filter hooks:

    woofc_above_area_content
    woofc_above_items_content
    woofc_below_items_content
    woofc_above_bottom_content
    woofc_below_subtotal_content
    woofc_below_total_content
    woofc_below_bottom_content
    woofc_below_area_content

    Best regards,
    Dustin