Additional Features for Adobe Commerce
NOTE
This features below are only supported for Magento 2/Adobe Commerce merchants using the M2 API approach.
Delivery Fee
You can add a delivery fee to orders based on the customer’s location. Once example of this type of fee is the state of Colorado’s Delivery Fee.
- Create a new digital product SKU in the Adobe Dashboard to represent the delivery fee, e.g. “Colorado Delivery Fee,” 0.27, nontaxable
- Set the item as non-taxable.
- Contact your Bolt CSM and provide them with the Product ID of this item and the amount of the fee.
- Your Bolt CSM should enable the
Enable Update Fees API
feature flag.
Dynamic Add-On Pricing
You can add a conditional fee to checkout based on the customer’s location or cart items. You can also configure this fee in a way that gives customers the choice to opt-in to the additional fee. Some example uses for this are delivery, junk removal, or donation fees.
-
Create a new digital product SKU in the Adobe Dashboard for each fee
- Ex. “Mattress Removing Fee,” $5.00, non-taxable
-
Contact your Bolt CSM and provide them with the Product ID of the item(s) and the amount of the fee. Below is an example for your CSM to follow when adding custom rules to checkout.
Rule Type Expression Command Details UPDATE_ITEMS ShippingAddress.Region == “California” 2054, 1050, filter(Items, {any(.Properties, {.Name == ‘has_recycle_fee’ and .Value == ‘Yes’})}) This rule adds an item with product_id=2054
that costs $10.50 for every item in the cart with the Propertyhas_recycle_fee=’Yes’
to orders shipping in California.UPDATE_ITEMS ShippingAddress.Region != “California” 2054, 1050, 0 This rule disallows items with product_id=2054
and a cost of $10.50 to be added to carts shipping beyond California. -
Create a new attribute for each fee e.g., Has Removal Fee.
-
Apply the corresponding attributes to the products created in Step 1.
-
Navigate to Store > Configuration > Sales > Payment Methods > Bolt Pay and add the attributes to the **Product Attributes ** field separated by a comma, e.g.,
has_removal_fee
,has_removal_service
. -
In the Bolt Merchant dashboard, navigate to Settings > Checkout > Product Add-Ons and create the product add-on for Mattress Removing Fee:
- Product ID: Product ID in Adobe
- Price Type: Static
- Unit Price: Product price configured within Adobe
- Display Location: Checkout
Setup Google Analytics
Prerequisite
- Upgrade to Magento 2.4.5 for GA4 compatibility.
Setup
- Add the GA4 tag to the frontend of your storefront. Replace
<Measurement ID>
with your GA4 ID.
<!-- Global site tag (gtag.js) – Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=<Measurement ID>"></script>
--
<script>
window.dataLayer = window.dataLayer \|\| [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '<Measurement ID>');
</script>
It’s possible to setup Google Analytics using a third-party module e.g., Google Tag Manager for Magento.