Jump to content
thirty bees forum

ociephipps

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by ociephipps

  1. On 8/5/2021 at 1:16 AM, yaniv14 said:

    Order confirmation page contains various JS variables.

    'bought_products'          => $varProducts,
    'total_products_tax_incl'  => $order->total_products_wt,
    'total_products_tax_excl'  => $order->total_products,
    'total_shipping_tax_incl'  => $order->total_shipping_tax_incl,
    'total_shipping_tax_excl'  => $order->total_shipping_tax_excl,
    'total_discounts_tax_incl' => $order->total_discounts_tax_incl,
    'total_discounts_tax_excl' => $order->total_discounts_tax_excl,
    'total_paid_tax_incl'      => $order->total_paid_tax_incl,
    'total_paid_tax_excl'      => $order->total_paid_tax_excl,
    'id_customer'              => $this->context->customer->id,

    if you need order id as JS variable you will have to override orderconfirmation controller and add it your self.

    btw: order id is available in order confirmation template as smarty var friday night funkin

    Thanks for the information. It really helped me!

×
×
  • Create New...