Skillnad mellan versioner av "Templating:Printed orders"

Från Vendre Help
Hoppa till: navigering, sök
(Skapade sidan med 'Having relaxed intercourse is a well known fact of existence . A lot of people do it , and the majority of love it . It really is fine to be in an important relationship , howeve...')
 
(Old variables)
 
(11 mellanliggande versioner av en annan användare visas inte)
Rad 1: Rad 1:
Having relaxed intercourse is a well known fact of existence . A lot of people do it , and the majority of love it . It really is fine to be in an important relationship , however it is additionally usual to desire for casual love-making whenever you are not in a monogamous relationship . But you probably know that you need to be aware and use protection . In addition condoms though , you should just be sure you you will need to have casual sex . That doesn't imply on the emotional side either . Our bodies is required to appear and feel impressive due to the fact without that you not sense that you are sexy enough to get casual sexual activity .  
+
This page documents the Twig template variables and extensions available in printed orders.
  
Prior to head out for the evening you should definitely check your own body to be certain it is casual sex ready . This means for females trying to see if you should shave your legs . You undoubtedly are afraid to have that desire erupt with anyone you encounter just to understand that your legs or even underarms are hairy . Find and use something that may be all-natural for your physique tending to help you take out undesirable hair .
+
==Twig variables==
  
