
Search In
Hello Readers!
If you want to redirect users after adding a specific product to their cart. Below is the example, just pasted this code into into your theme’s functions.php file
<?php
add_filter( 'woocommerce_add_to_cart_redirect', 'redirec
In below example, I have written Python script to remove 'provision' from selection list when configuring Cash Flow Codes. Paste below python code in .py file :
def fields_get(self, cr, uid, fields=None, context=None):
res = super(account_cashfl
Hello Reader's if want to generate the date selector then you can use the Javascript. By choosing JS you don't have to write every month, day or date hard core in the code.
Lets start to generate the code for it.
Step 1: Create head section in your
Ruby on Rails runs on web server Webrick. But in order to deploy Ruby on Rails with Nginx server we will need Passenger too.
Install Passenger and Ngnix
First install PGP key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CA
In the same page i have multiple section.
One section will be show and this will happen using a class active.
In the same page i have li buttons 1, 2 and 3 when i click on one of them the section related appear and the old one disappear for th
If you are looking to copy the text from android widgets to clipboard, you can use the below code
TextView contentTextBox=(TextView) findViewById(R.id.tv_content); //get textview from which you want to copy the content
String textToCopy = contentT
GCM(Google Cloud Messaging) registration token is a kind of id given by the GCM connection server to user/client that allow user to receive messages. To get registration token first we have to generate a unique number, it can be created while configu
If we have latitude and longitude with us and we need to get location name out of that from google api then we need to do the following code;
public function findlocation($lat,$long){
$url_data = 'http://maps.googleapis.com/maps/api/geoc
Normally when we select a value from drop bax then we get the value of option. Here when we will select a value of option then we will getting text of option.
SO to get selected drop box text use below code example-
Javascript
function get(text){
About Google App Engne
Google App Engine applications are used to create data storage. We do not require to maintain servers with App Engine. We just need to upload applications and can access the site from the web.
How to Upload Video? Write the f
