Home › Forums › WoodMart support forum › Price Calculator for WooCommerce
Price Calculator for WooCommerce
- This topic has 4 replies, 2 voices, and was last updated 3 months, 4 weeks ago by lino.peverada.
-
AuthorPosts
-
August 13, 2024 at 2:44 pm #589896
lino.peveradaParticipantHi xTemos,
I’ve installed an official woocommerce plugin to calculate the price by length. Plugin reference https://woocommerce.com/document/price-calculator-for-woocommerce-3/If I change the theme and I use Twenty Twenty-Four, the plugin runs well. I’ve contacted plugin support, and it seems it doesn’t work because woodmart uses other woocommerce hooks.
Hereafter the answer I got from the plugin editor:
Hi,
Thanks for your prompt response.
As mentioned earlier, some hooks are not being triggered. Your confirmation indicates that this issue is due to the theme you are using.
We are utilizing the following hooks for price calculation:
– woocommerce_add_cart_item_data
– woocommerce_add_cart_item
– woocommerce_before_calculate_totals
It appears that the theme may be replacing these default WordPress/WooCommerce hooks with its own. As a result, the price data is not being added to the cart correctly.
We recommend reaching out to the support team for the theme you are using to inquire about alternative hooks that we can use instead.
Please let us know if you have any queries or concerns.August 13, 2024 at 3:17 pm #589910
Artem TemosKeymasterHello,
Thank you so much for purchasing our theme and contacting our support center.
It looks like the plugin adds its custom content using the standard WooCommerce hook. When you create a custom layout with Elementor it doesn’t contain any default elements and hooks. It contains only those elements that you added with Elementor manually.
We have a special “Hook” element in Elementor that you can place to your custom layout and then the plugin will be able to add its custom content there. But we don’t know which one exactly it needs. You can either try to select all hooks one by one or contact plugin developers for help.
Read more information here https://xtemos.com/docs-topic/custom-hooks-and-plugins-compatibility/
Kind Regards
XTemos StudioAugust 14, 2024 at 2:25 pm #590090
lino.peveradaParticipantThanks,
here the answer I got from the plugin support team.
PS: For our website we use WP-Bakery and not ElementorHi,
I hope this email finds you well.
We have explored the possibilities for addressing the issue using the solution suggested by your theme’s support team.
Since you are not using Elementor, we cannot add the missing default hooks that the theme overrides, as mentioned in the article.
If the Wood Mart theme’s support team can provide alternative hooks, we can explore possibilities to address this issue.
As mentioned earlier, we use WordPress/woocommerce default hooks, and these are being removed by the theme.
Please let us know if you have any queries or concerns.in addition
Hi,
In addition to the above email, we discovered that the Wood Mart Ajax add-to-cart function does not work with third-party plugins.
So We suggest you disable it in your Theme Settings then clear the cache and recheck the issue.
I hope this helps. Let us know if you have any queries or concerns.Any comments from your side?
August 14, 2024 at 2:32 pm #590092
Artem TemosKeymasterHello,
1. Yes, as we mentioned, there are no default hooks when you build your custom layout from scratch. No matter if you are using Elementor or WPBakery. Please refer to the article from our documentation for more details.
2. AJAX add to cart doesn’t support extra fields, and this information is included in the option description. So if you have any extra fields added to the add to cart form, you need to disable this option in Theme Settings.
Kind Regards
August 20, 2024 at 9:13 am #591149
lino.peveradaParticipantThanks
-
AuthorPosts
- You must be logged in to create new topics. Login / Register