| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Shipping Cost | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Shipping Cost
Hello,
is it possible to get the shipping cost of an order in the #checkoutSuccess# ? I get the total cost like this {{ this.order.getOrderNumber() }} how I can get the shipping cost? Thank you I use the X-Cart Business 5.3.4.5
__________________
Xcart 4.9 Xcart 5 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Shipping Cost
The shipping cost is just an extra sum stored for the order along with other sums like taxes, handling fees and so on. For each such a sum there is a database row, but there is no ready-made method that would distinct between the rows and return the shipping cost only.
However, it is possible to get the shipping cost from a custom module. Here is the code that the PayPal module uses to pass that value to PayPal servers: PHP Code:
So, first of all you should find what widget class provides methods to the template where you want the shipping cost to be displayed. Then you "decorate" that class from your custom module, add the above method and call this method from your custom template.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|||
X-Cart forums © 2001-2020
|