HI,
I change the url, the css and html works but not “main.js” just not found.
update_option( 'siteurl', 'http://localhost:8888/enrollment/'.$_GET['sku'].'/' );
update_option( 'home', 'http://localhost:8888/enrollment/'.$_GET['sku'].'/' );
function get_template_page($page) {
if( (isset( $_GET['sku'] ) && !empty( $_GET['sku']) || isset($sku) ) ){
$domaine = lcfirst($_GET['sku']);
$str = $domaine;
$themeName = preg_replace('/[.a-z]{4}$/', '', $str);
return get_template_part($themeName.'/'.$page);
} else {
echo 'the domain is wrong';
}
}