How to set multiple currency and geo location with algolia search in woocommerce? - wordpress

We're using algolia for our website with woocommerce. We've used currency switcher plugin on which works with geolocation but on search and category pages where data comes from algolia it doesn't change the price there and show base currency.
So, how can we enable geolocation with algolia and set multi currency based on Geo location?
I've tested most of the plugins. they work but just not on the algolia result page. so looking for a solution which can also work on algolia result page.

Unfortunately the Algolia plugin doesn't support any multi-currency plugin. If you want to make it work you will have to edit Algolia's plugin.
The solution would really depend on how the multi-currency plugin works:
if the plugin is able to figure out the conversion in the browser, then chances are you can work something out quickly by editing the template file.
If everything happens in the backend, you would need to figure out how to get all currencies and push them along every product record.
In general, I think it's easier to index the price in each currency and display it without calculation in the template.

Related

Payments - Place order on WooCommerce and in Mollie or both via rest api?

I found out that you can place an order via WooCommerce but also in Mollie. See links below:
Mollie: https://docs.mollie.com/reference/v2/orders-api/create-order
WooCommerce: https://woocommerce.github.io/woocommerce-rest-api-docs/#create-an-order
What is best practice when using an API call? Create an order in Mollie, or WooCommerce, or both? I am not sure what happens if you place an order via the website... I also cannot test that.
Edit: I could test in on the website. The Wordpress WooCommerce website makes an order on both platforms, Mollie and WooCommerce.
Thanks!

Woocommerce Product Vendors and ACF

I am using ACF with Woocomerce Product Vendors, i have added an additional field group to the Edit Vendor page and the form is working fine, but when i use the same form, from the Vendor/Vendor Admin settings, the data is not fetching in the form and also the form is not updating any data to the frontend and backend. I have looked around in most of the documentations but with little or no luck. Any help would be very nice. Thanks

Handlebars on Cart.html

Is there any way to access a product with variations/options individual weight?
Currently have an old script pulling a basic product (no variations/options) through custom fields. Now I have products with variations all with different weights, so the custom fields solution no longer works...
Ideally I want to pull the product options weight to add to my script to total the cart's weight. Tried ?debug=context at the end of a localhost URL and could not find product option weight to be available on the cart page- are there other options to work around this??
I am on BigCommerce Cornerstone theme
From what I understand by reading your post, the best way to accomplish your goal will be with the storefront GraphQL API. Using GraphQL you can query each product in the cart and include the variant data with the weight. This will allow you to get the weight for all of the variants in the order and add them up to get the total.
I'd definitely suggest checking out the BigCommerce GraphQL Documentation for more information, as well as the Code Examples.

How to show a widget only to customers who bought a product in WooCommerce (with Elementor)?

Here is what I am trying to do - a website with online courses using WooCommerce and Elementor. I want to have a page called "My Courses" where customers can see only the courses they've purchased.
I'm not using any LMS.
I will use the plugin Dynamic Conditions for Elementor to show or hide a widget.
I know that WooCommerce has a function to check if a user has bought a specific product.
I don't know how to make a connection between the two, though. That is my problem.
Dynamic Conditions uses Elementor's dynamic tags system to check against. How can I use the WC's function to check if the user bought the product and only if he/she did, then to show them the widget with the course page?
Thanks a lot for any answers with ideas or directions on how to solve this problem!
Using Dynamic.ooo you can benefit from "Visibility" extention (comes with Dynamic.ooo/ don't need seperate plugin installation) which allows you write your customized conditions (in PHP). I myself have not used the "Custom Condition" becuase I don't know much about PHP, but if you know the function and just need to connect them i think that'll do.

Wordpress post view format for filter grid

I am a complete newb to wordpress. I am trying to help a friend out. She asked me to help her move her wordpress instance to another hosting provider.
I have done that for the most part. My issue is the original provider implemented a not-so-obvious way of an isotope filter on some UI elements.
Specifically the object is a company. Each company has a logo, the name of the company, a short description and a contact name / email.
These companies service states / areas and the idea behind the page is to select the state and only the companies for that state are visible.
From the brief searching I have done - there seems to be an overwhelming amount of plugins to support this.
I have tried creating a simple post with a featured image and adding in the text in the excerpt.
My problem is the links. I don't want the links to go back to the post - rather I want the links to go to a custom URL.
Is there a plugin that will allow me to define a custom post type (to include categories) and then filter on it similar to Isotope type of filtering?
There are many free plugins but if you are using the Elementor page builder. I am not advertising my product but as I saw your requirement matches a plugin that I am selling in the market.
The frontend filtering feature is not yet available to the released version but will be released soon. It basically allows you to build a custom grid as you like.
Is it something similar?
https://demo.geekygreenowl.com/elementor-387/
You have to create a custom post, there should be a custom field(custom URL) as well.
Or, You may create a WordPress query. https://developer.wordpress.org/reference/classes/wp_query/
also, coding will be required for filtering

Resources