PT. HM. SAMPOERNA, Tbk. - Pasuruan Jawa Timur

INHOUSE TRAINING VBA MACRO PROGRAMMING

PT. PLN PERSERO MALUKU / MALUKU UTARA

INHOUSE TRAINING I.S GOVERNANCE

O-Shop, SCTV, Infotech (Jakarta)

PUBLIC TRAINING MAGENTO ADVANCED

PT. ASKRINDO - JAKARTA

PUBLIC TRAINING PMP PMBOK EXAM PREPARATION

Bank Fama International - Bandung

INHOUSE TRAINING CYBERSECURITY AWARENESS PROGRAM

Sunday, January 29, 2017

Simple PHP Mysql Search for Each Word like Search engine

Hi berikut akan saya berikan tips sederhana membuat pencarian di setiap kata kunci yang dimasukkan dalam search form, tentunya perlu anda lengkapi sendiri

Ambillah contoh saya punya table sederhana tbpegawai dalam database dbcoba
dengan kolom kolom id, nama, kota dan saya fokus ingin menggunakan kolom nama sebagai target pencarian

maka berikut php simplenya

<?php

$host = "localhost";
$user = "root";
$password = "";

$dbname = "dbcoba";

$koneksi = mysqli_connect($host,$user,$password);

$dbkonek = mysqli_select_db($koneksi,$dbname) or die("error euy ");



if(isset($_GET['txtnama'])) {
$search = str_replace(" ","|",$_GET['txtnama']);



       $sql= " SELECT * FROM tbpegawai WHERE nama REGEXP '$search' ";
       $run = mysqli_query($koneksi,$sql) or die(mysqli_error($koneksi));
       $row = mysqli_fetch_assoc($run);
       $total = mysqli_num_rows($run);


}


?>

<body>

<form action="cari.php" method="GET">

<input type="text" name="txtnama" id="txtnama" placeholder="Cari" value="<?php echo $_GET['txtnama']; ?>">
<button type="submit" value="Cari" > Cari</button>

</form>

<?php if($total>0) { ?>
<table border="1" width="500">
    <thead>
        <tr>
            <th> <strong>Hasil Cari <?php echo $total ; ?></strong> </th>
        </tr>
    </thead>
    <tbody>
        <?php do{ ?>

        <tr>
        <td><?php echo $row['nama']; ?> </td>
        </tr>

        <?php } while($row=mysqli_fetch_assoc($run)) ;?>
    </tbody>

</table>
<?php } ?>
</body>



Silahkan dikembangkan dan dirapihkan sendiri


Regards,


HERY PURNAMA

Certified IT Trainer


 Call/ SMS/WA :  081.223344.506 , BBM : 7DC633AA
 
 Blog :
 
 Social Net :

Hometown : Bandung - Jawa Barat

Please consider your environmental responsibility. Before printing this e-mail message, ask yourself whether you really need a hard copy.





Friday, January 27, 2017

Magento 2.1 training di Jakarta

Terima kasih kepada PT. softbless solution  Jakarta atas undangan mengajar Magento 2.1.0 Fundamental bersama peserta dari PT PJB semoga bermanfaat

Salam,
 
 HERY PURNAMA
Certified IT Trainer

 http://www.inhousetrainer.net
 inhousetrainer@yahoo.com ,hery.purnama@gmail.com 
 Call/ SMS/WA :  081.223344.506 | PinBB : 7DC633AA
 
 Blog : 
 inhousetrainer.blogspot.com
 freelance-it-trainer.blogspot.com

Download Mozilla Firefox Offline Installer

If you need the offline installer of mozilla , just visit https://www.mozilla.org/en-US/firefox/all/ , hope it will help




Regards,


HERY PURNAMA

Certified IT Trainer


 Call/ SMS/WA :  081.223344.506 , BBM : 7DC633AA
 
 Blog :
 
 Social Net :

Hometown : Bandung - Jawa Barat

Please consider your environmental responsibility. Before printing this e-mail message, ask yourself whether you really need a hard copy.





Tuesday, January 24, 2017

Magento 2 , SMTP Setting using gmail in localhost (solved)

