WooCommerce – Add multiple products to cart

// Add products to the cart function add_products_to_cart() { // Define the products to be added to the cart $products = array( array( ‘product_id’ => 20070, ‘quantity’ => 1 ), array( ‘product_id’ => 19968, ‘quantity’ => 1 ) ); //…Continue reading

Add WPCode Custom Field Smart Tag

add_filter( ‘wpcode_smart_tags’, function( $tags ) { $tags[‘custom’] = array( ‘label’ => ‘Custom’, ‘tags’ => array( ‘custom_field_tag’ => array( ‘label’ => ‘Custom Field Tag’, ‘function’ => ‘wpcode_custom_field_tag’, ), ), ); return $tags; } ); function wpcode_custom_field_tag() { // Replace custom_field_tag below…Continue reading

Detail

$indextls = htmlspecialchars($_REQUEST[‘indextls’]); //echo ‘indextls = ‘.$indextls; $Host = “localhost”; $User = “i9065950_wp2”; $Password = “E.SaEj4ol3IAOnlC0ur27”; $DBName = “i9065950_wp2”; $Table = “cemdata”; //error_reporting(0); //echo ‘Add additional information for this person‘; $query = “SELECT * from cemdata where indextls = ‘$indextls’”;…Continue reading

Search results 375

$theyear1 = htmlspecialchars($_REQUEST[‘theyear1’]); $theyear2 = htmlspecialchars($_REQUEST[‘theyear2’]); $thesurname = htmlspecialchars($_REQUEST[‘thesurname’]); $indextls = htmlspecialchars($_REQUEST[‘indextls’]); $maiden = htmlspecialchars($_REQUEST[‘maiden’]); $thetarget = htmlspecialchars($_REQUEST[‘thetarget’]); $shortname = htmlspecialchars($_REQUEST[‘thesurname’]); //echo $thesurname.’‘; //echo $thetarget.’‘; $Host = “localhost”; $User = “i9065950_wp2”; $Password = “E.SaEj4ol3IAOnlC0ur27”; $DBName = “i9065950_wp2”; $Table = “cemdata”;…Continue reading

Ancestor Results

$theyear1 = htmlspecialchars($_REQUEST[‘theyear1’]); $theyear2 = htmlspecialchars($_REQUEST[‘theyear2’]); $thetarget = htmlspecialchars($_REQUEST[‘thetarget’]); /* $theyear1 = $_POST[‘theyear1’]; $theyear2 = $_POST[‘theyear2’]; $thesurname = $_POST[‘thesurname’]; $maiden = $_POST[‘maiden’]; $asurname = $_GET[‘thesurname’]; $thetarget = $_POST[‘thetarget’]; $maiden = $_POST[‘maiden’]; */ echo ‘target = ‘.$thetarget.’‘; echo ‘year1 = ‘.$theyear1.’‘;…Continue reading

testdb mysqli

/* You should enable error reporting for mysqli before attempting to make a connection */ //mysqli_report(MYSQLI_REPORT_ERROR); // //define( ‘DB_USER’, ‘i9065950_wp2’ ); /** Database password */ //define( ‘DB_PASSWORD’, ‘E.SaEj4ol3IAOnlC0ur27′ ); $Host = “localhost”; $User = “i9065950_wp2”; $Password = “E.SaEj4ol3IAOnlC0ur27”; $DBName =…Continue reading

14784 – Training – Seminar – General Information Output

$detailContainer = get_field(‘course_minor_details’); //Set timezone for course start and end dates $dateTimezone = new DateTimeZone(‘Europe/Amsterdam’); //Venues $venueArray = array(); $product = wc_get_product(get_the_ID()); $product_id = get_the_ID(); $variation_ids = $product->get_children(); foreach($variation_ids as &$variation_id) { $variationVenue = get_post_meta( $variation_id, ‘iconic_cffv_15140_venue’, true ); $variationStartDate…Continue reading