Setup

Overview

The Datanuum Shopify Custom App enables you to automatically connect your ECommerce data (transactions, abandoned carts, browsed products) to your Datanuum CDP account.

The Custom App will also enable your customers to collect loyalty points on purchases and redeem those points on check out in addition to delivering an exceptional personalized customer experience that your customers expect.

 

Creating The Custom App on Your Shopify Store 

  1. Log in to your Shopify store as an admin
  2. Click on Sales Channel
  3. Go to Apps and Sales channel settings
  4. Click on Develop Apps (on Top right corner)
  5. Click on “Allow Custom App Development” button
  6. Again, click on “Allow Custom App Development” button
  7. Click on Create App
  8. Enter the App name and select the App developer and click on “Create app” button
  9. Go to Configuration
  10. Go to “Admin API integration” configuration and assign following permissions
    • read_customers
    • read_customer_events
    • read_discounts, write_discounts
    • read_draft_orders
    • read_orders
    • read_price_rules, write_price_rules
    • read_products,
    • write_script_tags, read_script_tags
    • read_themes, write_themes
    • read_files, write_files,
    • read_fulfillments
    • read_assigned_fulfillment_orders
    • read_inventory
    • read_merchant_managed_fulfillment_orders
    • read_order_edits
    • read_product_listings
    • read_purchase_options
    • read_shipping
  11. Go to API credentials
  12. Click on Install App
  13. Once the App is installed, You can see the Access Token, API Key and API Secret Key is generated.
  14. Click on the Reveal token once to see the token. Copy the token and save it (Note: Reveal token once is a one-time process, so once the user reveals the token number, it will not be available after that)
  15. The custom app is now created on Shopify

 

Shopify theme changes

New files:

 
1. snippets/ub-loyalty-footer.liquid
2. assets/wallet.svg.liquid
 
Above 2 files are added to the theme
 
 
Updated files:
 
1. layout/theme.liquid  
 
This file is updated to include the code below at the end .The code should be added before the </body> tag.
{% include "ub-loyalty-footer" %}
 
 
2. sections/cart.liquid
    sections/line-items-cart.liquid
    sections/cart-template.liquid
 
Checks for above 3 files in  the theme and if found, updates the file as below;
 
replace the code 
 
{%- unless p.last == blank -%}
 
with
 
{% assign first_character_in_key = p.first | truncate: 1, '' %}
{%- unless p.last == blank or first_character_in_key == '_' -%}
 
or replace
 
{% unless p.last == blank %}
 
with
 
{% assign first_character_in_key = p.first | truncate: 1, '' %}
{% unless p.last == blank or first_character_in_key == '_' %}