[Skip to main content](#vessel-content)

#   After update to v4.4.0 minimum weight restriction in PayPal not respected

##

- **[Giuse](/forum/user/59190-giuse "View Giuse's Profile")**
- [![Giuse's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59190-giuse "View Giuse's Profile") Topic Author
- [ Offline](/forum/user/59190-giuse)

Less More

- Posts: 86
- Thank you received: 5
-
-

6 years 2 months ago [\#324311](#324311) by [Giuse](/forum/user/59190-giuse "View Giuse's Profile")  *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324311 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")* was created by *[Giuse](/forum/user/59190-giuse "View Giuse's Profile")*

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.4.1
-- Browser(s) name and version -- : Chrome

Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown.
Could you please check?
thanks

Giuse

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

6 years 2 months ago [\#324328](#324328) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324328 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")*

Hello Giuse,

I just tested it on my and and it worked fine, can you show us screenshots of how you configured :
- Your Paypal Payment method via "Hikashop-&gt;System-&gt;Configuration-&gt;Payment methods"
- The products weight/dimensions that were used during your tests via "Hikashop-&gt;Products"

So that we can reproduce it on our end with the same configuration ? Thank you.

Kind regards,
Mohamed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Giuse](/forum/user/59190-giuse "View Giuse's Profile")**
- [![Giuse's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59190-giuse "View Giuse's Profile") Topic Author
- [ Offline](/forum/user/59190-giuse)

Less More

- Posts: 86
- Thank you received: 5
-
-

6 years 2 months ago [\#324337](#324337) by [Giuse](/forum/user/59190-giuse "View Giuse's Profile")  Replied by *[Giuse](/forum/user/59190-giuse "View Giuse's Profile")* on topic *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324337 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")*

Sure, here you have:

- checkout where both paypal plugins now appear
- restriction of payment plugins
- product variant configuration with no weight

let me know if you need more info
thanks and best regards

Giuse

- [ ![weigth-checkout.jpg](/forum/attachment/50659) ](/forum/attachment/50659 "...h-checkout.jpg") [ ](/forum/attachment/50659?download=1 "...h-checkout.jpg")
- [ ![weigth-payment.jpg](/forum/attachment/50660) ](/forum/attachment/50660 "...th-payment.jpg") [ ](/forum/attachment/50660?download=1 "...th-payment.jpg")
- [ ![weigth-product-variant.jpg](/forum/attachment/50661) ](/forum/attachment/50661 "...ct-variant.jpg") [ ](/forum/attachment/50661?download=1 "...ct-variant.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

6 years 2 months ago [\#324362](#324362) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324362 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")*

Hello,

Well, that's weird I wasn't able to reproduce your issue on my end with the same configuration.

Can you send us a temporary access to your back-end so that we can directly test and reproduce it on your website ? Thank you.
You can send it using our contact form. Please, don't forget to specify a link to that thread in your message :
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

Kind regards,
Mohamed

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Giuse](/forum/user/59190-giuse "View Giuse's Profile")**
- [![Giuse's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59190-giuse "View Giuse's Profile") Topic Author
- [ Offline](/forum/user/59190-giuse)

Less More

- Posts: 86
- Thank you received: 5
-
-

6 years 2 months ago [\#324403](#324403) by [Giuse](/forum/user/59190-giuse "View Giuse's Profile")  Replied by *[Giuse](/forum/user/59190-giuse "View Giuse's Profile")* on topic *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324403 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")*

hi, done through contact form.
cheers

Giuse

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

6 years 1 month ago [\#324421](#324421) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324421 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")*

Hello Giuse,

That's weird, even if I restrict your payment method to your shipping method, it's still displayed with a weightless product.

Can you download the last Hikashop version through our website, install it and test it again ? Thank you.

Kind regards,
Mohamed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Giuse](/forum/user/59190-giuse "View Giuse's Profile")**
- [![Giuse's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59190-giuse "View Giuse's Profile") Topic Author
- [ Offline](/forum/user/59190-giuse)

Less More

- Posts: 86
- Thank you received: 5
-
-

6 years 1 month ago [\#324458](#324458) by [Giuse](/forum/user/59190-giuse "View Giuse's Profile")  Replied by *[Giuse](/forum/user/59190-giuse "View Giuse's Profile")* on topic *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324458 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")*

Hi, I just tried but no change: the payment for tangible goods (weight &gt; 0) is still displayed in checkout, with HikaShop 4.3 the problem was not there..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

6 years 1 month ago [\#324481](#324481) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324481 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")*

Hello,

I'm actually using the last Hikashop version and I wasn't able to reproduce it on my end, can you test it after clearing your website and browser's cache, and also with one of Joomla's default template ? Thank you.

If you're still having the same issue, can you send us a temporary FTP access to your website so that we can directly debug the code ? Thank you
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

Please, don't forget to add a link to that thread in your message.

Kind regards,
Mohamed

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Giuse](/forum/user/59190-giuse "View Giuse's Profile")**
- [![Giuse's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59190-giuse "View Giuse's Profile") Topic Author
- [ Offline](/forum/user/59190-giuse)

Less More

- Posts: 86
- Thank you received: 5
-
-

6 years 1 month ago [\#324578](#324578) by [Giuse](/forum/user/59190-giuse "View Giuse's Profile")  Replied by *[Giuse](/forum/user/59190-giuse "View Giuse's Profile")* on topic *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324578 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")*

hi, just sent you the ftp access
cheers

Giuse

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

6 years 1 month ago -  6 years 1 month ago [\#324608](#324608) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324608 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")*

Hello Giuse,

We actually don't have the rights to write on your files, so we can't properly debug it.

Can you edit the file "*administrator/components/com\_hikashop/helpers/**paymentplugin.php***" and change that line : Code:

if(bccomp((float)$method-&gt;payment_params-&gt;payment_min_weight, (float)$order-&gt;weight, 3) == 1){

By : Code:

if(bccomp(sprintf('%.3F',$method-&gt;payment_params-&gt;payment_min_weight), sprintf('%.3F',$order-&gt;weight), 3) == 1)

And that line : Code:

if(bccomp((float)$method-&gt;payment_params-&gt;payment_max_weight, (float)$order-&gt;weight, 3) == -1){

By : Code:

if(bccomp(sprintf('%.3F',$method-&gt;payment_params-&gt;payment_max_weight), sprintf('%.3F',$order-&gt;weight), 3) == -1)

Thank you !

Kind regards,
Mohamed.

Last edit: 6 years 1 month ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Giuse](/forum/user/59190-giuse "View Giuse's Profile")**
- [![Giuse's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59190-giuse "View Giuse's Profile") Topic Author
- [ Offline](/forum/user/59190-giuse)

Less More

- Posts: 86
- Thank you received: 5
-
-

6 years 1 month ago [\#324616](#324616) by [Giuse](/forum/user/59190-giuse "View Giuse's Profile")  Replied by *[Giuse](/forum/user/59190-giuse "View Giuse's Profile")* on topic *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324616 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")*

It seems as not to solve. I just gave you grant for write in helpers folder for additional tests.
cheers

Giuse

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

6 years 1 month ago [\#324663](#324663) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324663 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")*

Hello Giuse,

I'm actually having a "530 Login incorrect." error message when I test it with the credentials you sent, can you please check it ? Thank you.

Kind regards,
Mohamed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Giuse](/forum/user/59190-giuse "View Giuse's Profile")**
- [![Giuse's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59190-giuse "View Giuse's Profile") Topic Author
- [ Offline](/forum/user/59190-giuse)

Less More

- Posts: 86
- Thank you received: 5
-
-

6 years 1 month ago [\#324667](#324667) by [Giuse](/forum/user/59190-giuse "View Giuse's Profile")  Replied by *[Giuse](/forum/user/59190-giuse "View Giuse's Profile")* on topic *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324667 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")*

hi, very strange, I tested without problem on my side, I just resent them via contact form
cheers

Giuse

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

6 years 1 month ago [\#324692](#324692) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324692 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")*

Hello Giuse,

That's great I just added a fix on your website using the FTP access you sent us, can you test it and tell us if you are having any other issue ? Thank you.

Kind regards,
Mohamed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Giuse](/forum/user/59190-giuse "View Giuse's Profile")**
- [![Giuse's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59190-giuse "View Giuse's Profile") Topic Author
- [ Offline](/forum/user/59190-giuse)

Less More

- Posts: 86
- Thank you received: 5
-
-

6 years 1 month ago [\#324706](#324706) by [Giuse](/forum/user/59190-giuse "View Giuse's Profile")  Replied by *[Giuse](/forum/user/59190-giuse "View Giuse's Profile")* on topic *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324706 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")*

Hi and thanks. Now the weight restriction seems to work correctly.
Your patch added some logs to the front end as attached that should be removed.
When will this patch be included in the official download to update real sites?
thanks

Giuse

- [ ![cartmodule.jpg](/forum/attachment/50758) ](/forum/attachment/50758 "cartmodule.jpg") [ ](/forum/attachment/50758?download=1 "cartmodule.jpg")
- [ ![checkout.jpg](/forum/attachment/50759) ](/forum/attachment/50759 "checkout.jpg") [ ](/forum/attachment/50759?download=1 "checkout.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

6 years 1 month ago [\#324713](#324713) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[After update to v4.4.0 minimum weight restriction in PayPal not respected](/forum/29-payment-methods/900870-after-update-to-v4-4-0-minimum-weight-restriction-in-paypal-not-respected#324713 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4.1 -- Browser(s) name and version -- : Chrome  Hi, I just updated to 4.4.0 and noticed that the PayPal payment plugin does not respect minimum weight restriction: I have 2 PayPal plugins, one for software with max weight of 0.01 g and the other for tangible goods with min weight of 0.02 g. When buying a software with 0 Kg weight, in the checkout both payments are present. Before in 4.3 just the forst was correctly shown. Could you please check? thanks  Giuse")*

Hello,

You're right, some debug code was left, it should be better now. Thank again for your feedback !

Yes, we'll add it through the next Hikashop version.

Kind regards,
Mohamed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDA4NzAtYWZ0ZXItdXBkYXRlLXRvLXY0LTQtMC1taW5pbXVtLXdlaWdodC1yZXN0cmljdGlvbi1pbi1wYXlwYWwtbm90LXJlc3BlY3RlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.093 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
