This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing issues with booking the same product multiple times on your website using PluginHive's plugin when WPML is activated, this might be due to a compatibility issue between WPML and the PluginHive plugin.
Solution:
We have identified the problem and are planning to fix it in a future release of WCML. Meanwhile, we recommend you try the following workaround: Add this code to your
functions.php
file:
// WPML Workaround for compsupp-8226<br />add_filter( 'wcml_add_to_cart_sold_individually', function( $allow, $cart_item_data, $post_id, $qty ) {<br /> $product = wc_get_product( $post_id );<br /> if ( $product && 'phive_booking' === $product->get_type() ) {<br /> return false;<br /> }<br /> return $allow;<br />}, 10, 4 );This code adjusts the WPML settings to allow multiple bookings of the same product. If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 5 replies, has 0 voices.
Last updated by 4 months, 1 week ago.
Assisted by: Dražen.