Checkout summary / detail-standard -> payments ->getPrice = 0

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
rowild

Checkout summary / detail-standard -> payments ->getPrice = 0

Post by rowild » 18 Nov 2020, 23:10

In the detail-standard partial in the checkout process (and earlier) there is a check, whether a payment service has a price value.

Code: Select all

<?php if( $service->getPrice()->getValue() > 0 ) : ?>
In my case this is always 0, even though I assign a value in the backend. That value, though, appears under

Code: Select all

price.costs
, never under value. Same thing is true for delivery.

Is there a specific reason, why this is happening? When is "value" used, when "costs" – what is their difference?

Thank you!!!

User avatar
aimeos
Administrator
Posts: 7881
Joined: 01 Jan 1970, 00:00

Re: Checkout summary / detail-standard -> payments ->getPrice = 0

Post by aimeos » 19 Nov 2020, 17:05

In older versions, it was possible to add the amount either as value or as costs in the admin backend. This isn't available any more but plugins and decorators can still add amouts both ways because price object have a value and a costs (e.g. shipping cost per product item) property. Nowadays, only the costs property is used for services but the template can still render values that have been added as price.value
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply