Skip to content

Instantly share code, notes, and snippets.

View skuppuraj's full-sized avatar

Kuppuraj skuppuraj

View GitHub Profile
add_action( 'woocommerce_thankyou', 'cartimize_thank_you_custom_block_details', 100, 100000000000 );
function cartimize_thank_you_custom_block_details(){
?>
<section class="woocommerce-block">
<h2>Title goes here</h2>
<div>
Content goes here
</div>
@skuppuraj
skuppuraj / function.php
Created July 6, 2021 15:01
Cartimize checkout neighborhood required support
<?php
add_filter( 'cartimize_get_billing_checkout_fields', 'custom_cartimize_checkout_billing_fields', 100, 1 );
function custom_cartimize_checkout_billing_fields( $fields ){
if (isset($fields['billing_neighborhood']) && isset($fields['billing_neighborhood']['is_hidden'])) {
unset($fields['billing_neighborhood']['is_hidden']);
$fields['billing_neighborhood']['required'] = true;
@skuppuraj
skuppuraj / Medical.c
Created June 25, 2021 13:38
Simple Medical shop management program with using struct and file to store the tablet information
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
struct medical
{
char tb[45];
char cn[45];
int quan;
float price;
@skuppuraj
skuppuraj / PhonecallReceiver.java
Created January 20, 2017 13:07 — forked from ftvs/PhonecallReceiver.java
Detecting an incoming call coming to an Android device. Remember to set the appropriate permissions in AndroidManifest.xml as suggested in the Stackoverflow link. Usage example in comments. Source: http://stackoverflow.com/a/15564021/264619 Explanation: http://gabesechansoftware.com/is-the-phone-ringing/#more-8
package com.gabesechan.android.reusable.receivers;
import java.util.Date;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.TelephonyManager;
public abstract class PhonecallReceiver extends BroadcastReceiver {