Public Ticket #5000262

Cart Synchronization across different languages

Open
Comments
9 Tickets 3
Fabian Genthner started the conversation 12 hours ago on Thursday at 4:12pm

Hi there,

I have an issue with syncing items in the cart across different languages. I run WPML and B2BKing on my site. Now when I put some items in the cart in the German language and then switch to the English language version of the site, I get the following message: The product has been removed from your cart because it can no longer be purchased. Please contact us if you need assistance.

I have already tried different workarounds and also contacted the WPML support previously. They said it has to do with some other plugin which causes the cart sync to not work. Then I tried activating and deactivating several plugins and noticed that when B2BKing is deactivated the cart sync of items across languages does work.

What can I do to make this work with B2BKing enabled?

Thanks and best regards
Fabian

 
 
2,766
KingsPlugins replied 7 hours ago on Thursday at 9:37pm

Hi Fabian,

Thanks for reaching out,

 

This can depend on the setup, but we have a PHP snippet that can often solve it. Please try adding this snippet:

add_filter( 'b2bking_disable_hidden_items_not_purchasable', '__return_true' );

You can add it to your child theme's functions.php file or through a code snippets plugin set to run everywhere.

After adding it, clear the site cache and test again with a fresh cart.

 

If this doesn't solve it, could you share a backend login to the site or a staging site, so we can investigate this directly?

Kind Regards,
Stefan

Sign In