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

Okay
  Public Ticket #3761642
Adding logo and image
Open

Comments

  •  5
    nico-lino started the conversation

    hi,

    is there a way to add a logo on top of the cart panel and a specific image when empty cart ?

  •  1,238
    Dustin replied

    Hi Nico,

    #1. Please update our plugin to the latest version, 5.8.2, and add the custom code below. (How to add custom code? ↗):

    add_filter('woofc_empty_message',function (){
    	return '<img src="https://fortheloveofgeorge.com.au/wp-content/themes/mrtailor/images/empty_cart_retina.png"/>';
    });

    Then, a specific image will be shown when the cart is empty:

    4837090202.png

    #2. Regarding the top logo, where do you want to show it? 1 or 2?

    4286197314.png

    Best regards,
    Dustin

  •  5
    nico-lino replied

    Awesome ! (as usual using your plugins)

    Regarding logo I would like to add it on position 1.

    Regarding general settings by existing them I found that some colours settings were missing (infos textes colors, buttons colors, background cart icon color...).

    I know there are only CSS settings and I succeed to set all by adding custom CSS in my website but it would be great to have such options to quickly editing the plugin.

    Thx for your help

  •  1,238
    Dustin replied

    Thanks for your suggestion! We'll add more options soon.

    To add a logo at position 1, you can use CSS code:

    .woofc-area .woofc-area-top {
        background-image: url('https://cdn-icons-png.freepik.com/512/3161/3161537.png');
        background-position: center;
        background-repeat: no-repeat;
        background-size: 40px;
    }

    And the result will be like this:

    6792857032.png

    Best regards,
    Dustin

  •  5
    nico-lino replied

    Apologize, 
    I tried to add your css code but without any success.
    I had it in my Worpdpress custom css settings.
    Do have i to add in other parts ? 

    Regarding image adding when empty cart i succeed in without problem.
    Thx to clarify