Php 8 Error: Product gift

30.11.2022 17:26
#1
spike77
Joomshopping forum user no avatar
Name: Manfred
30.04.2015
Posts: 706
Quote
Php 8 Error: Product gift

after put a product with a gift (product page) in the shopping cart, there is a loop (cart ajax), nothing happens.

If you then reload the page, the product is alone in the shopping cart without the gift,

if delete the product, the following error occurs:
count(): Argument #1 ($value) must be of type Countable|array, null given

With php 7.4 it´s ok. But i don´t want use php 7.4 longer.

Send you message with link in pvt.


Last change: 30.11.2022 19:22
 
02.12.2022 22:50
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25853
Quote
Aw: Php 8 Error: Product gift

New version:
Product Gift 2.1.5 (Joomshopping 5.0.0 +)

 
02.12.2022 23:14
#3
spike77
Joomshopping forum user no avatar
Name: Manfred
30.04.2015
Posts: 706
Quote
Aw: Php 8 Error: Product gift

Work now with php 8.x. But after delete main product in Cart, gift is still in the shopping cart with 0,00 €. And if a customer doesn't want the gift and wants to delete it doesn't work either


Last change: 02.12.2022 23:19
 
02.12.2022 23:23
#4
spike77
Joomshopping forum user no avatar
Name: Manfred
30.04.2015
Posts: 706
Quote
Aw: Php 8 Error: Product gift

Next problem: Quantity of Main Product (with Gift) can´t change in Cart.

 
02.12.2022 23:26
#5
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25853
Quote
Aw: Php 8 Error: Product gift

Works for my test shop.

Problem in cars save (or Persistent carts)
------
Try change sorting plugin.

 
02.12.2022 23:33
#6
spike77
Joomshopping forum user no avatar
Name: Manfred
30.04.2015
Posts: 706
Quote
Aw: Php 8 Error: Product gift

You´re right after sorting plugin it works.

But problem with Quantity Change in cart is still here (Change quantity not possible)
Aw: Php 8 Error: Product gift


Last change: 02.12.2022 23:34
 
02.12.2022 23:43
#7
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25853
Quote
Aw: Php 8 Error: Product gift

Works for me.
url?

 
02.12.2022 23:44
#8
spike77
Joomshopping forum user no avatar
Name: Manfred
30.04.2015
Posts: 706
Quote
Aw: Php 8 Error: Product gift

See pvt.

 
02.12.2022 23:51
#9
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25853
Quote
Aw: Php 8 Error: Product gift

Try disable other plugin (save cart or presist...)

 
02.12.2022 23:55
#10
spike77
Joomshopping forum user no avatar
Name: Manfred
30.04.2015
Posts: 706
Quote
Aw: Php 8 Error: Product gift

But persist cart need urgently

 
02.12.2022 23:59
#11
spike77
Joomshopping forum user no avatar
Name: Manfred
30.04.2015
Posts: 706
Quote
Aw: Php 8 Error: Product gift

Crazy, in my test-shop change quantity works with activated persist cart.

See in pvt

 
02.12.2022 23:59
#12
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25853
Quote
Aw: Php 8 Error: Product gift

After disabled works?

 
03.12.2022 01:48
#13
spike77
Joomshopping forum user no avatar
Name: Manfred
30.04.2015
Posts: 706
Quote
Aw: Php 8 Error: Product gift

I think, i´ve found the problem.

sort plugins (checkout):

1. persist cart
2. add_gift_to_cart
3. order_gift
.... then all other plugins.

Now it look like, it works. Jesus christ....


Last change: 03.12.2022 01:49
 
03.12.2022 14:34
#14
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25853
Quote
Aw: Php 8 Error: Product gift

Many addons / plugins - need fine tuning.

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.