Using SMTP GMAIL in Magento 2.1.0
Tidak seperti Magento Release 1.x dimana Admin bisa me-reset password customer secara manual maka  Ketika Anda menggunakan Magento release 2 anda akan menemukan masalah besar saat Anda membuat customer baru dikarenakan mekanisme di magento 2 tidak memungkinkan lagi buat Anda sebagai Admin untuk men-generate password secara manual.

Mungkin ketika web magento 2 anda sudah go live tidak masalah karena sudah terhubung dengan mail server yang secara otomatis menggunakan  function php mail yang ada dimagento untuk menggunakan SMTP server host Anda, Namun jika Anda masih belajar dan masih menggunakan localhost maka tentu saja ini akan jadi masalah.

di magento 2 memang tersedia konfigurasi untuk setting SMTP ( Stores -> Configuration -> Advanced -> System - Mail Sending Seeting) namun fitur ini tersedia dengan mode no authentication , kondisi ini tidak memungkinkan kalau Anda menggunakan SMTP Gmail dengan model SSL port 465 atau TSL yang membutuhkan Authentication, maka solusinya adalah Anda menggunakan PHP library openssl dan module gratis gmailSMTPapp, caranya ?

A. Persiapan
1. Pastikan library openssl telah aktif , silahkan stop XAMPP anda , buka php.ini lalu aktifkan library tersebut dengan membuang tanda ";"  (extension=php_openssl.dll)

2. Download module gmailSMTPapp di sini https://drive.google.com/open?id=0B8K1iwkuWcL-ZEJ2QkgyQ2pKUjA ,lalu extract

B. Instalasi


1. Buat struktur folder berikut di root web folder magento Anda   C:\xampp\htdocs\{webfolderAnda}\app\code\MagePal\GmailSmtpApp

2. Copykan isi dari source zip yang telah Anda extract tadi ke dalam  \
GmailSmtpApp

3. Masuk admin magento Anda dan lakukan "Flush Magento Cache" dan refresh Library (menu System -> Tools->Cache Management)

4. Buka Command Prompt windows Anda "start->run->CMD" , jalankan perintah berikut untuk mendaftarkan module gmailSmtpApp ke dalam sistem magento Anda

  c:\xampp\php\php -f c:/xampp/htdocs/{webMagentoAnda}/bin/magento module:enable --clear-static-content MagePal_GmailSmtpApp

5. Lanjut dengan perintah upgrade system anda seperti berikut :
c:\xampp\php\php -f c:/xampp/htdocs/{webMagentoAnda}/bin/magento setup:upgrade

*Jika selama menjalankan point 4 dan 5 diatas ada warning tentang openSSL dan juga permintaan untuk re-compile, abaikan saja, setelah selesai lakukan flush magento cache sekali lagi

C. Setting Gmail

1. Setelah selesai instalasi dan flush cache, masuk ke Stores -> Configuration -> Advanced -> System -> Gmail/Google Apps SMTP Pro (module telah muncul dan settingan awal berupa "local client name : localhost " , "SMTP host : smtp.gmail.com" , "port 465" )

2. Lengkapi settingan dengan mengisikan username : {emailanda@gmail.com} harus email gmail ! , password : {password gmail anda}

3. Simpan Settingan

D. Settingan Tambahan

1. Untuk memastikan smtp bekerja normal, lengkapi juga settingan module  Mail Sending Setting dibawahnya

Disable Email Communication = No
port(25) : 465
Set Return Path : Yes

E. Test

Untuk mencobanya silahkan kembali ke module Gmail/Google Apps SMTP Pro , pindah ke bagian Test Setting isi informasi

Email Address : emailtujuan@gmail.com (Sebaiknya coba kirim ke gmail lagi)
Form Address : emailygdipakaiusername@gmail.com (Sebaiknya pake email yang digunakan sebagai settingan username smtp)

Tekan Send Test Email , (silahkan cek email tujuan)

Setelah selesai silahkan coba buat customer dan reset passwordnya, maka link email akan terkirim ke customer untuk request reset password

Simple kan ?


Selamat mencoba

Happy Magento :)


Regards,


HERY PURNAMA

Certified IT Trainer


 Call/ SMS/WA :  081.223344.506 , BBM : 7DC633AA
 
 Blog :
 
 Social Net :

Hometown : Bandung - Jawa Barat

Please consider your environmental responsibility. Before printing this e-mail message, ask yourself whether you really need a hard copy.





