diff --git a/_sources/campaigns/editor/filters.rst.txt b/_sources/campaigns/editor/filters.rst.txt index 923e0fc64..0b4d93ccc 100644 --- a/_sources/campaigns/editor/filters.rst.txt +++ b/_sources/campaigns/editor/filters.rst.txt @@ -805,6 +805,99 @@ Returns ``some string`` |hr| +new\_array +.......... + +Creates a new array. If arguments are provided, they become the elements of the array. + +Liquid + +.. code-block:: liquid + + {% assign my_array = "" | new_array: "element1", "element2" %} + {% assign empty_array = "" | new_array %} + + Array: {{ my_array | json }} + Empty array: {{ empty_array | json }} + +Rendered Liquid + +.. code-block:: text + + Array: ["element1","element2"] + Empty array: [] + +|hr| + +append\_to\_array +................. + +Appends elements to an existing array. + +Liquid + +.. code-block:: liquid + + {% assign my_array = "" | new_array %} + {% assign my_array = my_array | append_to_array: "element1", "element2" %} + + Array: {{ my_array | json }} + +Rendered Liquid + +.. code-block:: text + + Array: ["element1","element2"] + +|hr| + +new\_hash +......... + +Creates a new hash. If a hash is provided as an argument, it returns that hash. + +Liquid + +.. code-block:: liquid + + {% assign my_hash = "" | new_hash: key: "value", key2: 42 %} + {% assign empty_hash = "" | new_hash %} + + Hash: {{ my_hash | json }} + Empty hash: {{ empty_hash | json }} + +Rendered Liquid + +.. code-block:: text + + Hash: {"key":"value","key2":42} + Empty hash: {} + +|hr| + +assign\_key +........... + +Assigns a key-value pair to an existing hash. If the key already exists, its value is updated. + +Liquid + +.. code-block:: liquid + + {% assign my_hash = "" | new_hash: key: "value", key2: 42 %} + {% assign my_hash = my_hash | assign_key: "key2", "value2" %} + {% assign my_hash = my_hash | assign_key: "key3", "value3" %} + + Hash: {{ my_hash | json }} + +Rendered Liquid + +.. code-block:: text + + Hash: {"key":"value","key2":"value2","key3":"value3"} + +|hr| + values ...... diff --git a/campaigns/editor.html b/campaigns/editor.html index 8f7e220de..bf866a184 100644 --- a/campaigns/editor.html +++ b/campaigns/editor.html @@ -163,6 +163,10 @@
Creates a new array. If arguments are provided, they become the elements of the array.
+Liquid
+{% assign my_array = "" | new_array: "element1", "element2" %}
+{% assign empty_array = "" | new_array %}
+
+Array: {{ my_array | json }}
+Empty array: {{ empty_array | json }}
+
Rendered Liquid
+Array: ["element1","element2"]
+Empty array: []
+
Appends elements to an existing array.
+Liquid
+{% assign my_array = "" | new_array %}
+{% assign my_array = my_array | append_to_array: "element1", "element2" %}
+
+Array: {{ my_array | json }}
+
Rendered Liquid
+Array: ["element1","element2"]
+
Creates a new hash. If a hash is provided as an argument, it returns that hash.
+Liquid
+{% assign my_hash = "" | new_hash: key: "value", key2: 42 %}
+{% assign empty_hash = "" | new_hash %}
+
+Hash: {{ my_hash | json }}
+Empty hash: {{ empty_hash | json }}
+
Rendered Liquid
+Hash: {"key":"value","key2":42}
+Empty hash: {}
+
Assigns a key-value pair to an existing hash. If the key already exists, its value is updated.
+Liquid
+{% assign my_hash = "" | new_hash: key: "value", key2: 42 %}
+{% assign my_hash = my_hash | assign_key: "key2", "value2" %}
+{% assign my_hash = my_hash | assign_key: "key3", "value3" %}
+
+Hash: {{ my_hash | json }}
+
Rendered Liquid
+Hash: {"key":"value","key2":"value2","key3":"value3"}
+
Takes a hash and returns the array of its values.
diff --git a/searchindex.js b/searchindex.js index 18b655581..239202c20 100644 --- a/searchindex.js +++ b/searchindex.js @@ -1 +1 @@ -Search.setIndex({"alltitles": {"0.1.0": [[52, "id20"]], "0.2.0": [[52, "id19"]], "0.3.0": [[52, "id18"]], "0.3.1": [[52, "id17"]], "0.4.0": [[52, "id16"]], "0.4.1": [[52, "id15"]], "0.4.2": [[52, "id14"]], "0.5.0": [[52, "id13"]], "0.5.1": [[52, "id12"]], "0.5.10": [[52, "id3"]], "0.5.11": [[52, "id2"]], "0.5.12": [[52, "id1"]], "0.5.2": [[52, "id11"]], "0.5.3": [[52, "id10"]], "0.5.4": [[52, "id9"]], "0.5.5": [[52, "id8"]], "0.5.6": [[52, "id7"]], "0.5.7": [[52, "id6"]], "0.5.8": [[52, "id5"]], "0.5.9": [[52, "id4"]], "1. Configure your Talkable campaign": [[44, "configure-your-talkable-campaign"], [131, "configure-your-talkable-campaign"]], "1. Create an Origin": [[130, "create-an-origin"]], "2. Create a Share": [[130, "create-a-share"]], "2. Pass deep linking params to the Talkable SDK": [[44, "pass-deep-linking-params-to-the-talkable-sdk"], [131, "pass-deep-linking-params-to-the-talkable-sdk"]], "3. Check for Reward": [[130, "check-for-reward"]], "API": [[43, null]], "API Reference": [[53, null]], "API request": [[43, "api-request"]], "Access the Talkable API": [[55, "access-the-talkable-api"]], "Accessing Talkable Configuration": [[120, "accessing-talkable-configuration"]], "Added multiple site slugs support. Bugs fixing.": [[52, "added-multiple-site-slugs-support-bugs-fixing"]], "Adding DNS records": [[36, "adding-dns-records"]], "Adding DNS records in AWS Route53": [[37, null]], "Adding DNS records in Cloudflare": [[38, null]], "Adding DNS records in GoDaddy": [[39, null]], "Adding DNS records in Shopify": [[40, null]], "Adding a Partial": [[73, "adding-a-partial"]], "Adding a user to the blocklist": [[10, "adding-a-user-to-the-blocklist"]], "Additional Resources": [[14, "additional-resources"]], "Advanced Usage": [[42, null], [129, null]], "Advanced features": [[28, "advanced-features"]], "Advocate Dashboard": [[67, "advocate-dashboard"]], "Advocate Landing Page": [[110, "advocate-landing-page"]], "Advocate Landing Page Notes": [[110, "advocate-landing-page-notes"]], "Advocate Offer Email": [[87, null]], "Advocate Personal Coupon Sharing": [[19, null]], "Advocate Reward Confirmation Email": [[84, null]], "Advocate Reward Paid Email": [[85, null]], "Advocate Signup Webhook": [[144, null]], "Advocate Signup/Share Page": [[82, null], [91, null]], "Allow showing coupon in the Friend Share Email and its reminder": [[79, "allow-showing-coupon-in-the-friend-share-email-and-its-reminder"]], "Alternate Post Purchase Script for cart line item passing": [[108, null]], "Alternative Approach: Direct Integration": [[111, "alternative-approach-direct-integration"]], "App Store": [[97, "app-store"]], "Application Attributes": [[45, "application-attributes"]], "Attentive": [[97, null]], "Authentication": [[55, "authentication"]], "Auto-Enrollment": [[123, null]], "Automatic Configuration": [[30, "automatic-configuration"]], "Automatic integration": [[121, "automatic-integration"], [126, "automatic-integration"]], "Available properties": [[12, "available-properties"]], "Best Practices for Speed Optimization": [[111, "best-practices-for-speed-optimization"]], "Binary Framework": [[133, "binary-framework"]], "Building Origin": [[43, "building-origin"]], "Campaign Placements": [[59, null]], "Campaign Types": [[67, null]], "Campaigns": [[120, "campaigns"]], "Check Unsubscribe Webhook": [[140, null]], "Claim by Name": [[67, "claim-by-name"]], "Claim by Name Placement": [[60, null]], "Claiming an Offer": [[54, "claiming-an-offer"]], "CloudSponge Integration": [[82, "cloudsponge-integration"]], "CocoaPods": [[133, "cocoapods"]], "Code Example #1:": [[123, "code-example-1"]], "Code Example #2:": [[123, "code-example-2"]], "Color As Localization": [[1, "color-as-localization"]], "Configure Manifest": [[45, "configure-manifest"]], "Configure SDK and Dependencies": [[45, "configure-sdk-and-dependencies"]], "Configuring Talkable Extension": [[120, "configuring-talkable-extension"]], "Contacts Import": [[129, "contacts-import"]], "Converting Into Localization": [[1, null]], "Cookies": [[109, null]], "Coupon list sync": [[28, "coupon-list-sync"]], "Coupons": [[2, null]], "Create Coupon Webhook": [[142, null]], "Create offer share": [[43, "create-offer-share"]], "Create origin": [[43, "create-origin"]], "Create visitor": [[43, "create-visitor"]], "Creating a Google API Client ID": [[14, "creating-a-google-api-client-id"]], "Creating the referral": [[11, "creating-the-referral"]], "Cross referrals": [[8, "cross-referrals"]], "Currencies in reports": [[15, "currencies-in-reports"]], "Currencies on dashboard": [[15, "currencies-on-dashboard"]], "Custom App": [[98, null]], "Custom App for Loyalty": [[124, null]], "Custom Events": [[48, null], [135, null]], "Custom Integration": [[92, null], [107, "custom-integration"]], "Custom Option (Configuration) Localization": [[1, "custom-option-configuration-localization"]], "Custom Platform": [[65, "custom-platform"], [66, "custom-platform"]], "Custom Segments": [[25, "custom-segments"]], "Customer Service Portal": [[3, null]], "Date Format": [[55, "date-format"]], "Debugging": [[129, "debugging"]], "Decrypting": [[13, "decrypting"]], "Deep Linking": [[45, null]], "Deep linking scheme": [[52, "deep-linking-scheme"]], "Delegated VS Self-managed setup": [[36, "delegated-vs-self-managed-setup"]], "Designer": [[68, null]], "Displaying and Sharing the Offer": [[54, "displaying-and-sharing-the-offer"]], "E-commerce Platforms": [[116, null]], "Editor": [[69, null]], "Email Gating": [[81, "email-gating"]], "Email Marketing & Automation": [[96, null], [107, "email-marketing-automation"]], "Email Share": [[43, "email-share"], [130, "email-share"]], "Email delivery": [[7, "email-delivery"]], "Email sending issues": [[36, "email-sending-issues"]], "Email size": [[68, "email-size"]], "Emarsys": [[99, null]], "Encrypting": [[13, "encrypting"]], "Enrollment via JS Integration": [[123, "enrollment-via-js-integration"]], "Error Handling": [[14, "error-handling"], [42, "error-handling"]], "Errors": [[55, "errors"]], "Event Webhook": [[143, null]], "Example": [[73, "example"], [132, null], [138, "example"], [138, "id1"], [138, "id2"]], "Example 1": [[71, "example-1"]], "Example 2": [[71, "example-2"]], "Example 3": [[71, "example-3"]], "Example 4": [[71, "example-4"]], "Extra Functionality": [[130, "extra-functionality"]], "F.A.Q.": [[113, null]], "FAQ": [[19, "faq"]], "Features": [[0, null]], "File Encryption": [[13, null]], "Files": [[70, null]], "Filters": [[71, null]], "Floating Widget Placement": [[61, null]], "Flow": [[65, "flow"], [66, "flow"]], "Fonts": [[68, "fonts"]], "For Shopify Online Store 2.0 themes": [[121, "for-shopify-online-store-2-0-themes"]], "For Shopify vintage themes": [[121, "for-shopify-vintage-themes"]], "Friend Claim Page": [[81, null], [90, null]], "Friend Email Gating Webhook": [[141, null]], "Friend Reward Paid Email": [[86, null]], "Friend Share Email": [[88, null]], "Friend Share Email Reminder": [[89, null]], "Friend was blocked for self-referral": [[9, "friend-was-blocked-for-self-referral"]], "Front-end Part": [[17, "front-end-part"]], "GDPR and CCPA compliance": [[109, "gdpr-and-ccpa-compliance"]], "Gathering the info": [[11, "gathering-the-info"]], "General Approval Policy Recommendations": [[22, "general-approval-policy-recommendations"]], "Get started": [[28, "get-started"]], "Getting Started": [[46, null], [133, null]], "Gleam Placement": [[62, null]], "Global": [[79, null]], "Google Login": [[14, null]], "Handling customer inquiries": [[8, "handling-customer-inquiries"]], "Helpful Links": [[111, "helpful-links"]], "Hierarchy": [[43, "hierarchy"]], "History": [[72, null]], "How It Works": [[24, "how-it-works"]], "How To Import the Talkable Public Key": [[13, "how-to-import-the-talkable-public-key"]], "How do I UnBlocklist a user?": [[10, "how-do-i-unblocklist-a-user"]], "How it works?": [[29, "how-it-works"]], "How to add a new app?": [[97, "how-to-add-a-new-app"], [100, "how-to-add-a-new-app"], [101, "how-to-add-a-new-app"], [102, "how-to-add-a-new-app"], [104, "how-to-add-a-new-app"], [105, "how-to-add-a-new-app"]], "How to create or check for existing campaigns": [[114, "how-to-create-or-check-for-existing-campaigns"]], "How to set up a custom domain": [[36, "how-to-set-up-a-custom-domain"]], "Hubspot": [[100, null]], "Iframe Events List": [[31, "iframe-events-list"]], "Image As Localization": [[1, "image-as-localization"]], "Implement TalkableDelegate": [[129, "implement-talkabledelegate"]], "Incentive Criteria": [[80, null]], "Incentives for different currencies": [[15, "incentives-for-different-currencies"]], "Including Product Items": [[21, null]], "Including a Partial in a Main Template": [[73, "including-a-partial-in-a-main-template"]], "Initial Origin": [[54, "initial-origin"]], "Initialization Script": [[110, "initialization-script"], [125, "initialization-script"]], "Initialization Script Notes": [[110, "initialization-script-notes"], [125, "initialization-script-notes"]], "Inline Widget": [[16, "inline-widget"]], "Installation": [[46, "installation"], [120, "installation"]], "Instant Reward": [[82, "instant-reward"]], "Integrating Events": [[12, null]], "Integrating with a Tag Manager": [[111, null]], "Integration": [[47, null], [120, "integration"], [134, null]], "Integration Components": [[110, null], [125, null]], "Integration High-Level Overview": [[112, null]], "Integration Steps": [[14, "integration-steps"]], "Integration instructions": [[60, "integration-instructions"], [61, "integration-instructions"], [62, "integration-instructions"], [63, "integration-instructions"], [64, "integration-instructions"], [65, "integration-instructions"], [66, "integration-instructions"]], "Integration with Third Party Deep Linking Services": [[44, null], [131, null]], "Interactions with the personal name-share link": [[16, "interactions-with-the-personal-name-share-link"]], "Introducing TalkableOfferFragmentListener interface. Bugs fixing.": [[52, "introducing-talkableofferfragmentlistener-interface-bugs-fixing"]], "Introduction": [[30, "introduction"], [55, null]], "Invite": [[67, "invite"]], "Java Example": [[17, "java-example"]], "Klaviyo": [[101, null]], "Leaderboard": [[67, "leaderboard"]], "Legacy Sharing using Social.framework": [[138, "legacy-sharing-using-social-framework"]], "Legacy social sharing": [[130, "legacy-social-sharing"]], "LinkedIn": [[82, "linkedin"]], "Liquid Tutorial 1: Intro & Navigation": [[75, "liquid-tutorial-1-intro-navigation"]], "Liquid Tutorial 2: Using Variables and Filters": [[75, "liquid-tutorial-2-using-variables-and-filters"]], "Liquid Tutorial 3: Using Custom Assets": [[75, "liquid-tutorial-3-using-custom-assets"]], "Liquid variables hints": [[124, "liquid-variables-hints"], [124, "id1"]], "Localization": [[76, null]], "Logging In": [[4, "logging-in"]], "Loyalty Actions": [[125, "loyalty-actions"]], "Loyalty Actions Notes": [[125, "loyalty-actions-notes"]], "Loyalty Dashboard Notes": [[125, "loyalty-dashboard-notes"]], "Loyalty Dashboard Placement": [[63, null]], "Loyalty Integration (beta)": [[122, null]], "Loyalty Widget Notes": [[125, "loyalty-widget-notes"]], "Loyalty Widget Placement": [[64, null]], "Magento 1.x Integration": [[119, null]], "Magento 2.x Integration": [[120, null]], "Magento Integration": [[118, null]], "Magento Platform": [[65, "magento-platform"], [66, "magento-platform"]], "Mailchimp": [[102, null]], "Manual Configuration": [[30, "manual-configuration"]], "Manual integration": [[121, "manual-integration"], [126, "manual-integration"]], "Manual migrating from a vintage theme to an Online store 2.0 theme": [[121, "manual-migrating-from-a-vintage-theme-to-an-online-store-2-0-theme"], [126, "manual-migrating-from-a-vintage-theme-to-an-online-store-2-0-theme"]], "Method 1: Coupon application via destination URL": [[27, "method-1-coupon-application-via-destination-url"]], "Method 2: Coupon application via client-side library integration": [[27, "method-2-coupon-application-via-client-side-library-integration"]], "Microsoft Dynamics CRM Integration": [[93, null]], "Move to Fragments": [[52, "move-to-fragments"]], "Moving Subject Line Into Localization": [[1, "moving-subject-line-into-localization"]], "Multi-currency": [[15, null]], "Multi-use Coupons": [[2, "multi-use-coupons"]], "Multiple Email Fields": [[82, "multiple-email-fields"]], "Name Sharing": [[16, null]], "Name Sharing Setup": [[16, "name-sharing-setup"]], "Name Sharing User Flow": [[16, "name-sharing-user-flow"]], "Native Integration via API": [[130, null]], "Native integration via API": [[42, "native-integration-via-api"]], "Native sharing": [[130, "native-sharing"]], "Navigating to the Customer Service Portal": [[4, "navigating-to-the-customer-service-portal"]], "Node.js Example": [[17, "node-js-example"]], "Notifications": [[129, "notifications"]], "Offers Expiration": [[77, null]], "Ometria": [[103, null]], "Oracle Bronto": [[104, null]], "Origins": [[56, null]], "Overriding default behaviour": [[42, "overriding-default-behaviour"]], "Overview": [[4, null], [14, "overview"]], "Page URLs": [[120, "page-urls"]], "Params Encryption": [[17, null]], "Partials": [[73, null]], "Pass Custom User Data": [[18, null]], "Passing currency with the purchase or event": [[15, "passing-currency-with-the-purchase-or-event"]], "Passing email as a GET parameter to Standalone Campaign": [[17, "passing-email-as-a-get-parameter-to-standalone-campaign"]], "Passing visitor\u2019s preferred currency": [[15, "passing-visitor-s-preferred-currency"]], "Person Lookup": [[6, "person-lookup"]], "Phone number gating": [[20, null]], "Post Purchase Campaign": [[49, null], [136, null]], "Post Purchase Campaign setup": [[29, "post-purchase-campaign-setup"]], "Post Purchase Placement": [[65, null]], "Post Purchase Script": [[110, "post-purchase-script"]], "Post Purchase Script Notes": [[110, "post-purchase-script-notes"]], "Post Share Webhook": [[145, null]], "Post-Purchase Enrollment": [[123, "post-purchase-enrollment"]], "Potential Performance Impact": [[111, "potential-performance-impact"]], "Preferred currency": [[15, "preferred-currency"]], "Prerequisites": [[14, "prerequisites"]], "Recharge": [[94, null]], "Referral": [[5, "referral"]], "Referral Dashboard": [[110, "referral-dashboard"]], "Referral Dashboard Notes": [[110, "referral-dashboard-notes"]], "Referral Program via API": [[54, null]], "Referral Tracking Methods": [[32, null]], "Referral Webhook": [[146, null]], "Referral details": [[6, "referral-details"]], "Referrals": [[57, null]], "Referrals Approval": [[22, null]], "Removing the Talkable Integration Script from GTM": [[111, "removing-the-talkable-integration-script-from-gtm"]], "Report Password Protection": [[24, null]], "Request Throttling": [[55, "request-throttling"]], "Requirements": [[2, "requirements"], [45, "requirements"], [46, "requirements"], [133, "requirements"]], "Response Format": [[55, "response-format"]], "Responsive view\u2019s height": [[68, "responsive-views-height"]], "Retrieve an Offer by Short Code": [[130, "retrieve-an-offer-by-short-code"]], "Retrieve offer": [[43, "retrieve-offer"]], "Retrieve rewards": [[43, "retrieve-rewards"]], "Reward": [[5, "reward"]], "Reward Gleam": [[67, "reward-gleam"]], "Reward Webhook": [[147, null]], "Ruby Example": [[17, "ruby-example"]], "SDK Initialization": [[45, "sdk-initialization"]], "Sailthru": [[105, null]], "Salesforce B2C Commerce Cloud Integration": [[117, null]], "Salesforce Integration": [[95, null]], "Segment With Product SKU": [[25, "segment-with-product-sku"]], "Segment With Traffic Source": [[25, "segment-with-traffic-source"]], "Segments": [[25, null]], "Setting up Campaign Placement criteria": [[23, null]], "Setup": [[19, "setup"]], "Sharing via Facebook": [[42, "sharing-via-facebook"]], "SheerID Integration": [[26, null]], "Shopify Fast Checkout": [[16, "shopify-fast-checkout"]], "Shopify Integration": [[121, null], [126, null]], "Shopify Platform": [[65, "shopify-platform"], [66, "shopify-platform"]], "Shopify Price Rule Changed Email Notification": [[28, "shopify-price-rule-changed-email-notification"]], "Shopify Price Rule ID": [[28, "shopify-price-rule-id"]], "Shopify Purchase Syncing": [[29, null]], "Shopify Webhook payload and Talkable Purchase attributes mapping": [[29, "shopify-webhook-payload-and-talkable-purchase-attributes-mapping"]], "Shopify coupon auto-apply": [[27, null]], "Shopify coupon auto-sync": [[2, "shopify-coupon-auto-sync"], [28, null]], "Single Sign-On (SSO)": [[30, null]], "Single-use Coupons": [[2, "single-use-coupons"]], "Site public encryption key": [[17, "site-public-encryption-key"]], "Social Share": [[43, "social-share"]], "Social Sharing": [[138, null]], "Social Sharing from a native campaign": [[138, "social-sharing-from-a-native-campaign"]], "Social Sharing from a web-based campaign": [[138, "social-sharing-from-a-web-based-campaign"]], "Social sharing": [[130, "social-sharing"]], "Specify a custom campaign tag": [[129, "specify-a-custom-campaign-tag"]], "Standalone Campaign": [[50, null], [137, null]], "Standalone Placement": [[66, null]], "Standard Integration": [[115, null]], "Step 1: Installation": [[133, "step-1-installation"]], "Step 2: Configuration": [[133, "step-2-configuration"]], "Submit Origin data to Talkable to generate the Referral": [[54, "submit-origin-data-to-talkable-to-generate-the-referral"]], "Subscribing To Iframe Events": [[31, null]], "Swift Package Manager": [[133, "swift-package-manager"]], "Sync loyalty actions": [[124, "sync-loyalty-actions"]], "Sync loyalty tier transitions": [[124, "sync-loyalty-tier-transitions"]], "Synchronization with ESPs": [[20, "synchronization-with-esps"]], "Talkable Android SDK": [[41, null]], "Talkable Back-end Integration": [[107, "talkable-back-end-integration"]], "Talkable Basics": [[107, null]], "Talkable Campaigns": [[58, null]], "Talkable Container DIV": [[125, "talkable-container-div"]], "Talkable For Mobile": [[107, "talkable-for-mobile"]], "Talkable JS Integration": [[107, "talkable-js-integration"]], "Talkable iOS SDK": [[128, null]], "Terminology": [[5, null]], "Test Mode Display": [[114, "test-mode-display"]], "Testing": [[51, null]], "Testing Single Sign-On": [[30, "testing-single-sign-on"]], "Testing and Deployment": [[14, "testing-and-deployment"]], "Tiered Rewards": [[67, "tiered-rewards"]], "Tracking app opening": [[52, "tracking-app-opening"]], "Tremendous Integration": [[33, null]], "Troubleshooting": [[127, "troubleshooting"]], "Tutorials": [[78, null]], "UTM Tags": [[35, null]], "Understanding the Cookies We Use": [[109, "understanding-the-cookies-we-use"]], "Unsubscribe Webhook": [[148, null]], "Upgrade": [[52, null]], "Use case #1: