Category: Web Development
Chargify Retry and Dunning – How to manage failed transactions
Description: When we use auto debit system to charge our customers using their credit cards, it is possible some transactions get declined. This can happen due to different reasons like user’s credit card has expired or due to authentication failure
WordPress | Deployment of code to live website from Github, Bitbucket or Gitlab
Suppose we have live websites and we are using bitbucket to save the code of plugins, themes etc of those websites. Then we can manage the deployment to live sites easily through the WP pusher plugin. WP Pusher plugin is
Compare Passwords in HTML5 form validation using Jquery
In one of our projects, requirement was to compare two password values using HTML5 form validation (display the message in the same format as regular HTML5 messages are displayed). Let us assume that we have a HTML5 form for change
Customize Time Picker from Bootstrap Time Picker Plugin to add additional features
With bootstrap timepicker plugin, one can select time similar to datepicker (we select date, month, year from datepicker). With bootstrap timepicker plugin, we can select hour, minutes and meridian. In the following screenshot, you can understand, what timepicker does: Screenshot
Moodle | SQL report example in Configurable Reports plugin
SQL Report in ‘Configurable Reports’ plugin provides us an easy UI to write SQL Query and draw results immediately without involving any code complications. Suppose I want to generate my custom grades report based on some specific activities from course
Moodle: Performing search through wildcard queries with ‘Like’ operator
‘Like’ operator of SQL can be used in the following ways in Moodle: Using expression $DB->sql_like: $grade_item_test = $DB->get_records_sql ( ‘SELECT * FROM {grade_items} WHERE ‘.$DB->sql_like(‘idnumber’, ‘:idnum’).’ AND courseid=:cid order by itemmodule’, array (‘idnum’=>’test’,’cid’=> $courseid) ); Using like operator: $grade_item_test
Salesforce | Upload Document in Salesforce using javascript
We can create a document/attachment object record in Salesforce using Javascript by calling Salesforce soap webservice. Note – Variable __sfdcSessionId is used to store sessionid. Script files: <script type=”text/javascript”>// <![CDATA[ __sfdcSessionId = ‘{!$Api.Session_Id}’; // ]]></script> <script src=”/soap/ajax/30.0/connection.js” type=”text/javascript”></script> <script src=”/soap/ajax/30.0/apex.js”
Chargify | How to check for subscriptions having expired credit cards
If we want to check for the subscriptions having Expired Cards in chargify then there are two ways to do that: 1. By using the notification on dashboard (see image below): By clicking on the symbol of notification it will
Postgres | JSONB data type field in PostgreSQL(9.4) and using it in CakePHP
JSONB (JSON Blob) datatype in Postgres is used to save JSON data. We can search on JSONB type of column after creating an index on it. For example: Usage in PostgreSQL: 1. Create table and index CREATE TABLE tests (