order-history-view.html

Purpose: Displays order invoice when viewed from the "Track your Recent Orders" section of the My Account page.


Note: This template contains a special code block for recurring orders made possible by 3dcart’s Autoship Add-on. This block of coding will only display when the order is viewed from the "Recurring Orders" section of the My Account page if the add on is applied to the store. From this version of the template, the shopper can cancel or otherwise update their recurring order options.

Code Blocks

Note: It is important to preserve the commented tags to ensure the software performs correctly.

 
[invoicenum_prefix]  
    [invoicenum]  
    [shoppingcart_itemid]  
    [shoppingcart_items]  
    [shoppingcart_price]  
    [shoppingcart_quantity]  
    [shoppingcart_total]  
    [total]  
    [oshipaddress]  
    [oshipaddress2]  
    [oshipcity]  
    [oshipstate]  
    [oshipzip]  
    [oshipcountry]  
    [shoppingcart_subtotal]  
    [subtotal]  
    [shoppingcart_discount]  
    [discounts]  
    [shoppingcart_shipping]  
    [shipping]  
    <!--START: printable-->
        [orderid]  
        [orderhistory_printableversion]  
        [orderhistory_returnlink]  
    <!--END: printable-->
    <!--START: RECURRINGORDER-->
        [orderid]  
        [next_order_encrypted]  
        [recurringorders_recurringordersettings-header]  
        [recurringorders_frequency]  
        [recurring_frequency]  
        [recurringorders_payment]  
        [recurring_payment]  
        [recurringorders_next-order]  
        [next_order_date]  
        [recurringorders_cancel-button]  
        [recurringorders_save-button]  
    <!--END: RECURRINGORDER-->
    <!--start customer info block-->
        [company]  
        [address1]  
        [city]  
        [state]  
        [zip]  
        <!--START: invoicelogo-->
            [invoicelogo]  
        <!--END: invoicelogo-->
        <!--START: address2-->
            [address2]  
        <!--END: address2-->
    <!-- end customer info block-->
    <!--start invoice info block-->
        [invoice_dateordered]  
        [odate]  
        [invoice_ordernum]  
        [invoicenum_prefix]  
        [invoicenum]  
        <!--START: salesperson-->
            [salesperson]  
        <!--END: salesperson-->
    <!--end invoice info block-->
    <!--start billing block-->
        [invoice_billingaddress]  
        [ofirstname]  
        [olastname]  
        [oaddress]  
        [ocity]  
        [ostate]  
        [ozip]  
        [ocountry]  
        <!--START: ocompany-->
            [ocompany]  
        <!--END: ocompany-->
        <!--START: oaddress2-->
            [oaddress2]  
        <!--END: oaddress2-->
        <!--START: ophone-->
            [ophone]  
        <!--END: ophone-->
        <!--START: oemail-->
            [oemail]  
        <!--END: oemail-->
    <!--end billing block-->
    [invoice_shippingaddress]  
    <!--START: shipping_address-->
        [oshipfirstname]  
        [oshiplastname]  
        [oshipaddress]  
        <!--START: oshipaddress2-->
            [oshipaddress2]  
        <!--END: oshipaddress2-->
        [oshipcity]  
        [oshipstate]  
        [oshipzip]  
        [oshipcountry]  
        <!--START: oshipcompany-->
            [oshipcompany]  
        <!--END: oshipcompany-->
    <!--END: shipping_address-->
    <!--START: shipping_multiple-->
        <!--START: shipment-->
            [num]  
            [oshipfirstname]  
            [oshiplastname]  
        <!--END: shipment-->
    <!--END: shipping_multiple-->
    <!--START: shipping_info-->
        [invoice_shipmethod]  
        [oshipmethod]  
        <!--START: trackingcode-->
            [invoice_trackingnum]  
            [trackingcode]  
        <!--END: trackingcode-->
        <!--START: oshippeddate-->
            [invoice_shippeddate]  
            [oshippeddate]  
        <!--END: oshippeddate-->
    <!--END: shipping_info-->
    <!--START: opaymethod-->
        [invoice_paymenttype]  
        [opaymethod]  
    <!--END: opaymethod-->
    <!--START: coupon-->
        [invoice_discounts]  
        [invoice_coupon]  
        [coupon]  
        [coupondiscount]  
    <!--END: coupon-->
    <!--START: RMAButton-->
        [orderid]  
        [shoppingcart_rma-btn-addnew]  
    <!--END: RMAButton-->
    <!--START: order_details-->
        [shoppingcart_itemid]  
        [shoppingcart_items]  
        [shoppingcart_price]  
        [shoppingcart_quantity]  
        [shoppingcart_total]  
    <!--END: order_details-->
    <!--START: shipment_header-->
        [num]  
        [oshipfirstname]  
        [oshiplastname]  
        <!--START: oshipcompany-->
            [oshipcompany]  
        <!--END: oshipcompany-->
        <!--START: oshipmethod-->
            [invoice_shipmethod]  
            [oshipmethod]  
        <!--END: oshipmethod-->
        <!--START: trackingcode-->
            [invoice_trackingnum]  
            [trackingcode]  
        <!--END: trackingcode-->
    <!--END: shipment_header-->
	<!--START: items-->
        [id]  
        [itemname]  
        <!--START: edownload-->
            [store_url]  
            [orderkey]  
        <!--END: edownload-->
        [unitprice]  
        [numitems]  
        [subtotal]  
    <!--END: items-->
    <!--START: ocomment-->
        [invoice_ordercomments]  
        [ocomment]  
    <!--END: ocomment-->
    <!--START: invoice_terms-->
        [invoice_terms]  
    <!--END: invoice_terms-->
    <!--START: TAX-->
        [shoppingcart_taxes]  
        [tax]  
    <!--END: TAX-->
    <!--START: TAX2-->
        [shoppingcart_taxes2]  
        [tax2]  
    <!--END: TAX2-->
    <!--START: TAX3-->
        [shoppingcart_taxes3]  
        [tax3]  
    <!--END: TAX3-->
    [shoppingcart_shipping]  
    [shipping]  
    [shoppingcart_total]  
    [ototal]  
    <!--START: GIFTCERTS-->
        [shoppingcart_giftcertificate]  
        [GIFTCERTS]  
        [shoppingcart_balance]  
        [BALANCE]  
    <!--END: GIFTCERTS-->
    <!--START: rewards-->
        <!--START: rwdPointsRewarded-->
            [rwdPointsRewarded]  
            <!--START: rwdPointsDetailsLink-->
                [view points details]  
            <!--END: rwdPointsDetailsLink-->
        <!--END: rwdPointsRewarded-->
        <!--START: rwdPointsUsed-->
            [rwdPointsUsed]  
            <!--START: rwdPointsDetailsLink-->
                [view points details]  
            <!--END: rwdPointsDetailsLink-->
        <!--END: rwdPointsUsed-->
    <!--END: rewards-->
    <!--START: RMA-->
        [account_rma-header]  
        [rma_header-rmanum]  
        [rma_header-rmadate]  
        [rma_header-rmastatus]  
        <!--START: RmaItems-->
            [OrderId]  
            [idRma]  
            [Date]  
            [RMAStatus]  
        <!--END: RmaItems-->
    <!--END: RMA-->

