{"id":2004,"date":"2021-02-24T12:17:43","date_gmt":"2021-02-24T06:47:43","guid":{"rendered":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/short-codes\/"},"modified":"2023-12-12T13:02:07","modified_gmt":"2023-12-12T07:32:07","slug":"short-codes","status":"publish","type":"docs","link":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/short-codes\/","title":{"rendered":"Short-codes"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Short-codes based on Order Information<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"table table-hover\"><tbody><tr><td><strong>Short-code<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>{order_id}<\/td><td>Order ID<\/td><\/tr><tr><td>{link}<\/td><td>Customer Order Info view link<\/td><\/tr><tr><td>{date_added}<\/td><td>Order Date <\/td><\/tr><tr><td>{order_total}<\/td><td>Order Total<\/td><\/tr><tr><td>{payment_address}<\/td><td>Payment Address<\/td><\/tr><tr><td>{shipping_address}<\/td><td>Shipping Address<\/td><\/tr><tr><td>{order_id}<\/td><td>Order ID<\/td><\/tr><tr><td>{invoice_no}<\/td><td>Invoice Number<\/td><\/tr><tr><td>{invoice_prefix}<\/td><td>Invoice Prefix<\/td><\/tr><tr><td>{store_id}<\/td><td>Store ID<\/td><\/tr><tr><td>{store_name}<\/td><td>Store Name<\/td><\/tr><tr><td>{store_url}<\/td><td>Store URL<\/td><\/tr><tr><td>{customer_id}<\/td><td>Customer ID<\/td><\/tr><tr><td>{firstname}<\/td><td>Customer First Name<\/td><\/tr><tr><td>{lastname}<\/td><td>Customer Last Name<\/td><\/tr><tr><td>{email}<\/td><td>Customer Email<\/td><\/tr><tr><td>{telephone}<\/td><td>Customer Telephone<\/td><\/tr><tr><td>{comment}<\/td><td>Customer Comment added in the order<\/td><\/tr><tr><td>{total}<\/td><td>Total amount without formatting<\/td><\/tr><tr><td>{date_modified}<\/td><td>Last modified date<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><em><strong>More short-codes: Enclose the variable with {}<\/strong><\/em><\/h2>\n\n\n\n<p>payment_firstname, payment_lastname, payment_company, payment_address_1, payment_address_2, payment_postcode, payment_city, payment_zone_id, payment_zone, payment_zone_code, payment_country_id, payment_country, payment_iso_code_2, payment_iso_code_3, payment_method, payment_code, shipping_firstname, shipping_lastname, shipping_company, shipping_address_1, shipping_address_2, shipping_postcode, shipping_city, shipping_zone_id, shipping_zone, shipping_zone_code, shipping_country_id, shipping_country, shipping_iso_code_2, shipping_iso_code_3, shipping_address_format, shipping_method, shipping_code, order_status_id, order_status, affiliate_id, commission, language_id, language_code, currency_id, currency_code, currency_value, customer_group_id, ip, forwarded_ip, user_agent, accept_language<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Short-codes based on Store Configuration<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"table table-hover\"><tbody><tr><td><strong>Short-code<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>{config_name}<\/td><td>Store Name<\/td><\/tr><tr><td>{config_owner}<\/td><td>Store Owner<\/td><\/tr><tr><td>{config_address}<\/td><td>Store Address<\/td><\/tr><tr><td>{config_geocode}<\/td><td>Store Geocode<\/td><\/tr><tr><td>{config_email}<\/td><td>Store Email Address<\/td><\/tr><tr><td>{config_address}<\/td><td>Store Address<\/td><\/tr><tr><td>{config_telephone}<\/td><td>Store Telephone<\/td><\/tr><tr><td>{config_fax}<\/td><td>Store Fax<\/td><\/tr><tr><td>{config_open}<\/td><td>Store Opening Hours<\/td><\/tr><tr><td>{config_comment}<\/td><td>Store Comment<\/td><\/tr><tr><td>{config_meta_title}<\/td><td>Store Meta Title<\/td><\/tr><tr><td>{config_logo}<\/td><td>Location of the logo image (eg: catalog\/logo.png)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Short-codes for Special Blocks <\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"table table-hover\"><tbody><tr><td><strong>Short-code<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>{payment_info}<\/td><td>Information block based on the selected payment method by the customer<\/td><\/tr><tr><td>{shipping_info}<\/td><td>Information block based on the selected shipping method by the customer<\/td><\/tr><tr><td>{customer_group_info}<\/td><td>Information block based on the Customer Group of the customer<\/td><\/tr><tr><td>{downloads_info}<\/td><td>Information block if the order contains any downloadable products<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Additional Short-codes<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"table table-hover\"><tbody><tr><td><strong>Short-code<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>{current_date}<\/td><td>Date of invoice creation in YYYY-MM-DD format<\/td><\/tr><tr><td>{current_time}<\/td><td>Date of invoice creation in HH:MM:SS format<\/td><\/tr><tr><td>{store_address_br}<\/td><td>Store Address as it is mentioned in the system setting (line by line)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Dynamic Order Total Short-codes<\/h2>\n\n\n\n<p>{order_total_xx} where xx is the order total code. For example {order_total_total}, {order_total_sub_total}, {order_total_tax} . The output will be currency formatted value.<\/p>\n\n\n\n<p>{order_total_value_xx} where xx is the order total code. For example {order_total_value_total}, {order_total_value_sub_total}, {order_total_value_tax} . The output is a float integer value. <\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"order-shipment-shortcodes\">Order shipment Shortcodes<a href=\"https:\/\/www.huntbee.com\/resources\/docs\/order-status-email-template\/short-codes\/#order-shipment-shortcodes\"><\/a><\/h2>\n\n\n\n<p>To use the following short-codes, you must have installed\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/www.huntbee.com\/shipment-courier-details-tracker\" target=\"_blank\">Shipment Details Tracker<\/a>\u00a0Extension. These shortcodes are available from version 2.1.4<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table class=\"table table-hover\"><tbody><tr><td><strong>Short-code<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>{tracking_id}<\/td><td>Tracking ID or Consignment ID or Number for the shipment<\/td><\/tr><tr><td>{tracking_link}<\/td><td>Tracking Link \/ URL for the shipment<\/td><\/tr><tr><td>{shipment_partner}<\/td><td>Logistics or shipment Service Provider for the particular product\/order<\/td><\/tr><tr><td>{delivery_date}<\/td><td>Expected Delivery Date<\/td><\/tr><tr><td>{shipped_products}<\/td><td>List of products shipped (Ordered List)<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"featured_media":0,"parent":552,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-2004","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Short-codes - HuntBee Resources<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/short-codes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Short-codes - HuntBee Resources\" \/>\n<meta property=\"og:description\" content=\"Short-codes based on Order Information Short-code Description {order_id} Order ID {link} Customer Order Info view link {date_added} Order Date {order_total} Order Total {payment_address} Payment Address {shipping_address} Shipping Address {order_id} Order ID {invoice_no} Invoice Number {invoice_prefix} Invoice Prefix {store_id} Store ID {store_name} Store Name {store_url} Store URL {customer_id} Customer ID {firstname} Customer First Name {lastname} Customer [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/short-codes\/\" \/>\n<meta property=\"og:site_name\" content=\"HuntBee Resources\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/huntbee.opencart\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-12T07:32:07+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/pdf-invoice-generator\\\/short-codes\\\/\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/pdf-invoice-generator\\\/short-codes\\\/\",\"name\":\"Short-codes - HuntBee Resources\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#website\"},\"datePublished\":\"2021-02-24T06:47:43+00:00\",\"dateModified\":\"2023-12-12T07:32:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/pdf-invoice-generator\\\/short-codes\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/pdf-invoice-generator\\\/short-codes\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/pdf-invoice-generator\\\/short-codes\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PDF Invoice Generator\",\"item\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/pdf-invoice-generator\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Short-codes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#website\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\",\"name\":\"HuntBee Resources\",\"description\":\"OpenCart Extension Documentations - Guides - Blogs - Projects\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#organization\",\"name\":\"HuntBee OpenCart\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/cropped-mobile-logo-new.png\",\"contentUrl\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/cropped-mobile-logo-new.png\",\"width\":945,\"height\":200,\"caption\":\"HuntBee OpenCart\"},\"image\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/huntbee.opencart\",\"https:\\\/\\\/www.instagram.com\\\/opencart.huntbee\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Short-codes - HuntBee Resources","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/short-codes\/","og_locale":"en_US","og_type":"article","og_title":"Short-codes - HuntBee Resources","og_description":"Short-codes based on Order Information Short-code Description {order_id} Order ID {link} Customer Order Info view link {date_added} Order Date {order_total} Order Total {payment_address} Payment Address {shipping_address} Shipping Address {order_id} Order ID {invoice_no} Invoice Number {invoice_prefix} Invoice Prefix {store_id} Store ID {store_name} Store Name {store_url} Store URL {customer_id} Customer ID {firstname} Customer First Name {lastname} Customer [&hellip;]","og_url":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/short-codes\/","og_site_name":"HuntBee Resources","article_publisher":"https:\/\/www.facebook.com\/huntbee.opencart","article_modified_time":"2023-12-12T07:32:07+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/short-codes\/","url":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/short-codes\/","name":"Short-codes - HuntBee Resources","isPartOf":{"@id":"https:\/\/www.huntbee.com\/resources\/#website"},"datePublished":"2021-02-24T06:47:43+00:00","dateModified":"2023-12-12T07:32:07+00:00","breadcrumb":{"@id":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/short-codes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/short-codes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/short-codes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.huntbee.com\/resources\/"},{"@type":"ListItem","position":2,"name":"PDF Invoice Generator","item":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/"},{"@type":"ListItem","position":3,"name":"Short-codes"}]},{"@type":"WebSite","@id":"https:\/\/www.huntbee.com\/resources\/#website","url":"https:\/\/www.huntbee.com\/resources\/","name":"HuntBee Resources","description":"OpenCart Extension Documentations - Guides - Blogs - Projects","publisher":{"@id":"https:\/\/www.huntbee.com\/resources\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.huntbee.com\/resources\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.huntbee.com\/resources\/#organization","name":"HuntBee OpenCart","url":"https:\/\/www.huntbee.com\/resources\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.huntbee.com\/resources\/#\/schema\/logo\/image\/","url":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2020\/04\/cropped-mobile-logo-new.png","contentUrl":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2020\/04\/cropped-mobile-logo-new.png","width":945,"height":200,"caption":"HuntBee OpenCart"},"image":{"@id":"https:\/\/www.huntbee.com\/resources\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/huntbee.opencart","https:\/\/www.instagram.com\/opencart.huntbee\/"]}]}},"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/2004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/comments?post=2004"}],"version-history":[{"count":6,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/2004\/revisions"}],"predecessor-version":[{"id":2796,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/2004\/revisions\/2796"}],"up":[{"embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/552"}],"next":[{"title":"Special Blocks","link":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/special-blocks\/","href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/3891"}],"prev":[{"title":"Troubleshooting","link":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/troubleshooting\/","href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/574"}],"wp:attachment":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/media?parent=2004"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/doc_tag?post=2004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}