[http://paivakahvit.info paivakahvit] is definitely the best way to secure some laid-back pleasure , without having need for serious devotion . Find out more relating to this great thing in the blog site connected through this minor footer words .
+
===Special variables===
 +
These variables are available for all print types.
 +
 
 +
{|class="wikitable"
 +
!variable
 +
!description
 +
|-
 +
|stylesheets
 +
|A list of CSS files that should be included for proper rendering.  The files differ depending on what rendering method is being used.
 +
|-
 +
|header
 +
|A block of HTML containing the administration elements.
 +
|}
 +
 
 +
===Old variables===
 +
Available when not printing a pickinglist.
 +
 
 +
{|class="wikitable"
 +
!variable
 +
!description
 +
|-
 +
|title
 +
|
 +
|-
 +
|type
 +
|
 +
|-
 +
|customer_id
 +
|
 +
|-
 +
|order_id
 +
|
 +
|-
 +
|logo_url
 +
|
 +
|-
 +
|charset
 +
|
 +
|-
 +
|store_name
 +
|
 +
|-
 +
|store_owner
 +
|
 +
|-
 +
|date
 +
|
 +
|-
 +
|shipping_name
 +
|
 +
|-
 +
|dynamic_shipping_name
 +
|
 +
|-
 +
|shipping_company
 +
|
 +
|-
 +
|shipping_street
 +
|
 +
|-
 +
|shipping_street2
 +
|
 +
|-
 +
|shipping_street2_top
 +
|
 +
|-
 +
|shipping_area
 +
|
 +
|-
 +
|shipping_postcode
 +
|
 +
|-
 +
|shipping_country
 +
|
 +
|-
 +
|billing_name
 +
|
 +
|-
 +
|dynamic_billing_name
 +
|
 +
|-
 +
|billing_company
 +
|
 +
|-
 +
|billing_street
 +
|
 +
|-
 +
|billing_street2
 +
|
 +
|-
 +
|billing_street2_top
 +
|
 +
|-
 +
|billing_area
 +
|
 +
|-
 +
|billing_postcode
 +
|
 +
|-
 +
|billing_country
 +
|
 +
|-
 +
|your_reference
 +
|
 +
|-
 +
|personnummer
 +
|
 +
|-
 +
|email_address
 +
|
 +
|-
 +
|order_comment
 +
|
 +
|-
 +
|dynamic_order_text
 +
|
 +
|-
 +
|customer_phone
 +
|
 +
|-
 +
|customer_mobile
 +
|
 +
|-
 +
|customer_external_id
 +
|
 +
|-
 +
|our_reference
 +
|
 +
|-
 +
|payment_method
 +
|
 +
|-
 +
|payment_terms
 +
|
 +
|-
 +
|shipping_method
 +
|
 +
|-
 +
|shipping_terms
 +
|
 +
|-
 +
|due_date
 +
|
 +
|-
 +
|penalty_interest
 +
|
 +
|-
 +
|organization_id
 +
|
 +
|-
 +
|vat_id
 +
|
 +
|-
 +
|f_skatt
 +
|
 +
|-
 +
|plusgiro
 +
|
 +
|-
 +
|bankgiro
 +
|
 +
|-
 +
|iban
 +
|
 +
|-
 +
|bic
 +
|
 +
|-
 +
|store_street
 +
|
 +
|-
 +
|store_area
 +
|
 +
|-
 +
|store_country
 +
|
 +
|-
 +
|phone
 +
|
 +
|-
 +
|fax
 +
|
 +
|-
 +
|website_url
 +
|
 +
|-
 +
|website
 +
|
 +
|-
 +
|email
 +
|
 +
|-
 +
|message
 +
|
 +
|-
 +
|currency
 +
|
 +
|-
 +
|totals
 +
|
 +
|-
 +
|totals[].class
 +
|
 +
|-
 +
|totals[].title
 +
|
 +
|-
 +
|totals[].amount
 +
|
 +
|-
 +
|admin
 +
|See New variables.
 +
|-
 +
|order
 +
|See New variables.
 +
|-
 +
|products
 +
|See old product variables.
 +
|}
 +
 
 +
===pickinglist variables===
 +
Available when printing a pickinglist.
 +
 
 +
{|class="wikitable"
 +
!variable
 +
!description
 +
|-
 +
|title
 +
|
 +
|-
 +
|charset
 +
|
 +
|-
 +
|type
 +
|
 +
|-
 +
|logo_url
 +
|
 +
|-
 +
|store_name
 +
|
 +
|-
 +
|date
 +
|
 +
|-
 +
|products
 +
|See old product variables.
 +
|}
 +
 
 +
===old product variables===
 +
 
 +
{|class="wikitable"
 +
!variable
 +
!description
 +
|-
 +
|odd_even
 +
|
 +
|-
 +
|quantity_css
 +
|
 +
|-
 +
|id
 +
|
 +
|-
 +
|name
 +
|Same as title.
 +
|-
 +
|sort_order
 +
|Same as title.
 +
|-
 +
|title
 +
|
 +
|-
 +
|model
 +
|
 +
|-
 +
|manufacturer_model
 +
|
 +
|-
 +
|ean1
 +
|
 +
|-
 +
|image_id
 +
|
 +
|-
 +
|tax_percent
 +
|
 +
|-
 +
|qty
 +
|
 +
|-
 +
|unit
 +
|
 +
|-
 +
|package_content
 +
|
 +
|-
 +
|stock_qty
 +
|
 +
|-
 +
|price_excl_tax
 +
|
 +
|-
 +
|price_incl_tax
 +
|
 +
|-
 +
|row_total_excl_tax
 +
|
 +
|-
 +
|row_total_incl_tax
 +
|
 +
|-
 +
|attributes
 +
|
 +
|-
 +
|attributes[].option
 +
|
 +
|-
 +
|attributes[].value
 +
|
 +
|-
 +
|attributes[].price_incl_tax
 +
|
 +
|-
 +
|stock_place
 +
|
 +
|}
 +
 
 +
===New variables===
 +
These variables are available under the variables admin and order, the variables under admin use the administration's language and the variables under order use the order's language.  These variables are not available when printing pickinglists.
 +
 +
{|class="wikitable"
 +
!variable
 +
!description
 +
|-
 +
|products
 +
|The products on the order as an array.  The products are sorted according the the store's configuration.
 +
|-
 +
|products[].sort_order
 +
|
 +
|-
 +
|products[].id
 +
|Product id.
 +
|-
 +
|products[].quantity
 +
|Number of products ordered.
 +
|-
 +
|products[].price
 +
|Price used.
 +
|-
 +
|products[].tax
 +
|Tax rate used.
 +
|-
 +
|products[].model
 +
|Product model.
 +
|-
 +
|products[].name
 +
|Product name used.
 +
|-
 +
|products[].package_content
 +
|Package content for units.
 +
|-
 +
|products[].stock_place
 +
|
 +
|-
 +
|products[].specifications
 +
|Product specifications as an array.
 +
|-
 +
|products[].specifications[].id
 +
|Specification id.
 +
|-
 +
|products[].specifications[].name
 +
|Specification value.
 +
|-
 +
|products[].specifications[].type
 +
|Either value or text.
 +
|-
 +
|products[].specifications[].value
 +
|Specification value
 +
|-
 +
|products[].specifications[].unit
 +
|Unit information.  Note that the correct language might not be used.
 +
|-
 +
|products[].specifications[].unit.id
 +
|Unit id.
 +
|-
 +
|products[].specifications[].unit.abbr
 +
|Unit abbreviation.
 +
|-
 +
|products[].specifications[].unit.relation_id
 +
|Unit relation id.
 +
|-
 +
|products[].specifications[].unit.calculation_value
 +
|Unit calculation value.
 +
|-
 +
|products[].specifications[].short_value
 +
|The short value, only when type is text.
 +
|-
 +
|products[].attributes
 +
|Selected attributes, as an array.
 +
|-
 +
|products[].attributes[].option
 +
|Attribute name.
 +
|-
 +
|products[].attributes[].value
 +
|Attribute value.
 +
|-
 +
|products[].attributes[].price
 +
|Attribute cost.
 +
|}
 +
 
 +
==Twig extensions==
 +
===admin_langstr, order_langstr===
 +
<tt>admin_langstr</tt> and <tt>order_langstr</tt> are functions that take a language string and return its value for either the administration's language or the order's language.  Language strings are loaded from the global namespace.
 +
 
 +
<tt>order_langstr</tt> is not available when printing pickinglists.
 +
 
 +
Example:
 +
<pre>
 +
{{ admin_langstr('TEXT_HEADER_DEFAULT') }}
 +
</pre>
 +
 
 +
===admin_currency_format, order_currency_format===
 +
<tt>admin_currency_format</tt> and <tt>order_currency_format</tt> are filters that take a currency value and format it according to the administration's default currency or the order's currency.
 +
 
 +
<tt>order_currency_format</tt> is not available when printing pickinglists.
 +
 
 +
Example:
 +
<pre>
 +
{{ 12.345 | admin_currency_format }}
 +
</pre>

Nuvarande version från 20 november 2024 kl. 16.40

This page documents the Twig template variables and extensions available in printed orders.

Twig variables

Special variables

These variables are available for all print types.

variable description
stylesheets A list of CSS files that should be included for proper rendering. The files differ depending on what rendering method is being used.
header A block of HTML containing the administration elements.

Old variables

Available when not printing a pickinglist.

variable description
title
type
customer_id
order_id
logo_url
charset
store_name
store_owner
date
shipping_name
dynamic_shipping_name
shipping_company
shipping_street
shipping_street2
shipping_street2_top
shipping_area
shipping_postcode
shipping_country
billing_name
dynamic_billing_name
billing_company
billing_street
billing_street2
billing_street2_top
billing_area
billing_postcode
billing_country
your_reference
personnummer
email_address
order_comment
dynamic_order_text
customer_phone
customer_mobile
customer_external_id
our_reference
payment_method
payment_terms
shipping_method
shipping_terms
due_date
penalty_interest
organization_id
vat_id
f_skatt
plusgiro
bankgiro
iban
bic
store_street
store_area
store_country
phone
fax
website_url
website
email
message
currency
totals
totals[].class
totals[].title
totals[].amount
admin See New variables.
order See New variables.
products See old product variables.

pickinglist variables

Available when printing a pickinglist.

variable description
title
charset
type
logo_url
store_name
date
products See old product variables.

old product variables

variable description
odd_even
quantity_css
id
name Same as title.
sort_order Same as title.
title
model
manufacturer_model
ean1
image_id
tax_percent
qty
unit
package_content
stock_qty
price_excl_tax
price_incl_tax
row_total_excl_tax
row_total_incl_tax
attributes
attributes[].option
attributes[].value
attributes[].price_incl_tax
stock_place

New variables

These variables are available under the variables admin and order, the variables under admin use the administration's language and the variables under order use the order's language. These variables are not available when printing pickinglists.

variable description
products The products on the order as an array. The products are sorted according the the store's configuration.
products[].sort_order
products[].id Product id.
products[].quantity Number of products ordered.
products[].price Price used.
products[].tax Tax rate used.
products[].model Product model.
products[].name Product name used.
products[].package_content Package content for units.
products[].stock_place
products[].specifications Product specifications as an array.
products[].specifications[].id Specification id.
products[].specifications[].name Specification value.
products[].specifications[].type Either value or text.
products[].specifications[].value Specification value
products[].specifications[].unit Unit information. Note that the correct language might not be used.
products[].specifications[].unit.id Unit id.
products[].specifications[].unit.abbr Unit abbreviation.
products[].specifications[].unit.relation_id Unit relation id.
products[].specifications[].unit.calculation_value Unit calculation value.
products[].specifications[].short_value The short value, only when type is text.
products[].attributes Selected attributes, as an array.
products[].attributes[].option Attribute name.
products[].attributes[].value Attribute value.
products[].attributes[].price Attribute cost.

Twig extensions

admin_langstr, order_langstr

admin_langstr and order_langstr are functions that take a language string and return its value for either the administration's language or the order's language. Language strings are loaded from the global namespace.

order_langstr is not available when printing pickinglists.

Example:

{{ admin_langstr('TEXT_HEADER_DEFAULT') }}

admin_currency_format, order_currency_format

admin_currency_format and order_currency_format are filters that take a currency value and format it according to the administration's default currency or the order's currency.

order_currency_format is not available when printing pickinglists.

Example:

{{ 12.345 | admin_currency_format }}