Creating new custom tab in Webstore in Elbrus Version.

Need to create a extension with the JavaScript, Templates, files and need to do some configuration in Model files. Tab name ResaleCertificate and JavaScript file, View file, Model file, Router file, tpl file. //ResaleCertificate.js define(‘ResaleCertificate’, [ ‘ResaleCertificate.Router’, ‘ResaleCertificate.Model’, ‘SC.Configuration’, ‘Utils’, ‘Profile.Model’, ‘jQuery’, ‘underscore’ ], function(Router, ResaleCertificate, Configuration, Utils, ProfileModel, jQuery, _) { ‘use strict’; console.log(‘ResaleCertificate’)… Continue reading Creating new custom tab in Webstore in Elbrus Version.

Showing a Popup in the Login Register page when a button clicked

On clicking the upload certificate button on the registration page, a new pop-up needs to be displayed on the registration page. Solution: Create a modal for popup, for that create a separate view file for the pop up and in the view file of login register page, add a click function in events for the… Continue reading Showing a Popup in the Login Register page when a button clicked

Using this keyword in JavaScript.

this keyword in JavaScript is a The value that this stores is the current execution context of the JavaScript program. Thus, when used inside a function this‘s value will change depending on how that function is defined, how it is invoked and the default execution context. this always holds the reference to a single object, that defines the current line of… Continue reading Using this keyword in JavaScript.

Registration page Update: Button for Resale Certificate upload

Adding a button for uploading the resale certificate in the login register page. The button should be visible only when user selects the country: ‘United States’, for all other countries the button should be hidden. Solution: Create button on the template file of login register and also add style in the SCSS file also and… Continue reading Registration page Update: Button for Resale Certificate upload