Context data available in Quote PDF
Variables
Variable name | Description |
---|---|
| Boolean, indicating whether a given quote has a draft status |
| The billing address data of a given quote. It contains sub-variables:
Please take a look at the |
| Quote’s remarks for PDF. Provided on the detail page |
| Quote’s currency |
| Customer’s email |
| Customer’s number |
| The label defined in the Admin Panel: |
| The visibility setting from the Admin Panel: |
| Customer reference from the quote. Inputted in the checkout |
| The label defined in the Admin Panel: |
| The visibility setting from the Admin Panel: |
| Delivery instructions specified for the quote |
| The amount applied to the quote to compensate for the minimum order price defined in the service settings. It can be either a net or gross price depending on the Admin Panel setting |
| Quote’s expiry date |
| Total fee value of the given quote. It can be either a net or gross price depending on the Admin Panel setting |
| A list of fee objects (fees applied to the quote). Every fee object contains sub-variables:
This is how you could use it in a template: {% for fee_obj in fees %}
{{ fee_obj.fee }}
{% endfor %} |
| General sales conditions of a given printing service |
| General shipping conditions of a given printing service |
| Quote’s creation date |
| A boolean, indicating whether pickup delivery is activated for the given quote |
| URL to the logo of the printing service |
| Footer information defined for the given printing service |
| The whole PickupLocation object that is linked to the given quote. To get the up-to-date list of sub-variables, please look at the |
| The total cost of post-processings of the given quote. It can be either a net or gross price depending on the Admin Panel setting |
| Total print price of the given quote. It can be either a net or gross price depending on the Admin Panel setting |
| Quote’s full number |
| Please take a look at the |
| The whole Service object that is linked to the given quote. To get the up-to-date list of sub-variables, please look at the |
| The whole Address object (address of the printing service). To get the up-to-date list of sub-variables, please look at the |
| The whole Address object (quote’s shipping address). To get the up-to-date list of sub-variables, please look at the |
| The whole ShippingMethod object (quote’s selected shipping method). To get the up-to-date list of sub-variables, please look at the |
| If shipping method is defined, then the range will be displayed in the following format:
|
| The shipping price of the quote. It can be either a net or gross price depending on the Admin Panel setting |
| The subtotal price of the quote. It can be either a net or gross price depending on the Admin Panel setting |
| The total tax value of the quote |
| The tax rate that was applied to the quote |
| The total price object of the quote. It contains sub-variables:
|
| The total quote’s weight either in grams or kilograms |
| Either |
| Either
|
| (Hardcoded) |
| (Hardcoded) |
| (Hardcoded) |
example of b3_address_quoteddress
DB table (release-24.10.x
)
id,deleted_date,title,first_name,last_name,company_name,vat_id,department,line1,line2,zip_code,city,state,phone_number,date_created,country_id,user_id
2,,Herr,John,Doe,High Performance Metals GMbH,DE814254567,871024,Hansaallee 31a,"Building 2, entrance 17",10549,Düsseldorf,Nordrhein-Westfalen,49152841624,2024-10-28 11:35:29.417 +0300,DE,231
Line Variables
The quote_lines
variable is an array of line objects. Every object contains info about a single line. This is how you would usually use it:
{% for line in quote_lines %}
Quote Line {{ line.fullName }}
...
{% endfor %}
This is a list of sub-variables:
Variable name | Description |
---|---|
| Full name of the line e.g. |
| Database identifier of the quote line (an integer value) |
| Database identifier of the linked catalog item if one exists (an integer value) |
| Name of the line e.g. |
| An object containing info about the selected offer. It contains sub-variables:
|
| A part requirements object:
|
| Database identifier of the attached part requirement form |
| An array of objects, containing info about selected post processings. You would usually similarly iterate over those objects as over order lines: The following sub-variables are available:
|
| Preferred due date of the quote line |
| Ordered quantity of the quote line |
| The order number at which the line was uploaded to the basket |
| An object containing info about the stl file. It contains sub-variables:
|
| Price object:
|
| Boolean indication, whether there is a catalog item linked. It’s checking for the existence of |
| An array of objects, containing info about uploaded attachments. You would usually similarly iterate over those objects as over order lines: The following sub-variables are available:
|
| An object containing raw dimensions of the quote line. It contains the following sub-variables (floating-point values):
Those will be in inches or mm, depending on the unit of the stlfile |
| Boolean indicator, whether the given line is manually priced |
| A dead variable. Avoid it |
| Weight of the quote line (times the ordered quantity) in either grams or kilograms. So if the single part weights 50 grams, and the |
| Either |
| Either
|
| This object contains various line prices:
All of those prices are either gross or net depending on the Admin Panel setting |
| File download link, to download the thumbnail of the quote line |
| It contains the part-requirements-form object. This is a very complicated object. Please refer to the |