View Single Post
  #3  
Old 01-24-2018, 10:43 AM
 
BurtonTech BurtonTech is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 46
 

Default Re: Best way to query variables in 5.3

I'm planning on putting an affiliate tracking code in a footer twig file since we may need to modify it to show up on other pages in the near future. It will only ever need to be present on the product, category, home, and checkoutSuccess pages. For now I'll use this.getTarget() as a selector. This twig file seems to work well for that:

customer/layout/footer/main.footer.section.twig

The data that we need to query is the current order number and subtotal amount of the cart. I'm not sure at what point the order number is generated, but we can just pass a blank value until it is generated.

Is there a widget call or global variable I can call to pull this data?

Thanks!
__________________
X-Cart Gold 4.4.5
X-Cart Ultimate 5.2.22
X-Cart Business 5.3.2.13
X-Payments 3
Reply With Quote