# Order.js

On the successful order page, you can place scripts that can access the data of the given order.

The lastOrder property of the ShopRenter javascript object contains the data related to the order, such as the general data (delivery and payment method, currency, etc.) and the data of the ordered products.

The object does not contain sensitive data on the basis of which the Buyer could be identified.

Example:

console.log(ShopRenter.lastOrder);

# Meaning of some fields:

property meaning
id order id
customerGroup customer group
total Total amount payable after ordering
orderStatusId Identifier of the post-order status
currency The currency in which the order was placed
dateAdded The date the order was created
shipping.methodName The delivery method is the name displayed in the language of the order
shipping.methodCode Text identifier of the shipping method
shipping.country Country name, in the language of the order
shipping.countryId The country identifier
shipping.vatRate VAT amount for the delivery method
shipping.expectedDelivery Expected delivery time in timestamp
payment.methodName The name of the payment method displayed in the language of the order
payment.methodCode The text identifier of the payment method
payment.vatRate VAT rate for the payment method
coupon.id Identifier of the coupon
coupon.vatRate The rate of VAT for the coupon.
products Includes the products in the order
products.id Identifier of the product
products.title Product name
products.unitPrice Unit price of the product
products.totalPrice Total price of the product (quantity * unit price)
products.vatRate The rate of VAT for the product
products.quantity Quantity
products.sku Article number of the product
products.giftWrapping Data on the gift packaging requested by the Customer for each product. If you do not request packaging for the given product, there will be an empty array on this property
products.giftWrapping.id The internal identifier of the package
products.giftWrapping.sku Article number of the packaging
products.giftWrapping.price Net price of packaging
products.giftWrapping.vat VAT of packaging
products.giftWrapping.name Name of the package
products.giftWrapping.quantityName The name of the packaging unit, e.g. box
giftWrapping The basket's gift wrapping. Although its structure is the same as when we pack the products individually. If the Buyer does not request packaging for the entire basket, there will be an empty block on this property
loyaltyPoints Data of the loyalty point used in the order. If the loyalty point system is not enabled, or no loyalty points were used for the given order, there is an empty array on this property
loyaltyPoints.usedPoints The number of points used in the order
loyaltyPoints.valueOfOnePoint Value of one point in HUF
loyaltyPoints.vatRate VAT value. It only affects the transfer to the invoicing program, it does not change the value of the loyalty point.
loyaltyPoints.totalValue The total amount covered by the Customer with loyalty points during the order. This is displayed converted to the currency corresponding to the order. (currency property)
© 2011 - 2025 Shoprenter Kft.