Knowledge Base

Welcome to the SmarterCommerce documentation portal

What can we help you find?

SMARTERCOMMERCE

Search and Learn about Unified Commerce and Our SmarterCommerce Solutions
Digital Commerce Additional Manual

Apply Marketing Code in Internal Pages


Control that can be used on internal or external pages. It could be configured like a button or link that on click executes the action to apply a marketing code, when applied return a success message.

Integration jQuery Plugin on internal pages

1. Got 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 ToolBarItem to add the HTML structure, open the options 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, you need to add the values for data-shopping-url and data-marketing-code then select Done.

6. Finish the Content Block configuration and publish it.

 

Implementation Example

  1. Then, add a Content block widget to the page where you want to display the plugin.

  2. On 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 resources files. On “More Options” select to include in “In the head tag” and Save changes.

  4. Add a Javascript widget on same page and edit to add the function that initialize the plugin. On “More Options” select to include in “Before the closing body tag” and Save changes.

5. Publish page

 

Plugin HTML data attributes

HTML AttributeDescription
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-urlURL to redirect after marketing code is applied. If it is not configured it stays in the same page and display a message.

 

Bring It All Together

We bring together digital commerce, retail and call center channels with a united approach that leverages the power of onmi-channel while prioritizing JD Edwards connectivity.

CONNECT WITH AN EXPERT