|
21.03.2025 18:44
|
|
pasiatk
Name: Pasi
14.03.2025
Posts: 9
|
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
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 28106
|
Aw: Error in checkout
Paytrail developer?
|
| |
|
22.03.2025 04:56
|
|
pasiatk
Name: Pasi
14.03.2025
Posts: 9
|
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
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 28106
|
Aw: Error in checkout
Url product page?
|
| |
|
24.03.2025 08:16
|
|
pasiatk
Name: Pasi
14.03.2025
Posts: 9
|
Aw: Error in checkout
https://www.revonmaki.fi/demo/index.php/pasin-fanclub/product/view/1/1
|
| |
|
24.03.2025 09:10
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 28106
|
Aw: Error in checkout
Paytrail addon for JoomShopping?
url?
(is this a paid extension or free?)
|
| |
|
24.03.2025 11:19
|
|
pasiatk
Name: Pasi
14.03.2025
Posts: 9
|
Aw: Error in checkout
Extension is free. https://www.paytrail.com/en/compatible-platforms
|
| |
|
24.03.2025 12:43
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 28106
|
Aw: Error in checkout
Works for me
|
| |
|
24.03.2025 17:56
|
|
pasiatk
Name: Pasi
14.03.2025
Posts: 9
|
Aw: Error in checkout
Hmmm... What Joomlaversion and what JoomShopping version you used?
|
| |
|
24.03.2025 20:39
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 28106
|
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
|
|
pasiatk
Name: Pasi
14.03.2025
Posts: 9
|
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
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 28106
|
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
|
|
pasiatk
Name: Pasi
14.03.2025
Posts: 9
|
Aw: Error in checkout
Ok, I will, thanks.
|
| |
|
26.03.2025 07:40
|
|
pasiatk
Name: Pasi
14.03.2025
Posts: 9
|
Aw: Error in checkout
Yup. Now it's working without shipment too.
|
| |