Skip to content

Instantly share code, notes, and snippets.

@Sammy30
Sammy30 / Database.java
Created June 19, 2022 10:18 — forked from Sithira/Database.java
Simple JAVA Database Connection Class
import com.mysql.jdbc.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Properties;
/**
* Simple JAVA Database Connection Class
*
@Sammy30
Sammy30 / database_website_ethis
Created October 10, 2019 06:02
Database yang di pakai di Ethis untuk melakukan validasi dari woocommerce
# Cek pembiayaan baru - Status wc-on-hold
/*
'wc-pending' => _x( 'Pending payment', 'Order status', 'woocommerce' ),
'wc-processing' => _x( 'Processing', 'Order status', 'woocommerce' ),
'wc-on-hold' => _x( 'On hold', 'Order status', 'woocommerce' ),
'wc-completed' => _x( 'Completed', 'Order status', 'woocommerce' ),
'wc-cancelled' => _x( 'Cancelled', 'Order status', 'woocommerce' ),
'wc-refunded' => _x( 'Refunded', 'Order status', 'woocommerce' ),
'wc-failed' => _x( 'Failed', 'Order status', 'woocommerce' ),
*/
Role Action
Campaign Manager Users: 0; ID: campaign_manager Campaign
Donor Users: 0; ID: donor Delete
Follow-Up Emails Manager Users: 0; ID: fue_manager Delete
Pemilik Dana Users: 29; ID: customer Open
Shop Manager Users: 2; ID: shop_manager Open
Translator Users: 0; ID: translator Delete
Administrator Users: 10; ID: administrator Open
Penulis Users: 0; ID: author Open
Kontributor Users: 2; ID: contributor Open
@Sammy30
Sammy30 / e2pay_Indonesia
Last active October 9, 2019 18:27
Remove Text "Paymenttype" and Please choose bank to pay" Row : 382 - 387
/*
ethis.co.id / httpdocs / wp-content / plugins / e2pay-for-woocommerce / lib / e2pay-php / e2pay / Indonesia.php
*/
<?php
/**
* Ipay88 Inc
* @author Ipay88 Inc <pvchi@e2pay.com>
* @package Ipay88\Lib
*/
ethis.co.id / httpdocs / wp-content / plugins / e2pay-for-woocommerce / includes / class-e2pay-gateway.php
<?php
/*
* E2pay Gateway for WooCommerce
*
* Description: Official E2pay module for WordPress WooCommerce.
* Plugin URI: https://www.e2pay.com/
* Author: E2pay
<!--
ethis.co.id / httpdocs / wp-content / plugins / wp-crowdfunding / wpneotemplate / woocommerce / ethis / include / loop / fund_raised_percent.php
-->
<!--
<div class="wpneo-raised-percent">
<div class="wpneo-meta-name"><?php _e('Sudah Terkumpul', 'wp-crowdfunding'); ?> :</div>
<div class="wpneo-meta-desc" ><?php echo $raised_percent; ?></div>
</div>
<!--
ethis.co.id / httpdocs / wp-content / plugins / wp-crowdfunding / wpneotemplate / woocommerce / ethis / include / loop / funding_goal.php
-->
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
global $post;
$funding_goal = get_post_meta($post->ID, '_nf_funding_goal', true);
<!--
ethis.co.id / httpdocs / wp-content / plugins / wp-crowdfunding / wpneotemplate / woocommerce / ethis / include / loop / details_button.php
-->
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<div class="wpneo-listing-buttons">
<!--
ethis.co.id / httpdocs / wp-content / plugins / wp-crowdfunding / wpneotemplate / woocommerce / ethis / include / loop / fund_raised.php
-->
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
$raised_percent = WPNEOCF()->getFundRaisedPercentFormat();
$raised = 0;
<!--
ethis.co.id / httpdocs / wp-content / plugins / wp-crowdfunding / wpneotemplate / woocommerce / ethis / include / loop / funding_goal.php
-->
<li><span class="info-text"><?php _e('Gross Projected Returns', 'wp-crowdfunding') ?>
<!-- based on <?php the_field('shariah_contract'); ?>--></span>
<p class="funding-amount"><?php the_field('returns_pa'); ?>%</p>
</li>
<li><span class="info-text"><?php _e('Duration', 'wp-crowdfunding') ?></span>