Magento 2 how to make price more than 100 million

Magento release 2 memiliki struktur berbeda dengan generasi release 1 ,namun  beberapa issu yang ada di Magento 1 masih ditemukan di release 2 , diantaranya batas maximum price product dan total order yang hanya maximum 100 Juta dan sudah menjadi standard baku Magento. Untuk bisnis di Indonesia yang menggunakan transaksi Rupiah tentu saja agak menyulitkan .
Solusi untuk issue tersebut di magento release 1 bisa dilakukan dengan menggunakan extension atau merubah code program namun di release 2 solusi tersebut agak sulit dilakukan dikarenakan code program yang dibuat pada release 2 cenderung di enkripsi dan juga untuk saat ini ketersedian extension release 2 di magento connect belum ada

Adapun solusi yang bisa Anda lakukan adalah mengubah struktur beberapa tabel dengan perintah sql berikut

Solusi ini baru ditest di magento 2.1.0

    alter table catalog_product_entity_decimal modify value decimal(24,4);

    alter table catalog_product_index_price modify price decimal(24,4);
    alter table catalog_product_index_price modify final_price decimal(24,4);
    alter table catalog_product_index_price modify min_price decimal(24,4);
    alter table catalog_product_index_price modify max_price decimal(24,4);
    alter table catalog_product_index_price modify tier_price decimal(24,4);

    alter table catalog_product_index_price_tmp modify price decimal(24,4);
    alter table catalog_product_index_price_tmp modify final_price decimal(24,4);
    alter table catalog_product_index_price_tmp modify min_price decimal(24,4);
    alter table catalog_product_index_price_tmp modify max_price decimal(24,4);
    alter table catalog_product_index_price_tmp modify tier_price decimal(24,4);

    alter table catalog_product_index_price_final_tmp modify price decimal(24,4);
    alter table catalog_product_index_price_final_tmp modify orig_price decimal(24,4);
   
    alter table catalog_product_index_price_final_tmp modify min_price decimal(24,4);
    alter table catalog_product_index_price_final_tmp modify max_price decimal(24,4);
    alter table catalog_product_index_price_final_tmp modify tier_price decimal(24,4);

    alter table  catalog_product_entity_tier_price modify qty decimal(24,4);
    alter table  catalog_product_entity_tier_price modify value decimal(24,4);

    alter table  catalog_product_index_price_final_idx modify orig_price decimal(24,4);
    alter table  catalog_product_index_price_final_idx modify price decimal(24,4);
    alter table  catalog_product_index_price_final_idx modify min_price decimal(24,4);
    alter table  catalog_product_index_price_final_idx modify max_price decimal(24,4);
    alter table  catalog_product_index_price_final_idx modify tier_price decimal(24,4);
    alter table  catalog_product_index_price_final_idx modify base_tier decimal(24,4);

    alter table  catalog_product_index_price_idx modify price decimal(24,4);
    alter table  catalog_product_index_price_idx modify final_price decimal(24,4);
    alter table  catalog_product_index_price_idx modify min_price decimal(24,4);
    alter table  catalog_product_index_price_idx modify max_price decimal(24,4);
    alter table  catalog_product_index_price_idx modify tier_price decimal(24,4);

    alter table  catalog_product_index_tier_price modify min_price decimal(24,4);

    alter table  catalog_product_index_eav_decimal modify value  decimal(24,4);

    alter table  catalog_product_index_eav_decimal_idx modify value decimal(24,4);

    alter table  catalog_product_index_eav_decimal_tmp modify value decimal(24,4);


Salam,


Hery Purnama
Certified IT Trainer
Magento Trainer (Fundamental, Advanced Level)
081223344506

Monday, January 23, 2017

Magento 2 image and menu not loading after installation (solved)

After you've done with the installation you will found that magento logo or menu inside your website admin not working , it is very simple solution what you need to do is open : "app\etc\dl.xml" file and change ..

<item name="view_preprocessed" xsi:type="object">Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink</item>

to...

<item name="view_preprocessed" xsi:type="object">Magento\Framework\App\View\Asset\MaterializationStrategy\Copy</item>

save the file and refresh your web

that's it, simple !

Regards,

Hery Purnama
Magento Trainer