Skip to content

Instantly share code, notes, and snippets.

private function decideOnLocaleId ()
{
if ( is_null ( $this -> localeId ) )
{
var_dump ( $this -> plansLangs -> getLocales () -> getRes () ) ;
var_dump ( $this -> plansLangs -> getLocales () -> getRes () ) ;
$locales = $this -> plansLangs -> getLocales () -> getRes () ;
var_dump ( $locales ) ;//NULL
return $locales[ 0 ][ $this -> plansLangs -> getLocales () -> getPkName () ] ;
<?php
$json['title'] = "Documents JSON";
$json['description'] = "All the documents per company";
$json['generator'] = "https://xxxxx.com/";
$json['documents'] = array();
foreach($docs as $doc) {
$billingArray = array();
while (have_checkout_items()) {
the_checkout_item();
$billingArray[] = array(
"id" => form_element_id(),
"name" => checkout_form_name(),
"form" => checkout_form_field(),
);
echo "hey";
}
<html>
<head>
<title></title>
<?php include('menu.php'); ?>
</head>
<body>
<?php include('content.php'); ?>
</body>
</html>