Note: Code blocks and their respective variables will only work with specific template pages.

Variables

Note: Many of the following variables are dynamically inserted from your cart’s Settings ->Design ->Store Language section.

  • [orderid] – Used by the store’s software to insert the order’s individual database ID.
  • [orderhistory_printableversion] – Inserts a link to a printer friendly version of the invoice.
  • [orderhistory_returnlink] – Inserts a link that returns the shopper to the page they came from.
  • [invoicenum_prefix] – Inserts the order invoice’s prefix.
  • [invoicenum] – Inserts the order invoice’s sequential order number.
  • [invoicelogo] – Inserts the store’s Invoice logo (See Settings ->General ->Merchant Information)
  • [company] – Inserts the store’s Company Name information. (See Settings ->General ->Merchant Information)
  • [address1] – Inserts the store’s Company Address information (See Settings ->General ->Merchant Information)
  • [address2] – Inserts the store’s Company Address 2 information (See Settings ->General ->Merchant Information)
  • [city] – Inserts the store’s Company City information (See Settings ->General ->Merchant Information)
  • [state] – Inserts the store’s Company State information. (See Settings ->General ->Merchant Information)
  • [zip] – Inserts the store’s Company Zip information. (See Settings ->General ->Merchant Information)
  • [invoice_dateordered] – Displays the Title of the “Date Ordered” heading. (See Settings ->Design ->Store Language)
  • [odate] – Inserts the date the order was placed.
  • [invoice_ordernum] – Displays the Title of the “Order Number:” heading. (See Settings ->Design ->Store Language)
  • [salesperson] – If the order has a Sales Person specified for it, this variable will insert the Sales Person’s name.
  • [invoice_billingaddress] – Displays the Title of the “Billing Address” header. (See Settings ->Design ->Store Language)
  • [ofirstname] – Inserts the shopper’s billing First Name.
  • [olastname] – Inserts the shopper’s billing Last Name.
  • [ocompany] – Inserts the shopper’s billing Company name.
  • [oaddress] – Inserts the shopper’s billing Address information.
  • [oaddress2] – Inserts the shopper’s billing Address 2 (Suite/Apt#) information.
  • [ocity] – Inserts the shopper’s billing City information.
  • [ostate] – Inserts the shopper’s billing State information.
  • [ozip] – Inserts the shopper’s billing Zip/Postal Code information.
  • [ocountry] – Inserts the shopper’s billing Country information.
  • [ophone] – Inserts the shopper’s billing Phone information.
  • [oemail] – Inserts the shopper’s billing Email information.
  • [invoice_shippingaddress] – Displays the Title of the “Shipping Address” header. (See Settings ->Design ->Store Language)
  • [oshipfirstname] – Inserts the order’s shipping First Name.
  • [oshiplastname] – Inserts the order’s shipping Last Name.
  • [oshipcompany] – Inserts the order’s shipping Company information.
  • [oshipaddress] – Inserts the order’s shipping Address information.
  • [oshipaddress2] – Inserts the order’s shipping Address 2 (Suite/Apt#) information.
  • [oshipcity] – Inserts the order’s shipping City information.
  • [oshipstate] – Inserts the order’s shipping State information.
  • [oshipzip] – Inserts the order’s shipping Zip/Postal Code information.
  • [oshipcountry] – Inserts the order’s shipping Country information.
  • [num] – If the order is split into multiple addresses, this variable will insert the shipment number.
  • [invoice_shipmethod] – Displays the Title of the “Shipping Method” header. (See Settings ->Design ->Store Language)
  • [oshipmethod] – Inserts the order’s selected Shipping Method
  • [invoice_trackingnum] – Displays the Title of the “Tracking Number” header. (See Settings ->Design ->Store Language)
  • [trackingcode] – When the order contains a tracking number, this variable will insert it into the invoice.
  • [invoice_shippeddate] – Displays the Title of the “Shipped on” header. (See Settings ->Design ->Store Language)
  • [oshippeddate] – Inserts the order’s shipment date.
  • [invoice_paymenttype] – Displays the Title of the “Payment Type” header. (See Settings ->Design ->Store Language)
  • [opaymethod] – Inserts the order’s payment method used.
  • [invoice_discounts] – If gift certificate or promotion coupon is used on the order, this variable displays the Title of the “Discounts” header. (See Settings ->Design ->Store Language)
  • [invoice_coupon] – If gift certificate or promotion coupon is used on the order, this variable displays the Title of the “Coupon:” section. (See Settings ->Design ->Store Language)
  • [coupon] – If gift certificate or promotion coupon is used on the order, this variable inserts the gift certificate/coupon code entered.
  • [coupondiscount] – If gift certificate or promotion coupon is used on the order, this variable inserts the applicable discount.
  • [shoppingcart_rma-btn-addnew] – If RMA functionality is enabled on the store, this variable will display the Title of the “Add New RMA” link. (See Settings ->Design ->Store Language)
  • [shoppingcart_itemid] – Displays the Title of the “Item ID” header on the invoice summary. (See Settings ->Design ->Store Language)
  • [shoppingcart_items] – Displays the Title of the “Items” header on the invoice summary. (See Settings ->Design ->Store Language)
  • [shoppingcart_price] – Displays the Title of the “Price” header on the invoice summary. (See Settings ->Design ->Store Language)
  • [shoppingcart_quantity] – Displays the Title of the “QTY” header on the invoice summary. (See Settings ->Design ->Store Language)
  • [shoppingcart_total] – Displays the Title of the “Total” header on the invoice summary. (See Settings ->Design ->Store Language)
  • [id] – Inserts the item SKU/ID information in the invoice summary.
  • [itemname] – Inserts the Name of the item in the invoice summary.
  • [store_url] – If the order is for eProducts, this variable inserts the store’s base URL for the download link.
  • [orderkey] – For eProduct downloads, this variable inserts the dynamically generated download link key. (To enforce download expiration)
  • [unitprice] – Inserts the product’s unit price.
  • [numitems] – Inserts the total number of items ordered.
  • [subtotal] – Inserts the sub-total of items ordered.
  • [invoice_ordercomments] – If Customer comments are present on the order, this variable will display the “Order Comments” header. (See Settings ->Design ->Store Language)
  • [ocomment] – If Customer comments are present on the order, this variable will insert the comments.
  • [invoice_terms] – Displays the Text entered in your store’s Invoice Terms section. (See Settings ->General ->Merchant Information)
  • [shoppingcart_subtotal] – Displays the Title of the order’s “Subtotal:” line. (See Settings ->Design ->Store Language)
  • [shoppingcart_discount] – Displays the Title of the order’s “Discount(s):” line. (See Settings ->Design ->Store Language)
  • [discounts] – Inserts the applied discount amount.
  • [shoppingcart_taxes] – Displays the Title of the order’s “Taxes:” line. (See Settings ->Design ->Store Language)
  • [tax] – Inserts the order’s applicable tax charges
  • [shoppingcart_taxes2] – If international/multi tax option is applicable, this variable displays the Title of the order’s “Tax 2:” line. (See Settings ->Design ->Store Language)
  • [tax2] – Inserts the order’s applicable Tax 2 charges
  • [shoppingcart_taxes3] – If international/multi tax option is applicable, this variable displays the Title of the order’s “Tax 3:” line. (See Settings ->Design ->Store Language)
  • [tax3] – Inserts the order’s applicable Tax 3 charges
  • [shoppingcart_shipping] – Displays the Title of the order’s “Subtotal:” line. (See Settings ->Design ->Store Language)
  • [shipping] – Inserts the order’s applicable Shipping charges
  • [shoppingcart_total] – Displays the Title of the order’s “Subtotal:” line. (See Settings ->Design ->Store Language)
  • [total] – Inserts the Total amount of the order.
  • [shoppingcart_giftcertificate] – Displays the Title of the order’s “Subtotal:” line. (See Settings ->Design ->Store Language)
  • [GIFTCERTS] – Inserts the Gift Certificate amount applied to the order.
  • [shoppingcart_balance] – Displays the Title of the order’s “Subtotal:” line. (See Settings ->Design ->Store Language)
  • [BALANCE] – Displays the total Balance left on the order.
  • [rwdPointsRewarded] – Inserts the total number of rewards points added to the customer’s record for the viewed order.
  • [rwdPointsUsed] – If previously awarded points are used on the order, this variable will insert the number of used rewards points.
  • [account_rma-header] – If the order contains any RMA data, this variable will display the Title of the “RMA” section. (See Settings ->Design ->Store Language)
  • [rma_header-rmanum] – If the order contains any RMA data, this variable will display the Title of the “RMA#” section. (See Settings ->Design ->Store Language)
  • [rma_header-rmadate] – If the order contains any RMA data, this variable will display the Title of the “Date” section. (See Settings ->Design ->Store Language)
  • [rma_header-rmastatus] – If the order contains any RMA data, this variable will display the Title of the “RMA Status” section. (See Settings ->Design ->Store Language)
  • [OrderId] – Used by the software to include the order ID on the RMA record.
  • [idRma] – Inserts the RMA number.
  • [Date] – Inserts the RMA Date.
  • [RMAStatus] – Inserts the RMA status.

This next set of variables will be used specifically for orders that contain Recurring Orders made possible by 3dcart’s Autoship Add-On.

These orders will be viewed in the “Recurring Orders” section of the My Account page.

  • [next_order_encrypted] – Hidden field used by the software to reference the shopper’s next recurring order date.
  • [recurringorders_recurringordersettings-header] – Displays the Title of the “Recurring Order Settings” section. (See Settings ->Design ->Store Language)
  • [recurringorders_frequency] – Displays the Title of the “Frequency” drop down menu. (See Settings ->Design ->Store Language)
  • [recurring_frequency] – Inserts the recurring order’s specified frequency.
  • [recurringorders_payment] – Displays the Title of the recurring order’s “Payment” listing. (See Settings ->Design ->Store Language)
  • [recurring_payment] – Inserts the selected payment method for the recurring order. (Last 4 digits of the credit card)
  • [recurringorders_next-order] – Displays the Title of the recurring order’s “Next Order:” listing. (See Settings ->Design ->Store Language)
  • [next_order_date] – – Inserts the recurring order’s Next Order Date.
  • [recurringorders_cancel-button] – Displays the Title of the “Cancel This Order” link/button. (See Settings ->Design ->Store Language)
  • [recurringorders_save-button] – Displays the Title of the “Save” link/button. (See Settings ->Design ->Store Language)
X