Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Houston,
    The plugin detects custom templates by scanning the folders in the wp-content/themes/x-child/woocommerce/pdf/ folder. This is done using the PHP glob() function, but some hosts have limited or blocked this function from scanning for folders, which breaks this system (I have only had one or two reports of this over the past 3 years though).

    I recommend contacting your host if this is indeed the case for you!

    If there’s no way to remove this restriction, you can use a filter to manually add this path to the list of options:

    add_filter( 'wpo_wcpdf_templates', 'wpo_wcpdf_templates_custom', 10, 1 );
    function wpo_wcpdf_templates_custom($installed_templates) {
    	$installed_templates['wp-content/themes/x-child/woocommerce/pdf/simple2'] = 'simple2';
    	return $installed_templates;
    }

    Hope that helps!
    Ewout

Viewing 1 replies (of 1 total)

The topic ‘Custom template not showing up’ is closed to new replies.