Error in checkout

21.03.2025 18:44
#1
pasiatk
Joomshopping forum user no avatar
Name: Pasi
14.03.2025
Posts: 9
Quote
Error in checkout

I am building new site with JoomShopping and get stuck. I installed paying method Paytrail and now when I confirm order I get error message "productCode is empty". But I have set product number and it is shown in order. If I choose cash on delivery then everything works fine and I get order done.


Joomla: 5.2.5
JoomShopping: 5.5.6
PHP: 8.1
 
21.03.2025 20:13
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 28106
Quote
Aw: Error in checkout

Paytrail developer?

 
22.03.2025 04:56
#3
pasiatk
Joomshopping forum user no avatar
Name: Pasi
14.03.2025
Posts: 9
Quote
Aw: Error in checkout

After support heard I am in testing Paytrail but don't have contract yet they have not answered. At first I get merchant ID and merchant secred from sales to testing but support is another story.

 
22.03.2025 07:10
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 28106
Quote
Aw: Error in checkout

Url product page?

 
24.03.2025 08:16
#5
pasiatk
Joomshopping forum user no avatar
Name: Pasi
14.03.2025
Posts: 9
Quote
Aw: Error in checkout

https://www.revonmaki.fi/demo/index.php/pasin-fanclub/product/view/1/1

 
24.03.2025 09:10
#6
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 28106
Quote
Aw: Error in checkout

Paytrail addon for JoomShopping?
url?
(is this a paid extension or free?)

 
24.03.2025 11:19
#7
pasiatk
Joomshopping forum user no avatar
Name: Pasi
14.03.2025
Posts: 9
Quote
Aw: Error in checkout

Extension is free. https://www.paytrail.com/en/compatible-platforms

 
24.03.2025 12:43
#8
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 28106
Quote
Aw: Error in checkout

Works for me
Aw: Error in checkout

 
24.03.2025 17:56
#9
pasiatk
Joomshopping forum user no avatar
Name: Pasi
14.03.2025
Posts: 9
Quote
Aw: Error in checkout

Hmmm... What Joomlaversion and what JoomShopping version you used?

 
24.03.2025 20:39
#10
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 28106
Quote
Aw: Error in checkout

Joomshopping 5.6

Joomla 5.x

Try enable shipping.


Last change: 24.03.2025 20:42
 
25.03.2025 16:52
#11
pasiatk
Joomshopping forum user no avatar
Name: Pasi
14.03.2025
Posts: 9
Quote
Aw: Error in checkout

Yes! Thank you, that did the trick! Rethorical question but why? Why payment is depending shipping. But all good, now I can go ahead, thanks again :)


Last change: 25.03.2025 16:53
 
25.03.2025 17:02
#12
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 28106
Quote
Aw: Error in checkout

See code
pm_paytrail.php

row 355

if ($order->order_shipping) {
$product_data['title'] = $name;
$product_data['code'] = $name;
$product_data['amount'] = (int) 1;
$product_data['price'] = $order->order_shipping;
$product_data['vat'] = (int) $order->shipping_tax;
$products[] = $product_data;
}

There may be a mistake here.
I didn't look in detail (needs testing)

Try cange

if ($order->order_shipping > 0)

----------------

if ($order->order_package) {

try change
if ($order->order_package > 0) {


Last change: 25.03.2025 17:05
 
25.03.2025 17:10
#13
pasiatk
Joomshopping forum user no avatar
Name: Pasi
14.03.2025
Posts: 9
Quote
Aw: Error in checkout

Ok, I will, thanks.

 
26.03.2025 07:40
#14
pasiatk
Joomshopping forum user no avatar
Name: Pasi
14.03.2025
Posts: 9
Quote
Aw: Error in checkout

Yup. Now it's working without shipment too.
Aw: Error in checkout

 


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.