Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 -

Supporter timezone: Europe/Zagreb (GMT+02:00)

Tagged: 

This topic contains 2 replies, has 0 voices.

Last updated by Dražen 3 days, 3 hours ago.

Assisted by: Dražen.

Author Posts
December 2, 2025 at 9:14 am #17625172

marcelW-4

Hi, on hidden link it isn't possible to book the same product twice (Please use 2-Tank Morning Boat Dive to test). We're using PluginHive's plugin and they figured out, using a clone website for testing (clone.gowestdiving.com) that when deactivating your plugin the problem is 'solved'. So please try booking 2-Tank Morning Boat Dive twice on hidden link and you'll find out that it isn't possible and also try booking 2-Tank Morning Boat Dive twice on clone.gowestdiving.com and you'll find out that it is possible with WPML deactivated.

This is what they emailed me:

Hello Marcel,

Thanks for the Staging site access.

I logged in to your site and deactivated the WPML plugin on the site which allowed me to add booking from the same product multiple times to the cart. I've attached the screenshot for your reference.

It seems like WPML plugin isn't allowing to add the same product multiple times to the cart. It would be great if you can cross check the WPML plugin settings on this case or your can reach out to WPML team on this behaviour. Let us know how it goes.

Note: I've kept WPML plugins deactivated on your staging site so that you can add the multiple bookings to the cart and check.

Thanks and Regards,
Niranjan
Team PluginHive

December 2, 2025 at 9:39 am #17625266

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I’ve created the ticket and escalated it further. I’ll update you once we have a workaround — it shouldn’t take long, likely a day or two.

Regards,
Drazen

December 3, 2025 at 7:16 am #17629157

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

We’ve identified the issue and it will be fixed in a future WCML release. In the meantime, you can use the following workaround—I’ve tested it, and it works correctly:

Workaround:
Add the following to your functions.php file:

// WPML Workaround for compsupp-8226 
add_filter( 'wcml_add_to_cart_sold_individually', function( $allow, $cart_item_data, $post_id, $qty ) {
    $product = wc_get_product( $post_id );
    if ( $product && 'phive_booking' === $product->get_type() ) {
        return false;
    }
    return $allow;
}, 10, 4 );

Regards,
Drazen