Cart Attributes, Line Item Attributes, & Metafields
Overview
Section titled “Overview”For Checkout Plus, Corso adds important cart attributes to the cart to communicate Buyer Consent at checkout. This allows us to add items to reorder the rates or apply discounts to the rates as needed.
You will see the following cart attributes in the cart, which will also show up in the order notes in Shopify. Below are some common cart attributes you may see when using Checkout Plus or Shipping Plus.
Core Cart Attributes
Section titled “Core Cart Attributes”Attribute | Name | Definition |
---|---|---|
_corsoCpCartOptOut | Checkout Plus Cart Opt Out | If the customer chose not to give buyer consent in Checkout Plus. |
_corsoSpGuarantee | Shipping Plus Guarantee | If the Checkout Extension presents the Shipping Plus checkbox to apply a discount and remove the Plus price. |
_corsoCpReorderOptIn | Checkout Plus Reorder Opt In | If we have buyer consent to reorder the rates. |
_corsoSpDgOptOut | Shipping Plus Delivery Guarantee Opt Out | If the customer opted out of the additional charge in checkout (i.e. the box is checked to waive the cost). |
Optional Cart Attributes
Section titled “Optional Cart Attributes”These are additional cart attributes you can add to the order in the Shipping Plus admin.
Attribute | Name | Definition |
---|---|---|
_corsoSpTitle | Shipping Plus Title | The title of the shipping rate that the customer selected for shipping. |
_corsoSpPrice | Shipping Plus Price | The price of the additional charge for the Plus amount. |
_corsoSpDiscount | Shipping Plus Discount | The name of the discount code if the customer opts out of the additional charge. |
_corsoSpDgOptOutOn | Shipping Plus Delivery Guarantee Opt Out On | The date that the customer opted out. |
Optional Line Item Attributes
Section titled “Optional Line Item Attributes”For some functionality, Corso appends line item attributes to each line item in the order. While optional, certain features depend on them.
Attribute | Name | Definition |
---|---|---|
_corsoDiscountedPrice | Discounted Price | The discounted price of the product. Needed to display rates according to the price after discounts are applied. |
_corsoCustomer | Customer | The email address of the customer. Needed to apply customer conditions (tags or segments) as part of rate modification conditions. |
Plus Shipping Price Metafield
Section titled “Plus Shipping Price Metafield”With Shipping Plus, Corso displays the price of the additional Plus amount as a cart attribute, but also creates a metafield on the order.
The Plus Shipping Price metafield allows you to know how much of the shipping amount is the dynamic Plus price, useful for reporting and troubleshooting.