PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Compatibility with Packeta plugin

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

WCCS does not work correctly with Packeta plugin. (https://wordpress.org/plugins/packeta/#description)
WCCS transforms prices in cart but it does not do it in checkout. It seems to me the issue is on WCCS side. What is the correct way to fully support WCCS in Packeta plugin if not?

Here is Packeta shipping method implementation: https://github.com/Zasilkovna/WooCommerce/blob/main/src/Packetery/Module/ShippingMethod.php

Thanks

Hello

Unfortunately, this is an incompatibility with a third-party plugin.

. It seems to me the issue is on WCCS side - Ok! For the test, you can disable this third-party plugin and make tests with the standard delivery functionality - everything will work correctly

What is the correct way to fully support WCCS in Packeta plugin if not? - You need to customize the code of this third party plugin

"You need to customize the code of this third party plugin"

That is what I am willing to do because I am a developer of Packeta plugin.

Do you know why described behavior happens?

Are you willing to provide suggestions on what should be changed in Packeta plugin? (https://github.com/Zasilkovna/WooCommerce/blob/main/src/Packetery/Module/ShippingMethod.php)

Hello

Try converting your custom prices - https://share.pluginus.net/image/i20220630074930.png - add code:

if (class_exists('WOOCS') AND $customRate) {

global $WOOCS;

$customRate = $WOOCS->woocs_exchange_value(floatval($customRate));

}

Thank you for the suggestion. I will let you know what effect it does.

Welcome;)

 

Unfortunately, price conversion in the cart still happens so the price is converted twice with suggested changes.

Is there a way to tell WCCS not to covert prices for Packeta shipping rates so prices can be converted manually by Packeta plugin?

Do you have any other sensible suggestions?

Hello

Ok! Please describe in more detail all incompatibilities. You can  use  screenshots.

What currency do you receive shipping prices?

WCCS transforms prices in cart but it does not do it in checkout. - I thought you wrote that it is not convertible

Hello

I set up a woocommerce instance for testing here: https://eshop-modules.otestuj.to/woocommerce/wordpress

Steps to reproduce:

1) At homepage add"1 kg" product to the cart.
2) go to checkout
2.5) make sure WCCS convertion to USD is active (base price is in CZK)

3) fill country: Czech republic
4) notice the price of"CZ Packeta pickup points" shipping rate
5) go to cart by clicking the cart icon in the top right
6) cart price differs from checkout price

Installed Packeta plugin currently converts prices via WCCS in one place (implemented shipping method) for all visible places in WooCommerce (cart, checkout, etc.). So price is converted twice in cart page. Once by Packeta plugin and once by WCCS. That is incorrect behavior I want to fix with your help.

Hello

very strange!

please  add  FTP +wp-admin access  to your  test site - https://share.pluginus.net/image/i20210618130558.png ->https://share.pluginus.net/image/i20210618130637.png

Hello

We do not have FTP daemon set up on our testing server. Developers use Docker. We are preparing WP installation elsewhere for you to edit.

Hello

Ok!  I'm waiting for the test site to be ready

Hello

I provided the requested private data.

hello

Great!  I will write you as soon as we get the result (I think it will be Tuesday)

Hello

Is there any new update on progress?

Hello

sorry for the delay. Our developers were forced to work on an urgent update of another plugin.

But this week we'll do it

 

Hello

In  file -  \wp-content\plugins\packeta\src\Packetery\Module\Checkout.php - change  this  code - https://c2n.me/4g9jhfF.png

$rate->set_cost( $this->applyFilterWoocsExchangeValue($customRates[ $rate->get_id() ]['cost']) );

and - https://share.pluginus.net/image/i20220714115314.png

//return $this->applyFilterWoocsExchangeValue( (float) $cost );
return (float) $cost ;

 

My test - https://c2n.me/4g9jCnm.mp4

Hello

Can you report your results?

Hello

Changes fix reported issue. We did not notice any side effects. Thank you for your collaboration.

Hello

Ok!  Great!

Will you include this code in the next version of the plugin or should I make an adaptation article?