Marketing Code Plugin
Here are the main features of this enhancement:
- It allows you to apply a coupon code on any page of your website
- It automatically applies a discount on the basket page as soon as the customer adds a product to the basket.
If the plugin will be used on external page, follow the steps in CMS - JQuery Plugins.docx
Apply Marketing Code on Internal Pages
Control can be used on internal or external pages. It could be configured like a button or a link that when clicked executes the action to apply a marketing code and when applied returns a success message.
Integration jQuery Plugin on Internal Pages
- Go to the Content Blocks (Top Menu -> Content/Content Blocks).
2. Next,
create a new Content Block.
3. In the Editor text, you will find a custom Toolbar Item to add the HTML structure. Open the option and select the option 'Marketing Code'.
Note: on some monitors, the SmarterCommerce
option appears within the dot’s menu with the name “exe”. (This name is fixed
in update 7)
4. To view and modify the HTML structure enter the following option, then find the Code Review.
5. Modify the HTML. Add values for data-shopping-url and data-marketing-code then select Done.
6. Finish the Content Block configuration and publish it.
<div id="scj-marketingcode" data-shopping-url="http://www.yourwebstore.com" data-marketing-code="PROMO" data-is-button="true" data-is-external-page="false" data-component-text="Tap to Apply" data-applied-message="Promo Applied" data-redirect-url="http://www.yourredirectpage.com"></div>
1. Now, add a Content block widget to the page where you want to display the plugin.
2. On the Content block, open “More” menu and select “Use shared”. Select the content block previously created and click Use selected.
3. Add the link to the marketing code plugin using a javascript plugin. Select the js file from the resources files. On “More Options” select to include in “In the head tag” and Save changes.
4. Add a Javascript widget on the same page and edit to add the function that initializes the plugin. On “More Options” select to include in “Before the closing body tag” and Save changes.
$(function () { if
($("#scj-marketingcode").length > 0) $("#scj-marketingcode").scMarketingCode(); });
5. Publish page
HTML Attribute | Description |
data-marketing-code | Promotion Code to be applied.
|
data-is-button | Set to true if want to display a button or false if want
to display a link. Values:
true/false Default: true |
data-is-external-page | If plugin is added on external page for security, it is
required to be true. Values:
true/false Default: false. |
data-component-text | Text that will be displayed on the component (button or
link). Default: Apply |
data-applied-message | Message to display after marketing code is applied If redirect URL is configured this message will not be
displayed so it is not required to configure. Default: Applied
at checkout. |
data-redirect-url | URL to redirect after marketing code is applied. If it is
not configured it stays in the same page and display a message. |
Read Next
This Section Also Contains
- ECommerce CMS MVC with Bootstrap 4
- Creating a New Sitefinity Custom Template
- How to Share Template in Multisite Instance
- How to Customize a Site with Resource Packages
- Theming Bootstrap
- How to Configure the Not Available Images for Configured Products
- Page Long Cache Considerations and Configuration
- Replace Not Available Images
- Mappings Module
- Personalization Integrated with JDEdwards
- How to Add New Widget Template
- How to Include Local Web Font
- How to Use External Plugins Locally
- Sitefinity Images
- Sitefinity Authentication Expiration
- Sitefinity Health Check Service Configuration and SmarterCommerce Health Checks
- Internal Plugins Configuration in Update 6
- Internal Plugins Configuration in Update 7
- How to Setup Pickup Instructions Page
- How to Setup Terms and Conditions Page
- Sitefinity Multisite Resource Override
- Content Search Configuration
- Product Assignments (Filter by Attribute)
- Google Analytics Configuration
- Configure Azure Redis Cache (ASP.Net State Server Provider)
- Task Manager Email Notifications
- Configure Google Maps
- Catalog and Product Content Metatags (SEO)
- Cookies Configuration
- Reset Password Configuration
- Recycle Bin
- Login Page Configuration
- Error Page Configuration
- Configure SmarterCommerce Menu Backend
- Sitefinity User Group
- Copy Settings and Mapping on Multisite
- New Site – Activate Modules
- Shared Products Module
- Configure Image Optimization
- Management Console Email Templates
- How to Enable Canonical URL
- EIPP Modules
- Sitefinity File Manager
- PunchOut Configuration
- Troubleshooting