• Just to be clear : I’m not in the team.
    I’m just a customer who wants find it by myself.

    I’ve you have a blank page, go in your POS plugin directory.
    Directory : include
    File : class-wc-pos-template.php

    Replace the 2 functions format_css, Format_js (for me line #195)
    by this (The changes are in Bold)

    /**
    * Makes sure css is in the right format for template
    *
    * @param $style
    * @return string
    */
    private function format_css( $style ) {
    if ( substr( $style, 0, 5 ) === ‘<link’ )
    return $style;

    if ( substr( $style, 0, 4 ) === ‘http’ )
    return ‘<link rel=”stylesheet” href=”‘ . $style . ‘” type=”text/css” />’;
    if ( substr( $style, 0, 11 ) === ‘/wp-content’ )
    return ‘<link rel=”stylesheet” href=”‘ . $style . ‘” type=”text/css” />’;

    return ‘<style>’ . $style . ‘</style>’;
    }

    /**
    * Makes sure javascript is in the right format for template
    *
    * @param $script
    * @return string
    */
    private function format_js( $script ) {
    if ( substr( $script, 0, 7 ) === ‘<script’ )
    return $script;

    if ( substr( $script, 0, 4 ) === ‘http’ )
    return ‘<script src=”‘ . $script . ‘”></script>’;
    if ( substr( $script, 0, 11 ) === ‘/wp-content’ )
    return ‘<script src=”‘ . $script . ‘”></script>’;

    return ‘<script>’ . $script . ‘</script>’;
    }

  • The topic ‘POS Blank Page Resolved’ is closed to new replies.