Support

Content of the article

You need to log-in to create request (topic) to the support

Ability to insert Flags @ COUNTRY FILTER

(new from 01-07-2019)

Hi all,

WOOF Licence username: dhauptschein

I'm using WOOF for the last days, I'm wondering how I can tweak the COUNTRY filter within the WOOF Sidebar to allow my visitors to select country according to their Flag instead of textual names.

COUNTRY filter by default is using country name in textual format, as seen here below

 

I'd like to switch the Country name with related flags, likewise here below:

 

Pls bare with me, not a code expert and would much appreciate if you could guide me step by step on proper actions I should carry out to get the above.

Many thanks for your help

David

Hello David

Please  add your license key here - https://c2n.me/42HBIt7.png 

Please  watch  video -  https://products-filter.com/video-tutorials#video_beGT6p_look  -  You will get all the answers to these questions.

Hey Pablo,

License Key added thru Private Area

Thanks for your advice

David

Hi Pablo,

In an effort to make progress,  you can see @ screenshot I've set images for respective COUNTRY flags but nothing appear, i.e no flag gets displayed.

https://snag.gy/Im35yd.jpg

The "Produit Pays d'origine" filter refers to "COUNTRY" attribute (set with 4 country name, previous looknfeel was as described here https://snag.gy/UEwPWt.jpg )

Within the same screenshot, see at bottom my other question "CONTENANCE" aiming to display the "ML" right after the size labels.

Thank you for precious help

David

Hello David

Add CSS  style - https://c2n.me/42QYzso.png

to display the "ML" right after the size labels -  My plugin does not affect term label display. You need code customization in file . Read  this  please - https://products-filter.com/hook/woof_before_term_name/

Thank you Pablo for quick reply.

 

Splitting my answer on 2 Items I opened this ticket about:

 

Item1: issue related with the before term I'm trying to add "ML"

I followed the instruction fromhttps://products-filter.com/hook/woof_before_term_name/ by changing the "term" into "ML" as you can see here below:

https://snag.gy/LSKWt7.jpg

Sole edit I made was as pointed by the arrow at line 201 of the checkbox.php file, i.e

echo apply_filters('woof_before_term_name', $ML, $taxonomy_info);

The edit outcomes into adding at the Heading line an "I" with ML upon mouse over but not the "ML" within the Label Box, see https://snag.gy/oxlJd2.jpg

Could you pls point me to other edits I should carry out at checkbox.php file?

Item2: Issue with the Flags that are not displayed for Country filter.

See at https://eliquide.adgency360.com/product-category/e-liquides/e-liquides-fr/savourea/savourea-10ml/ under the heading "Produits Pays d'origine", the flag failed to be displayed despite action described at below screenshot.

https://snag.gy/Im35yd.jpg

Many thanks for your guidance & assistance

David

Hello David

  1. absolutely not right! If you have no programming experience, you should hire a developer to customize the code.  In file \plugins\woocommerce-products-filter\ext\label\views\woof.php add  this - https://c2n.me/42ScCNe.png
  2. Please  read  my previous message - https://c2n.me/42ScZcp.png   My  test - https://c2n.me/42Sddkf

 

Hi Pablo,

On Flag issue (N°2) you're absolutely right my bad for missing previous message.

For the "ML" insertion aiming to get what you see at https://snag.gy/G8Ivhz.jpg, I followed your advice:

I'm failing to understand what could prevent the ML label to be visible on page, from your experience with the plugin, what action would you recommend me to do?

Much appreciate your assistance and will be glad to share the word about great support you're giving me on that issue.

Looking forward to your advice

Best

David

Hello David

Looks like you already have the "ML" in the attribute name. Delete your code customization. AND add  CSS - https://c2n.me/42TnFd1

.woof .woof_list_label .woof_label_term {
width: 50px;
height: 35px;

}

Thank you Pablo, works like a charm. Appreciated :-)

David

Hello David

 

Welcome;)

http://codecanyon.net/downloads - rate please the plugin if you liked it ...

 

Well deserved 5stars review just added :)

Hello

 

Thank you!