PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

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

Dropdown switcher title inside dropdown

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi, sorry to bother you again.

For some time ago you helped me adding a title on top of the dropdown switcher and it works super fine. But instead of that, is it possible to place the title inside the dropdown as a placeholder the same way as you have 'Choose an option' in size variations?

Link to product: https://rebeccaelbek.com/product/big-owl-ring/
I've also made an example that shows what I'm trying to do: https://imgur.com/a/ejNDqa2

Best regards,
Paw

Hello Paw

You need code customization. The problem is that a third-party library is used for dropdown

Unfortunately we do not have a ready-made solution

Hi Pablo,

Thank you for replying.

Okay no problem. Is it possible to place the dropdown to the right of the title or does it also requires customization? Please take a look at my example here: https://imgur.com/a/knANvGN

Hello

it is possible to do this, but it will be for all dropdown options

You can  try  this  code:

add_filter('woocs_currname_in_option', function($name){

global $WOOCS;

if($name==$WOOCS->current_currency){

$name="Choose currency".$name

}

return $name;

});

and  do a  test

Thanks. I think theres an error in line 7. Please take a look at my screendump: https://imgur.com/a/5no3jwI

Hello

Please add ";"   here - https://c2n.me/496XmJr.png

Super, it works. But it looks a little odd, please take a look at my screendump https://imgur.com/a/gwnB2dQ or visit the page https://rebeccaelbek.com/product/big-owl-ring/. Isn't it possible to separate 'Choose currency' and the active currency from each other?

Hello

You can add  more  spaces  - https://c2n.me/497WYwm.png

Ahh okay thank you. But it isn't possible to place the active currency on it's own line instead of the same line as 'Choose currency'?

Hello

please drop  me  a screenshot

Hi, sorry. Here's a screenshop of what I explained. I want the 'Choose currency' to be on the top, and then the different currencies to be on top of each other below 'Choose currency'. Is that possible?

https://imgur.com/a/6KcHowk

Sorry, wrong screenshot, here's the right one: https://imgur.com/a/wwVnHXr

Unfortunately, in this case, you have to completely make a custom switcher.

Thank you for quick reply.

Okay, I don't know how to make a completely custom switcher so I think I'll go with what I have now.

Thank you so much for helping me, hope you have a nice day.

Best regards,
Paw

Hello Paw

welcome;)