napisal
Forum Replies Created
-
Forum: Plugins
In reply to: [10WebSocial] Delay in loadingI’m sorry, could you please explain if this is a theme-related issue? Because there are no custom coding there, I only added Instagram WD Widget to a footer widget. Thanks a lot.
Forum: Plugins
In reply to: [10WebSocial] Delay in loadingHi,
Sorry for such a long reply. Here’s a video of what I mean: https://www.youtube.com/watch?v=1NZ0V0Csh4I
This happens in all browsers (Safari, Chrome, Opera, Firefox), with any cache settings (we’ve even tested it with or without WP Rocket caching plugin).
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] WPML Addon with WooCommerceThank you! I just needed to be sure that is works with WooCommerce Checkout Integration as I expected ??
@jorisverwater, yep, here’s their answer:
The Currency Switcher saves the product prices as a JSON structure in custom product meta fields. Each product has one field for all its regular prices, and one for its sale prices. Each field contains multiple prices.
This design was chosen long ago, when we assumed that only our plugins would need to access the data. Besides, prices are not necessarily stored in the database, as they might be calculated automatically using exchange rates. Dye to that, you can’t just map custom export fields to product meta.As of today, we are not aware of any feed plugin that supports the creation of feeds in multiple currencies (they don’t even support the selection of a currency when generating the feed). However, most of then can be customised.
To export the product prices in a specific currency, the easiest way would be to set the active currency using a filter (see https://aelia.freshdesk.com/support/solutions/articles/3000010676-how-to-change-the-selected-currency-via-code, example #3). You can check the documentation of your feed plugin of choice to see what would be the best way to pass the currency as a parameter (e.g via the URL).
After setting the currency, you can simply fetch the product prices as usual:
$product->get_regular_price()
$product->get_sale_price()
$product->get_price()The Currency Switcher will return the prices in the active currency.
Спасибо!
Forum: Plugins
In reply to: [WP Add Custom CSS] Page CSS won’t workThank you!
It happened right after the update. I have all the styles for my own custom switcher, but it seems that after update default switcher is being loaded and not my custom, which is named “savoy-child-ambery-wcml-dropdown”. Now I see that “wcml-dropdown product wcml_currency_switcher” div class is being loaded instead of “savoy-child-ambery-wcml-dropdown product wcml_currency_switcher”.
Maybe something needs to be changed here?
do_action('wcml_currency_switcher', array('format' => '%code%', 'switcher_style' => 'savoy-child-ambery-wcml-dropdown'));
Well, okay.
If anyone wants to make this dropdown menu universal for PC and touchscreen, you may use this JS code:
//Allow clicking instead of hover for dropdown currency menu when using touchscreen $(document).ready( function(){ $('.wcml-cs-active-currency').click( function(event){ event.stopPropagation(); $('.wcml-cs-submenu').toggle(); }); $(document).click( function(){ $('.wcml-cs-submenu').hide(); }); });
Well, there are several solutions of this problem https://www.google.com/search?client=safari&rls=en&q=dropdown+menu+on+touch+screen&ie=UTF-8&oe=UTF-8
I can also suggest that it is possible to disable the link of active currency. Now think link just reloads a page with the same currency.
More than 60% of internet devices are touchscreen, it would be nice for many users to use one hover dropdown switcher with touchscreen support so it would work on both PC and mobile devices. Just a suggestion ??
I understand it is how it supposed to work now, but isn’t it a good idea to make a simple fix for touchscreen devices?
Thank you! I’ve made one custom theme for desktop and now making other one for mobile. Seems working fine!
I was using a shortcode [currency_switcher] inside the menu with special plugin.
But I just changed the integration, it is now like that in functions.php:
/* Add currency switcher to top bar menu ========== */
add_filter(‘wp_nav_menu_items’,’add_search_box_to_menu’, 10, 2);
function add_search_box_to_menu( $items, $args ) {
if( $args->theme_location == ‘top-bar-menu’ )
do_action(‘wcml_currency_switcher’, array(‘format’ => ‘%code%’, ‘switcher_style’ => ‘wcml-dropdown’));
return $items;
}When trying to change ‘wcml-dropdown’ to my template name (‘ambery’), frontend shows blank page only (even when debug mode is on). Also, when using ‘wcml-dropdown’, plugin still shows a vertical list. It becomes dropdown only when turning on “Show a currency selector on the product page template” in Multi-currency Settings.
I assume the template has to be chosen inside WooCommerce Multilingual settings, however, this setting it’s not there.
Also, the only place where I can now change currency list style is inside the Product page Currency Switcher settings. When I switch “Show a currency selector on the product page template” off, currency switcher transforms from dropdown to horizontal list.
Currency switcher options contains only currency ordering and Additional CSS field.
Again, everything was just fine before the update.
Thank you! I’ve created folders and files in my child theme (/wpml/templates/currency-switchers/ambery) to try customising my own template, but I couldn’t find a way to activate it. All files are there, still default one is activated.
Thank you. I’ve managed to deal with most of the problems using CSS, still, two things are unsolved:
1. https://ambery.net – first dropdown currency menu item has 1px smaller width than others. Couldn’t find the reason in CSS.
2. Switcher fades away from menu when screen is smaller and other CSS rules are activated. Previous version worked well, it stated to hide in mobile version only after plugin update.