Plugin Directory

Changeset 2112924


Ignore:
Timestamp:
06/26/2019 01:58:30 PM (7 years ago)
Author:
shopconstruct
Message:

Fixed conflict with coral-dark theme, which caused our popups' styles to be messed up
Changed part of plugin's php codes to be PSR standards compliant
Fixed checkout page styles
Fixed popup overlays problem, which caused issues when opening popups one on another
Fixed category popup parent selection problem

Location:
shopconstruct
Files:
517 added
10 deleted
50 edited

Legend:

Unmodified
Added
Removed
  • shopconstruct/trunk/assets/css/admin.style.css

    r2049359 r2112924  
    625625    height: 100%;
    626626    background: rgba(255,255,255,.5);
    627     z-index: 3;
     627    z-index: 159900;
    628628}
    629629
     
    745745    width: auto !important;
    746746    padding: 0 !important;
    747     z-index: 100500 !important;
     747    z-index: 159899 !important;
    748748}
    749749
     
    24942494    margin: 0 7px;
    24952495}
     2496
     2497.shop-ct-popup-outer-window ~ .select2-container {
     2498    z-index: 159899;
     2499}
  • shopconstruct/trunk/assets/css/frontend/checkout.css

    r2094151 r2112924  
    200200    padding: 50px;
    201201    margin: 0 auto;
    202     background: #fff;
    203202}
    204203
     
    394393
    395394
    396 
     395.shop_ct_checkout_order_cart_items {
     396    display: table !important;
     397}
     398
  • shopconstruct/trunk/assets/css/frontend/common.css

    r2104150 r2112924  
    527527    padding:15px;
    528528    box-shadow: -1px -1px 1px 2px rgba(0,0,0,.05);
     529    box-sizing: border-box;
    529530}
    530531
  • shopconstruct/trunk/config.php

    r2094151 r2112924  
    1313
    1414$GLOBALS['shop_ct_aliases'] = array(
    15     'Shop_CT_Post_Type_DB_Model' => 'includes/abstracts/abstract-shop-ct-post-type-db-model',
    1615
    1716    // HELPERS
    18     'Shop_CT_Template_Loader' => 'includes/helpers/class-shop-ct-template-loader',
    19     'Shop_CT_Locations' => 'includes/helpers/class-shop-ct-locations',
    20     'Shop_CT_Geolocation' => 'includes/helpers/class-shop-ct-geolocation',
    2117    'Shop_CT_Geo_IP' => 'includes/helpers/class-shop-ct-geo-ip',
    2218    'Shop_CT_Formatting' => 'includes/helpers/class-shop-ct-formatting',
  • shopconstruct/trunk/gulpfile.js

    r2104150 r2112924  
    1111    sourcemaps = require('gulp-sourcemaps'),
    1212    adminJSFiles = [
    13         'vendor/select2/js/select2.full.min.js',
    14         'vendor/jscolor/jscolor.js',
     13        'lib/select2/js/select2.full.min.js',
     14        'lib/jscolor/jscolor.js',
    1515        'assets/js/js-functions.js',
    1616        'assets/js/shop-ct-popup.js',
  • shopconstruct/trunk/includes/admin/class-shop-ct-admin-assets.php

    r2049359 r2112924  
    4040            wp_enqueue_style("shop_ct_animate_css", SHOP_CT()->plugin_url() . "/assets/css/animate.css", FALSE, SHOP_CT()->version);
    4141
    42             wp_enqueue_style("shop_ct_font_awesome", SHOP_CT()->plugin_url() . "/vendor/fontawesome/css/fontawesome-all.min.css", FALSE, SHOP_CT()->version);
     42            wp_enqueue_style("shop_ct_font_awesome", SHOP_CT()->plugin_url() . "/lib/fontawesome/css/fontawesome-all.min.css", FALSE, SHOP_CT()->version);
    4343
    4444            wp_enqueue_style("shop_ct_jquery_ui_css", "http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css", FALSE, SHOP_CT()->version);
    4545
    46             wp_enqueue_style("shop_ct_select2_css", SHOP_CT()->plugin_url() . "/vendor/select2/css/select2.css", FALSE, SHOP_CT()->version);
     46            wp_enqueue_style("shop_ct_select2_css", SHOP_CT()->plugin_url() . "/lib/select2/css/select2.css", FALSE, SHOP_CT()->version);
    4747
    4848            wp_enqueue_style("shop_ct_google_fonts_Raleway", "https://fonts.googleapis.com/css?family=Raleway:400,500,400italic", FALSE, SHOP_CT()->version);
     
    124124                'addDownloadableFile' => __('Add Downloadable File', 'shop_ct'),
    125125                'insertFile' => __('Insert file', 'shop_ct'),
    126                 'invalidSalePrice' => __('Invalid Sale Price', 'shop_ct'),
     126                'invalidSalePrice' => __('Invalid Discounted Price', 'shop_ct'),
    127127                'order_published' => __('Order Saved Successfully', 'shop_ct'),
    128128            ));
  • shopconstruct/trunk/includes/admin/class-shop-ct-admin.php

    r2059587 r2112924  
    8585    public function deactivation_modal()
    8686    {
    87         Shop_CT_Template_Loader::get_template('admin/deactivation-modal.view.php');
     87        \ShopCT\Core\TemplateLoader::get_template('admin/deactivation-modal.view.php');
    8888    }
    8989
  • shopconstruct/trunk/includes/class-shop-ct-cart-manager.php

    r1995995 r2112924  
    1212     */
    1313    public function __construct() {
    14         add_action('shop_ct_ajax_add_to_cart', [$this, 'add_to_cart']);
    15         add_action('shop_ct_ajax_remove_from_cart', [$this, 'remove_from_cart']);
    16         add_action('shop_ct_ajax_change_cart_product_quantity', [$this, 'change_quantity']);
    17         add_action('shop_ct_remove_old_carts', [$this, 'remove_old_carts']);
     14        add_action('shop_ct_ajax_add_to_cart', array($this, 'add_to_cart'));
     15        add_action('shop_ct_ajax_remove_from_cart', array($this, 'remove_from_cart'));
     16        add_action('shop_ct_ajax_change_cart_product_quantity', array($this, 'change_quantity'));
     17        add_action('shop_ct_remove_old_carts', array($this, 'remove_old_carts'));
    1818
    1919        if(!is_admin()){
  • shopconstruct/trunk/includes/class-shop-ct-order.php

    r1995995 r2112924  
    11<?php
     2
     3use ShopCT\Model\PostType;
    24
    35if (!defined('ABSPATH')) {
     
    57}
    68
    7 class Shop_CT_Order extends Shop_CT_Post_Type_DB_Model
     9class Shop_CT_Order extends PostType
    810{
    911    /**
  • shopconstruct/trunk/includes/class-shop-ct-product.php

    r2094151 r2112924  
    11<?php
     2
     3use ShopCT\Model\PostType;
    24
    35/**
     
    1012 *
    1113 */
    12 class Shop_CT_Product extends Shop_CT_Post_Type_DB_Model
     14class Shop_CT_Product extends PostType
    1315{
    1416
  • shopconstruct/trunk/includes/event-listeners/ajax/admin/class-shop-ct-ajax-admin-products.php

    r1873194 r2112924  
    280280
    281281        echo json_encode(array('success' => 1,
    282             'return_html' => Shop_CT_Template_Loader::get_template_buffer('admin/products/popup.view.php', compact('product', 'autoDraft')),
     282            'return_html' => \ShopCT\Core\TemplateLoader::get_template_buffer('admin/products/popup.view.php', compact('product', 'autoDraft')),
    283283            'title' => $autoDraft ? __('Add Product', 'shop_ct') : __($product->get_title(), 'shop_ct'),
    284284        ));
  • shopconstruct/trunk/includes/event-listeners/ajax/admin/class-shop-ct-ajax-display-settings.php

    r1873194 r2112924  
    2222        foreach ( $checked_post_type_ids as $checked_post_type_id ) {
    2323            $post = get_post( $checked_post_type_id );
    24             Shop_CT_Template_Loader::get_template('admin/settings/display/single-item.php', compact('post'));
     24            \ShopCT\Core\TemplateLoader::get_template('admin/settings/display/single-item.php', compact('post'));
    2525        }
    2626
  • shopconstruct/trunk/includes/event-listeners/ajax/class-shop-ct-ajax-cart.php

    r1995995 r2112924  
    7676
    7777
    78         Shop_CT_Template_Loader::get_template('frontend/cart/show.view.php',compact('cart'));
     78        \ShopCT\Core\TemplateLoader::get_template('frontend/cart/show.view.php',compact('cart'));
    7979        die;
    8080    }
  • shopconstruct/trunk/includes/event-listeners/comments/class-shop-ct-comment-filter.php

    r2094151 r2112924  
    3434
    3535    public static function show_single_review($comment, $args, $depth){
    36         Shop_CT_Template_Loader::get_template('frontend/product/review.php', compact( 'comment', 'args', 'depth' ));
     36        \ShopCT\Core\TemplateLoader::get_template('frontend/product/review.php', compact( 'comment', 'args', 'depth' ));
    3737    }
    3838
  • shopconstruct/trunk/includes/event-listeners/frontend/class-shop-ct-template-manager.php

    r1995995 r2112924  
    88 * Template Loader
    99 *
    10  * @class Shop_CT_Template_Loader
     10 * @class \ShopCT\Core\TemplateLoader
    1111 */
    1212class Shop_CT_Template_Manager
     
    3030            do_action('shop_ct_order_success_page', $order);
    3131
    32             Shop_CT_Template_Loader::get_template('frontend/orders/order-details.view.php', compact('order'));
     32            \ShopCT\Core\TemplateLoader::get_template('frontend/orders/order-details.view.php', compact('order'));
    3333        }
    3434
     
    5656
    5757                if ($product->is_download_permission_expired($order->get_id(), $email) || $product->is_download_limit_expired($order->get_id(), $email)):
    58                     Shop_CT_Template_Loader::get_template('frontend/orders/download-expired.view.php',compact('product','order'));
     58                    \ShopCT\Core\TemplateLoader::get_template('frontend/orders/download-expired.view.php',compact('product','order'));
    5959                else:
    6060
     
    156156            $product = new Shop_CT_Product(get_the_ID());
    157157
    158             $content = Shop_CT_Template_Loader::get_template_buffer('frontend/product/show.php', array('product' => $product));
     158            $content = \ShopCT\Core\TemplateLoader::get_template_buffer('frontend/product/show.php', array('product' => $product));
    159159
    160160
     
    172172        if (is_tax(Shop_CT_Product_Category::get_taxonomy())) {
    173173
    174             $new_template = Shop_CT_Template_Loader::locate_template('frontend/product-category/show.template.view.php');
     174            $new_template = \ShopCT\Core\TemplateLoader::locate_template('frontend/product-category/show.template.view.php');
    175175        }
    176176
     
    180180        if (is_tax(Shop_CT_Product_Tag::get_taxonomy())) {
    181181
    182             $new_template = Shop_CT_Template_Loader::locate_template('frontend/product-tag/show.php');
     182            $new_template = \ShopCT\Core\TemplateLoader::locate_template('frontend/product-tag/show.php');
    183183
    184184        }
     
    188188         */
    189189        if (is_singular(Shop_CT_Product::get_post_type())) {
    190             $new_template = Shop_CT_Template_Loader::locate_template('frontend/product/show/index.template.view.php');
     190            $new_template = \ShopCT\Core\TemplateLoader::locate_template('frontend/product/show/index.template.view.php');
    191191        }
    192192
     
    198198             */
    199199            if ($id == SHOP_CT()->checkout->settings->checkout_page_id) {
    200                 $new_template = Shop_CT_Template_Loader::locate_template('frontend/checkout/show.template.view.php');
     200                $new_template = \ShopCT\Core\TemplateLoader::locate_template('frontend/checkout/show.template.view.php');
    201201            }
    202202        }
  • shopconstruct/trunk/includes/event-listeners/frontend/scripts/class-shop-ct-frontend-scripts.php

    r2094151 r2112924  
    2828
    2929
    30         wp_enqueue_style( "shop_ct_font_awesome", SHOP_CT()->plugin_url() . "/vendor/fontawesome/css/fontawesome-all.min.css", false );
     30        wp_enqueue_style( "shop_ct_font_awesome", SHOP_CT()->plugin_url() . "/lib/fontawesome/css/fontawesome-all.min.css", false );
    3131
    3232        wp_enqueue_style('animate-css', SHOP_CT()->plugin_url() . '/assets/css/animate.css', false, SHOP_CT()->version);
     
    6565            wp_enqueue_style( "shop_ct_font_awesome", 'http://fontawesome.io/assets/font-awesome/css/font-awesome.css', false );
    6666            wp_enqueue_script( "shop_ct_front_end_js", plugins_url( "../assets/js/front-end.js", __FILE__ ), false );
    67             wp_enqueue_script( "shop_ct_js_elevatezoom", SHOP_CT()->plugin_url()."vendor/elevatezoom-master/jquery.elevatezoom.js", false );
    68             wp_enqueue_script( "shop_ct_js_elevatezoom_min", SHOP_CT()->plugin_url()."vendor/elevatezoom-master/jquery.elevateZoom-3.0.8.min.js", false );
     67            wp_enqueue_script( "shop_ct_js_elevatezoom", SHOP_CT()->plugin_url()."lib/elevatezoom-master/jquery.elevatezoom.js", false );
     68            wp_enqueue_script( "shop_ct_js_elevatezoom_min", SHOP_CT()->plugin_url()."lib/elevatezoom-master/jquery.elevateZoom-3.0.8.min.js", false );
    6969            wp_localize_script( 'shop_ct_front_end_js', 'shopCTL10n', $js_vars );
    7070        }*/
     
    7474    {
    7575        wp_enqueue_style( "google-fonts-lato", "https://fonts.googleapis.com/css?family=Lato:300,400,600,700", false );
    76         wp_enqueue_script( "elevate-zoom", SHOP_CT()->plugin_url()."/vendor/elevatezoom-master/jquery.elevateZoom-3.0.8.min.js", array('jquery') );
    77         wp_enqueue_script( "countdown-js", SHOP_CT()->plugin_url()."/vendor/jquery.countdown-2.1.0/jquery.countdown.js", array('jquery') );
    78         wp_enqueue_script( "moment-js", SHOP_CT()->plugin_url()."/vendor/moment-js/moment.js" );
    79         wp_enqueue_script( "moment-timezone", SHOP_CT()->plugin_url()."/vendor/moment-js/moment-timezone-with-data.js" );
     76        wp_enqueue_script( "elevate-zoom", SHOP_CT()->plugin_url()."/lib/elevatezoom-master/jquery.elevateZoom-3.0.8.min.js", array('jquery') );
     77        wp_enqueue_script( "countdown-js", SHOP_CT()->plugin_url()."/lib/jquery.countdown-2.1.0/jquery.countdown.js", array('jquery') );
     78        wp_enqueue_script( "moment-js", SHOP_CT()->plugin_url()."/lib/moment-js/moment.js" );
     79        wp_enqueue_script( "moment-timezone", SHOP_CT()->plugin_url()."/lib/moment-js/moment-timezone-with-data.js" );
    8080        wp_enqueue_script('shop-ct-product', SHOP_CT()->plugin_url() . '/assets/js/frontend/product.js', array('elevate-zoom','countdown-js', 'moment-js','moment-timezone','jquery'), SHOP_CT()->version);
    8181        wp_enqueue_style('shop-ct-product', SHOP_CT()->plugin_url() . '/assets/css/frontend/product.css', false, SHOP_CT()->version);
  • shopconstruct/trunk/includes/helpers/class-shop-ct-logger.php

    r1873194 r2112924  
    1212class Shop_CT_Logger {
    1313
    14     /**
    15     * Stores open file _handles.
    16     *
    17     * @var array
    18     * @access private
    19     */
    20     private $_handles;
     14    /**
     15    * Stores open file _handles.
     16    *
     17    * @var array
     18    * @access private
     19    */
     20    private $_handles;
    2121
    22     /**
    23     * Constructor for the logger.
    24     */
    25     public function __construct() {
    26         $this->_handles = array();
    27     }
     22    /**
     23    * Constructor for the logger.
     24    */
     25    public function __construct() {
     26        $this->_handles = array();
     27    }
    2828
    2929
    30     /**
    31     * Destructor.
    32     */
    33     public function __destruct() {
    34         foreach ( $this->_handles as $handle ) {
    35             @fclose( $handle );
    36         }
    37     }
     30    /**
     31    * Destructor.
     32    */
     33    public function __destruct() {
     34        foreach ( $this->_handles as $handle ) {
     35            @fclose( $handle );
     36        }
     37    }
    3838
    3939
    40     /**
    41     * Open log file for writing.
    42     *
    43     * @access private
    44     * @param mixed $handle
    45     * @return bool success
    46     */
    47     private function open( $handle ) {
    48         if ( isset( $this->_handles[ $handle ] ) ) {
    49             return true;
    50         }
     40    /**
     41    * Open log file for writing.
     42    *
     43    * @access private
     44    * @param mixed $handle
     45    * @return bool success
     46    */
     47    private function open( $handle ) {
     48        if ( isset( $this->_handles[ $handle ] ) ) {
     49            return true;
     50        }
    5151
    52         if ( $this->_handles[ $handle ] = @fopen( self::get_log_file_path( $handle ), 'a' ) ) {
    53             return true;
    54         }
     52        if ( $this->_handles[ $handle ] = @fopen( self::get_log_file_path( $handle ), 'a' ) ) {
     53            return true;
     54        }
    5555
    56         return false;
    57     }
     56        return false;
     57    }
    5858
    5959
    60     /**
    61     * Add a log entry to chosen file.
    62     *
    63     * @param string $handle
    64     * @param string $message
    65     */
    66     public function add( $handle, $message ) {
    67         if ( $this->open( $handle ) && is_resource( $this->_handles[ $handle ] ) ) {
    68             $time = date_i18n( 'm-d-Y @ H:i:s -' ); // Grab Time
    69             @fwrite( $this->_handles[ $handle ], $time . " " . $message . "\n" );
    70         }
     60    /**
     61    * Add a log entry to chosen file.
     62    *
     63    * @param string $handle
     64    * @param string $message
     65    */
     66    public function add( $handle, $message ) {
     67        if ( $this->open( $handle ) && is_resource( $this->_handles[ $handle ] ) ) {
     68            $time = date_i18n( 'm-d-Y @ H:i:s -' ); // Grab Time
     69            @fwrite( $this->_handles[ $handle ], $time . " " . $message . "\n" );
     70        }
    7171
    72         do_action( 'shop_ct_log_add', $handle, $message );
    73     }
     72        do_action( 'shop_ct_log_add', $handle, $message );
     73    }
    7474
    7575
    76     /**
    77     * Clear entries from chosen file.
    78     *
    79     * @param mixed $handle
    80     */
    81     public function clear( $handle ) {
    82         if ( $this->open( $handle ) && is_resource( $this->_handles[ $handle ] ) ) {
    83             @ftruncate( $this->_handles[ $handle ], 0 );
    84         }
     76    /**
     77    * Clear entries from chosen file.
     78    *
     79    * @param mixed $handle
     80    */
     81    public function clear( $handle ) {
     82        if ( $this->open( $handle ) && is_resource( $this->_handles[ $handle ] ) ) {
     83            @ftruncate( $this->_handles[ $handle ], 0 );
     84        }
    8585
    86         do_action( 'shop_ct_log_clear', $handle );
    87     }
     86        do_action( 'shop_ct_log_clear', $handle );
     87    }
    8888
    8989    /**
     
    9191     * @return string
    9292     */
    93     public static function get_log_file_path( $handle ){
     93    public static function get_log_file_path( $handle ){
    9494        return trailingslashit( SHOP_CT_LOG_DIR ) . $handle . '-' . sanitize_file_name( wp_hash( $handle ) ) . '.log';
    9595    }
  • shopconstruct/trunk/includes/services/ajax/ajax-attributes.php

    r2094151 r2112924  
    219219
    220220
    221     Shop_CT_Template_Loader::get_template('admin/products/popup-attribute-row.view.php', compact('product', 'attribute'));
     221    \ShopCT\Core\TemplateLoader::get_template('admin/products/popup-attribute-row.view.php', compact('product', 'attribute'));
    222222    die;
    223223}
  • shopconstruct/trunk/includes/services/class-shop-ct-service-dashboard.php

    r1873194 r2112924  
    55    public static function display_static_content()
    66    {
    7         Shop_CT_Template_Loader::get_template('admin/dashboard/show.php');
     7        \ShopCT\Core\TemplateLoader::get_template('admin/dashboard/show.php');
    88    }
    99}
  • shopconstruct/trunk/includes/services/class-shop-ct-service-settings.php

    r1906014 r2112924  
    122122            ),
    123123            'shop_ct_default_customer_address'=>array(
    124                 'label'=>__('Default Customer Address','shop_ct'),
     124                'label'=>__('Customer Default Address','shop_ct'),
    125125                'section'=>'general',
    126126                'type'=>'select',
     
    142142            ),
    143143            'shop_ct_currency_pos'=>array(
    144                 'label'=>__('Currency Position','shop_ct'),
     144                'label'=>__('Currency Symbol Position','shop_ct'),
    145145                'section'=>'currency',
    146146                'type'=>'select',
  • shopconstruct/trunk/includes/services/emails/class-shop-ct-email-order-cancelled.php

    r1873194 r2112924  
    7777        $this->enabled = $this->get_option( 'status', 'yes' ) === 'yes' ? 'yes' : 'no';
    7878        $this->receivers = implode(', ', $this->get_option('receiver',array(get_option('admin_email'),'{customer}')));
    79         $this->description = $this->get_option('description', 'New order emails are sent to chosen recipient(s) when a new order is received.');
     79        $this->description = $this->get_option('description', 'Cancellation email is sent to chosen recipient(s) when the order is cancelled');
    8080        $this->subject = $this->get_option('subject', __('Order cancelled','shop_ct'));
    8181        $this->heading = $this->get_option('heading', __('Order cancelled','shop_ct'));
  • shopconstruct/trunk/includes/services/emails/class-shop-ct-email-order-customer-invoice.php

    r1873194 r2112924  
    5959    public function init() {
    6060        $this->enabled = $this->get_option( 'status', 'yes' ) == 'yes' ? 'yes' : 'no';
    61         $this->description = $this->get_option('description', 'New order emails are sent to chosen recipient(s) when a new order is received.');
     61        $this->description = $this->get_option('description', 'An email with the invoice is sent to chosen recipients when the order and payment processes are successfully completed');
    6262        $this->customer_subject = $this->get_option('customer_subject', __('Order Invoice','shop_ct'));
    6363        $this->customer_heading = $this->get_option('customer_heading', __('Order Invoice','shop_ct'));
  • shopconstruct/trunk/includes/services/emails/class-shop-ct-email-order-failed.php

    r1873194 r2112924  
    7373        $this->enabled = $this->get_option( 'status', 'yes' ) == 'yes' ? 'yes' : 'no';
    7474        $this->receivers = implode(', ', $this->get_option('receiver', array(get_option('admin_email'),'{customer}')));
    75         $this->description = $this->get_option('description', 'default');
     75        $this->description = $this->get_option('description', 'An email is sent to chosen recipient(s) when the order failed to proceed');
    7676        $this->subject = $this->get_option('subject', __('Order failed','shop_ct'));
    7777        $this->heading = $this->get_option('heading', __('Order failed','shop_ct'));
  • shopconstruct/trunk/includes/services/emails/class-shop-ct-email-order-refunded.php

    r1873194 r2112924  
    7777        $this->enabled = $this->get_option( 'status', 'yes' ) === 'yes' ? 'yes' : 'no';
    7878        $this->receivers = implode(', ', $this->get_option('receiver', array(get_option('admin_email'),'{customer}')));
    79         $this->description = $this->get_option('description', 'New order emails are sent to chosen recipient(s) when a new order is received.');
     79        $this->description = $this->get_option('description', 'An email is sent to chosen recipients when the order marked as refunded');
    8080        $this->subject = $this->get_option('subject', __('Order Refunded','shop_ct'));
    8181        $this->heading = $this->get_option('heading', __('Order Refunded','shop_ct'));
  • shopconstruct/trunk/includes/services/shortcodes/class-shop-ct-shortcode-cart-button.php

    r1906014 r2112924  
    1212        }
    1313        $cart = SHOP_CT()->cart_manager->get_cart();
    14         return Shop_CT_Template_Loader::get_template_buffer('frontend/cart/cart-button.view.php',compact('cart', 'isButton'));
     14        return \ShopCT\Core\TemplateLoader::get_template_buffer('frontend/cart/cart-button.view.php',compact('cart', 'isButton'));
    1515    }
    1616
  • shopconstruct/trunk/includes/services/shortcodes/class-shop-ct-shortcode-catalog.php

    r2094151 r2112924  
    1313        $categories = Shop_CT_Product_Category::get(array('parent' => 0));
    1414
    15         return Shop_CT_Template_Loader::get_template_buffer('frontend/catalog/index.view.php', compact('products', 'categories'));
     15        return \ShopCT\Core\TemplateLoader::get_template_buffer('frontend/catalog/index.view.php', compact('products', 'categories'));
    1616    }
    1717}
  • shopconstruct/trunk/includes/services/shortcodes/class-shop-ct-shortcode-category.php

    r2094151 r2112924  
    3030            $products = shop_ct_order_products($products);
    3131
    32             return Shop_CT_Template_Loader::get_template_buffer('frontend/product-category/show.view.php', compact('category', 'products', 'category_children'));
     32            return \ShopCT\Core\TemplateLoader::get_template_buffer('frontend/product-category/show.view.php', compact('category', 'products', 'category_children'));
    3333        }
    3434    }
  • shopconstruct/trunk/includes/services/shortcodes/class-shop-ct-shortcode-product.php

    r1873194 r2112924  
    1414        $product = new Shop_CT_Product($atts['id']);
    1515
    16         return Shop_CT_Template_Loader::get_template_buffer('frontend/product/show/index.view.php',compact('product'));
     16        return \ShopCT\Core\TemplateLoader::get_template_buffer('frontend/product/show/index.view.php',compact('product'));
    1717    }
    1818
  • shopconstruct/trunk/includes/services/shortcodes/class-shop-ct-shortcodes.php

    r2094151 r2112924  
    3636    {
    3737
    38         return Shop_CT_Template_Loader::get_template_buffer('frontend/sorting.view.php');
     38        return \ShopCT\Core\TemplateLoader::get_template_buffer('frontend/sorting.view.php');
    3939    }
    4040}
     
    4949            $args['currentCategoryId'] = absint($atts['current_category_id']);
    5050        }
    51         return Shop_CT_Template_Loader::get_template_buffer('frontend/filtering.view.php', $args);
     51        return \ShopCT\Core\TemplateLoader::get_template_buffer('frontend/filtering.view.php', $args);
    5252    }
    5353}
  • shopconstruct/trunk/includes/shop-ct-ajax.php

    r2094151 r2112924  
    1818        echo json_encode(array(
    1919            'success' => 1,
    20             'result' => Shop_CT_Template_Loader::get_template_buffer('frontend/product/list-items.view.php', compact('products')),
     20            'result' => \ShopCT\Core\TemplateLoader::get_template_buffer('frontend/product/list-items.view.php', compact('products')),
    2121            'paged' => $paged,
    2222            'totalPages' => $totalPages
     
    110110    $quantity = intval($_POST['quantity']);
    111111
    112     Shop_CT_Template_Loader::get_template('admin/orders/popup-item.view.php', compact('product', 'quantity', 'cost'));
     112    \ShopCT\Core\TemplateLoader::get_template('admin/orders/popup-item.view.php', compact('product', 'quantity', 'cost'));
    113113    die;
    114114}
     
    139139    echo json_encode(array(
    140140        'success' => 1,
    141         'return_html' => Shop_CT_Template_Loader::get_template_buffer('admin/orders/popup.view.php', compact('order', 'autoDraft', 'countries', 'customers', 'allProducts')),
     141        'return_html' => \ShopCT\Core\TemplateLoader::get_template_buffer('admin/orders/popup.view.php', compact('order', 'autoDraft', 'countries', 'customers', 'allProducts')),
    142142        'title' => $autoDraft ? __('Add Order', 'shop_ct') : sprintf('%s #%s', __('Order', 'shop_ct'), $order->get_id()),
    143143    ));
  • shopconstruct/trunk/readme.txt

    r2104151 r2112924  
    1 === ShopConstruct - Product catalog, shopping cart and eCommerce solution for store ===
     1=== ShopConstruct - Product Catalog, Shopping Cart and eCommerce solution for Store ===
    22Contributors: ShopConstruct
    33Donate link: https://shopconstruct.com/
    44Tags: eCommerce, shop, Catalog, store, e-commerce
    55Requires at least: 4.0.0
    6 Tested up to: 5.2.1
    7 Stable tag: 1.1.1
     6Tested up to: 5.2.2
     7Stable tag: 1.1.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1010
    11 An extremely flexible tool allowing managing online platform in one place.
     11Independent e-commerce plugin, working with any theme. Cart and Checkout functionality integrated!
    1212
    1313== Description ==
    1414
     15[ShopConstruct](https://showcaster.org/ "Shopping Cart and eCommerce solution for Store") | [Knowledge Base](https://docs.shopconstruct.com/) | [Support Forum](https://wordpress.org/support/plugin/shopconstruct/) | [Demos](https://shopconstruct.com/showcase "ShopConstruct Demos")
     16
    1517ShopConstruct is an online business and shopping platform that has all the options you need to create an eCommerce product catalog with various product catalogs, showcased beautifully. Being extremely easy to use eCommerce plugin allows to take control and manage all the shopping processes starting from the product catalog creation.
    1618
     
    2426
    2527The list allows filtering the eCommerce products added to product catalog by title, SKU and price.
     28
     29
     30### Demos
     31
     32[Fashion Clothes Store](https://shopconstruct.com/demo/clothes/ | [Virtual Tickets Store](https://shopconstruct.com/demo/tickets/)
    2633
    2734
     
    5360
    5461**Managing eCommerce orders**
     62
     63
     64**Ajax Filtering**
     65
     66No page loading or redirecting all the category, rating and price filters work with Ajax technology, without loading a page.
     67
    5568
    5669Besides receiving product catalog orders from the clients, using ShopConstruct it is very easy to create custom orders from the plugin dashboard/back-end. The listed orders are easily controlled, filtered and managed. The status of each order is showcased in the main list.
     
    151164
    152165
     166= Where to find themes for ShopConstruct? =
     167
     168* Use the theme you wish and you like the most. ShopConstruct doesn’t require any specific themes to create an eShop.ShopConstruct generates Category and Single product shortcodes to be added to any theme.
     169
     170
     171= How to add a single product? =
     172
     173* To add single product, go to plugin products section> click on the plus button. A popup window will open to fill in product details.
     174
     175
     176= How to add digital and downloadable products? =
     177
     178* To add digital and downloadable product, go to plugin products section> click on the plus button. After filling in the popup information, enable “Downloadable Product” option and upload the file itself.
     179
     180
     181= How to set up a PayPal? =
     182
     183* To set up PayPal, go plugin “Checkout” section, click on “Enable PayPal standard” and add your PayPal email.
     184
     185
     186= Can customers purchase products without using PayPal? =
     187
     188* The checkout process has 4 payment options which include PayPal, BACS, Cheque and Cash on Delivery.
     189
     190
     191= Can I sell digital products? =
     192
     193* Any kind of product type can be sold with the plugin. Starting from physical products which will be delivered to digital/downloadable products that can be downloaded.
     194
     195
     196= How to publish single product? =
     197
     198* To publish the product, copy its shortcode, add to post or page, click Publish button.
     199
     200
     201= How to publish products list? =
     202
     203* To publish product list, assign a category to products> copy category shortcode> add to post or page. Select “List” option from “Category Grid layout”.
     204
     205
     206= How to display / publish list of categories? =
     207
     208* To publish list of categories, copy all category shortcodes> add to a single post or page> publish it. Product categories will be displayed as albums.
     209
     210
     211= What's the difference between ShopConstruct Pro vs Free? =
     212
     213* Pro version includes “Style Settings” section with various styling options.
     214
     215
     216= What my user will see after he made a purchase? =
     217
     218* The user will see a confirmation message after the purchase. In case of downloadable products, your users will receive an email with a downloadable link.
     219
     220
     221== Screenshots ==
     222 
     22312.  Discover
     22413.  Dress Selection
     22514.  Snakers For Real Men
     22615.  Categories
     22716.  Bags
     22817.  Wallets
     22918.  Store Single Product
     23022.  Categories
     23123.  Retro Cinema
     23224.  Store Single Product
     233
     234
    153235== Changelog ==
     236
     237= 1.1.2 =
     238* Fixed conflict with coral-dark theme, which caused our popups' styles to be messed up
     239* Changed part of plugin's php codes to be PSR standards compliant
     240* Fixed checkout page styles
     241* Fixed popup overlays problem, which caused issues when opening popups one on another
     242* Fixed category popup parent selection problem
    154243
    155244= 1.1.1 =
  • shopconstruct/trunk/shop-construct.php

    r2104150 r2112924  
    33 * Plugin Name: ShopConstruct
    44 * Plugin URI: https://shopconstruct.com
    5  * Description: An extremely flexible tool allowing managing online platform in one place.
    6  * Version: 1.1.1
     5 * Description: Independent e-comemrce plugin, working with any theme. Cart and Checkout functionality integrated!
     6 * Version: 1.1.2
    77 * Author: ShopConstruct
    88 * Author URI: https://shopconstruct.com
     
    1212 */
    1313
     14use ShopCT\Core\Geolocation;
     15use ShopCT\Core\Locations;
     16
    1417if (!defined('ABSPATH')) {
    1518    exit; // Exit if accessed directly
     
    1720
    1821require 'config.php';
     22require_once(__DIR__ . DIRECTORY_SEPARATOR . "vendor" . DIRECTORY_SEPARATOR . "autoload.php");
    1923
    2024if (!class_exists('Shop_CT')) :
     
    3236         * @var string
    3337         */
    34         public $version = "1.1.1";
     38        public $version = "1.1.2";
    3539
    3640        public $license = 'free';
     
    5155         * Countries instance.
    5256         *
    53          * @var Shop_CT_Locations
     57         * @var Locations
    5458         */
    5559        public $locations = null;
     
    317321
    318322            Shop_CT_Post_types::init();
    319             Shop_CT_Geolocation::init();
     323            Geolocation::init();
    320324            Shop_CT_Shortcodes::init();
    321325
     
    335339            $this->settings = Shop_CT_Service_Settings::instance();
    336340
    337             $this->locations = new Shop_CT_Locations();
     341            $this->locations = new Locations();
    338342
    339343            $this->emails = new Shop_CT_Email();
  • shopconstruct/trunk/templates/admin/orders/popup-items.view.php

    r1873194 r2112924  
    2626        if (!empty($products)) {
    2727            foreach ( $order->get_products() as $product ) {
    28                 Shop_CT_Template_Loader::get_template('admin/orders/popup-item.view.php', array(
     28                \ShopCT\Core\TemplateLoader::get_template('admin/orders/popup-item.view.php', array(
    2929                    'product'=>$product['object'],
    3030                    'cost' => $product['cost'],
  • shopconstruct/trunk/templates/admin/orders/popup.view.php

    r1873194 r2112924  
    1717            <input type="hidden" name="post_data[post_status]" value="publish"/>
    1818            <input type="hidden" name="action" value="shop_ct_update_order"/>
    19             <?php Shop_CT_Template_Loader::get_template('admin/orders/popup-general.view.php', compact('order', 'customers')); ?>
    20             <?php Shop_CT_Template_Loader::get_template('admin/orders/popup-items.view.php', compact('order', 'allProducts')); ?>
    21             <?php Shop_CT_Template_Loader::get_template('admin/orders/popup-shipping.view.php', compact('order', 'countries')); ?>
    22             <?php Shop_CT_Template_Loader::get_template('admin/orders/popup-billing.view.php', compact('order', 'countries')); ?>
     19            <?php \ShopCT\Core\TemplateLoader::get_template('admin/orders/popup-general.view.php', compact('order', 'customers')); ?>
     20            <?php \ShopCT\Core\TemplateLoader::get_template('admin/orders/popup-items.view.php', compact('order', 'allProducts')); ?>
     21            <?php \ShopCT\Core\TemplateLoader::get_template('admin/orders/popup-shipping.view.php', compact('order', 'countries')); ?>
     22            <?php \ShopCT\Core\TemplateLoader::get_template('admin/orders/popup-billing.view.php', compact('order', 'countries')); ?>
    2323        </div>
    2424    </form>
  • shopconstruct/trunk/templates/admin/products/popup-attributes.view.php

    r1873194 r2112924  
    2525                    }
    2626                    $attribute = new Shop_CT_Product_Attribute(null,array('slug' => $attr_slug));
    27                     Shop_CT_Template_Loader::get_template('admin/products/popup-attribute-row.view.php', compact('product', 'attribute'));
     27                    \ShopCT\Core\TemplateLoader::get_template('admin/products/popup-attribute-row.view.php', compact('product', 'attribute'));
    2828                endforeach;
    2929            endif;
  • shopconstruct/trunk/templates/admin/products/popup-downloadable.view.php

    r1873194 r2112924  
    1414                if(!empty($files)):
    1515                    foreach($files as $file):
    16                         Shop_CT_Template_Loader::get_template('admin/products/popup-downloadable-row.view.php', compact('file'));
     16                        \ShopCT\Core\TemplateLoader::get_template('admin/products/popup-downloadable-row.view.php', compact('file'));
    1717                    endforeach;
    1818                else:
     
    2525                <td colspan="5">
    2626                    <button class="button-secondary product-add-downloadable-file"
    27                             data-row="<?php echo htmlspecialchars( Shop_CT_Template_Loader::get_template_buffer('admin/products/popup-downloadable-row.view.php') ); ?>"><?php _e( 'Add File', 'shop_ct' ); ?></button>
     27                            data-row="<?php echo htmlspecialchars( \ShopCT\Core\TemplateLoader::get_template_buffer('admin/products/popup-downloadable-row.view.php') ); ?>"><?php _e( 'Add File', 'shop_ct' ); ?></button>
    2828                </td>
    2929            </tr>
  • shopconstruct/trunk/templates/admin/products/popup-general.view.php

    r1873194 r2112924  
    3636            <span></span>
    3737        </label>
    38         <label for="post_data[comment_status]"><?php _e('Reviews Enabled', 'shop_ct'); ?></label>
     38        <label for="post_data[comment_status]"><?php _e('Enable Review', 'shop_ct'); ?></label>
    3939    </div>
    4040    <div class="shop-ct-field mat-input-checkbox">
     
    6565    <div class="shop-ct-field mat-input-text full-width">
    6666        <input name="post_meta[sale_price]" id="product_sale_price" value="<?= $product->get_sale_price(); ?>"/>
    67         <label for="product_sale_price"><?php _e('Sale Price', 'shop_ct'); ?>
     67        <label for="product_sale_price"><?php _e('Discounted Price', 'shop_ct'); ?>
    6868            (<?= Shop_CT_Currencies::get_currency_symbol(Shop_CT()->settings->currency); ?>)</label>
    6969        <span></span>
  • shopconstruct/trunk/templates/admin/products/popup.view.php

    r1873194 r2112924  
    1515            <input type="hidden" name="action" value="shop_ct_update_product"/>
    1616            <input type="hidden" id="product_name" name="post_data[post_name]" value="<?php echo $product->get_post_data()->post_name; ?>"/>
    17             <?php Shop_CT_Template_Loader::get_template('admin/products/popup-general.view.php', compact('product')); ?>
    18             <?php Shop_CT_Template_Loader::get_template('admin/products/popup-info.view.php', compact('product')); ?>
    19             <?php Shop_CT_Template_Loader::get_template('admin/products/popup-downloadable.view.php', compact('product')); ?>
    20             <?php Shop_CT_Template_Loader::get_template('admin/products/popup-taxonomy.view.php', compact('product')); ?>
    21             <?php Shop_CT_Template_Loader::get_template('admin/products/popup-attributes.view.php', compact('product')); ?>
    22             <?php Shop_CT_Template_Loader::get_template('admin/products/popup-inventory.view.php', compact('product')); ?>
    23             <?php Shop_CT_Template_Loader::get_template('admin/products/popup-shipping.view.php', compact('product')); ?>
    24             <?php Shop_CT_Template_Loader::get_template('admin/products/popup-seo.view.php', compact('product')); ?>
     17            <?php \ShopCT\Core\TemplateLoader::get_template('admin/products/popup-general.view.php', compact('product')); ?>
     18            <?php \ShopCT\Core\TemplateLoader::get_template('admin/products/popup-info.view.php', compact('product')); ?>
     19            <?php \ShopCT\Core\TemplateLoader::get_template('admin/products/popup-downloadable.view.php', compact('product')); ?>
     20            <?php \ShopCT\Core\TemplateLoader::get_template('admin/products/popup-taxonomy.view.php', compact('product')); ?>
     21            <?php \ShopCT\Core\TemplateLoader::get_template('admin/products/popup-attributes.view.php', compact('product')); ?>
     22            <?php \ShopCT\Core\TemplateLoader::get_template('admin/products/popup-inventory.view.php', compact('product')); ?>
     23            <?php \ShopCT\Core\TemplateLoader::get_template('admin/products/popup-shipping.view.php', compact('product')); ?>
     24            <?php \ShopCT\Core\TemplateLoader::get_template('admin/products/popup-seo.view.php', compact('product')); ?>
    2525        </div>
    2626    </form>
  • shopconstruct/trunk/templates/frontend/cart/show.view.php

    r1995995 r2112924  
    2929        $products = $cart->get_products();
    3030        if(empty($products)):
    31             Shop_CT_Template_Loader::get_template('frontend/cart/no-items.view.php');
     31            \ShopCT\Core\TemplateLoader::get_template('frontend/cart/no-items.view.php');
    3232            else:
    33             Shop_CT_Template_Loader::get_template('frontend/cart/cart-items.view.php',compact('cart', 'products'));
     33            \ShopCT\Core\TemplateLoader::get_template('frontend/cart/cart-items.view.php',compact('cart', 'products'));
    3434        endif;
    3535        ?>
  • shopconstruct/trunk/templates/frontend/catalog/index.view.php

    r2059587 r2112924  
    1717       echo '<h2>' . __("Product Categories", "shop_ct") . '</h2>';
    1818
    19         Shop_CT_Template_Loader::get_template('frontend/product-category/list.view.php', compact('categories'));
     19        \ShopCT\Core\TemplateLoader::get_template('frontend/product-category/list.view.php', compact('categories'));
    2020    }
    2121
     
    2626       echo '<h2>' . __("Products", "shop_ct") . '</h2>';
    2727
    28         Shop_CT_Template_Loader::get_template('frontend/product/list.view.php', compact('products'));
     28        \ShopCT\Core\TemplateLoader::get_template('frontend/product/list.view.php', compact('products'));
    2929    }
    3030
  • shopconstruct/trunk/templates/frontend/checkout/billing-details.view.php

    r1879086 r2112924  
    44 * @var $countries array
    55 */
    6 $current_location = Shop_CT_Geolocation::geolocate_ip()['country'];
     6$current_location = \ShopCT\Core\Geolocation::geolocate_ip()['country'];
    77?>
    88<div class="shop_ct_checkout_sections billing_section">
  • shopconstruct/trunk/templates/frontend/checkout/shipping-details.view.php

    r1873194 r2112924  
    44 * @var $countries array
    55 */
    6 $current_location = Shop_CT_Geolocation::geolocate_ip()['country'];
     6$current_location = \ShopCT\Core\Geolocation::geolocate_ip()['country'];
    77?>
    88<div class="shop_ct_checkout_sections shipping_section">
  • shopconstruct/trunk/templates/frontend/checkout/show.template.view.php

    r1879086 r2112924  
    66?>
    77    <div class="--container shop-ct">
    8         <?php Shop_CT_Template_Loader::get_template('frontend/checkout/show.view.php',compact('cart','countries')); ?>
     8        <?php \ShopCT\Core\TemplateLoader::get_template('frontend/checkout/show.view.php',compact('cart','countries')); ?>
    99    </div>
    1010<?php
  • shopconstruct/trunk/templates/frontend/checkout/show.view.php

    r2025478 r2112924  
    1515                <input type="hidden" name="action" value="shop_ct_checkout" />
    1616                <?php
    17                 Shop_CT_Template_Loader::get_template('frontend/checkout/billing-details.view.php',compact('cart','countries'));
     17                \ShopCT\Core\TemplateLoader::get_template('frontend/checkout/billing-details.view.php',compact('cart','countries'));
    1818                if($cart->requires_delivery()):
    19                     Shop_CT_Template_Loader::get_template('frontend/checkout/shipping-details.view.php',compact('cart','countries'));
     19                    \ShopCT\Core\TemplateLoader::get_template('frontend/checkout/shipping-details.view.php',compact('cart','countries'));
    2020                endif;
    21                 $current_location = Shop_CT_Geolocation::geolocate_ip()['country'];
     21                $current_location = \ShopCT\Core\Geolocation::geolocate_ip()['country'];
    2222                $zone = Shop_CT_Shipping_Zone::get_zone_by_location($current_location);
    2323                $shipping_cost = false !== $zone ? $zone->get_cost() : 0;
    24                 Shop_CT_Template_Loader::get_template('frontend/checkout/order-items.view.php',compact('cart', 'zone', 'shipping_cost'));
    25                 Shop_CT_Template_Loader::get_template('frontend/checkout/payment-methods.view.php',compact('cart', 'zone', 'shipping_cost'));
     24                \ShopCT\Core\TemplateLoader::get_template('frontend/checkout/order-items.view.php',compact('cart', 'zone', 'shipping_cost'));
     25                \ShopCT\Core\TemplateLoader::get_template('frontend/checkout/payment-methods.view.php',compact('cart', 'zone', 'shipping_cost'));
    2626                ?>
    2727            </form>
  • shopconstruct/trunk/templates/frontend/product-category/index.view.php

    r1879086 r2112924  
    77<div class="--container shop-ct">
    88
    9     <?php Shop_CT_Template_Loader::get_template('frontend/product-category/list.view.php', compact('categories')) ?>
     9    <?php \ShopCT\Core\TemplateLoader::get_template('frontend/product-category/list.view.php', compact('categories')) ?>
    1010
    1111</div>
  • shopconstruct/trunk/templates/frontend/product-category/show.template.view.php

    r2094151 r2112924  
    1010get_header('blog');
    1111
    12 Shop_CT_Template_Loader::get_template(
     12\ShopCT\Core\TemplateLoader::get_template(
    1313    'frontend/product-category/show.view.php',
    1414    compact('category', 'category_children','products', 'paged', 'totalPages' )
  • shopconstruct/trunk/templates/frontend/product-category/show.view.php

    r2094151 r2112924  
    3030        }
    3131
    32         Shop_CT_Template_Loader::get_template('frontend/product-category/list.view.php', array('categories' => $category_children));
     32        \ShopCT\Core\TemplateLoader::get_template('frontend/product-category/list.view.php', array('categories' => $category_children));
    3333    }
    3434
     
    4545        </div>
    4646        <div class="shop-ct-side-main">
    47             <?php Shop_CT_Template_Loader::get_template('frontend/product/list.view.php', compact('products', 'paged', 'totalPages')); ?>
     47            <?php \ShopCT\Core\TemplateLoader::get_template('frontend/product/list.view.php', compact('products', 'paged', 'totalPages')); ?>
    4848        </div>
    4949    </div>
  • shopconstruct/trunk/templates/frontend/product/list.view.php

    r2094151 r2112924  
    88?>
    99<div class="shop_ct_category_products_container shop-ct-product-grid shop-ct-prod-grid-infinte-scroll" data-paged="<?php echo $paged; ?>" data-total="<?php echo $totalPages; ?>">
    10     <?php Shop_CT_Template_Loader::get_template('frontend/product/list-items.view.php', compact('products')); ?>
     10    <?php \ShopCT\Core\TemplateLoader::get_template('frontend/product/list-items.view.php', compact('products')); ?>
    1111</div><!-- .shop_ct_category_products_container -->
    1212<?php //the_posts_pagination( array(
  • shopconstruct/trunk/templates/frontend/product/show/index.template.view.php

    r2049359 r2112924  
    66?>
    77    <div class="--container shop-ct">
    8         <?php Shop_CT_Template_Loader::get_template('frontend/product/show/index.view.php', compact('product')); ?>
     8        <?php \ShopCT\Core\TemplateLoader::get_template('frontend/product/show/index.view.php', compact('product')); ?>
    99    </div>
    1010<?php
  • shopconstruct/trunk/templates/frontend/product/show/index.view.php

    r2025478 r2112924  
    1010}
    1111
    12 $current_location = Shop_CT_Geolocation::geolocate_ip()['country'];
     12$current_location = \ShopCT\Core\Geolocation::geolocate_ip()['country'];
    1313$current_location_name = SHOP_CT()->locations->get_country_name_by_code($current_location);
    1414if (!empty($current_location)) {
     
    3636        <div id="shop_ct_product_entry_info">
    3737            <!-- Product Images -->
    38             <?php Shop_CT_Template_Loader::get_template('frontend/product/show/layouts/images.view.php', compact('product')); ?>
     38            <?php \ShopCT\Core\TemplateLoader::get_template('frontend/product/show/layouts/images.view.php', compact('product')); ?>
    3939            <div id="shop_ct_product_meta_details">
    4040                <!-- Product Heading -->
    41                 <?php Shop_CT_Template_Loader::get_template('frontend/product/show/layouts/heading.view.php', compact('product')); ?>
     41                <?php \ShopCT\Core\TemplateLoader::get_template('frontend/product/show/layouts/heading.view.php', compact('product')); ?>
    4242                <!-- Meta Info -->
    43                 <?php Shop_CT_Template_Loader::get_template('frontend/product/show/layouts/metainfo.view.php', compact('product', 'current_location', 'current_location_name', 'shipping_zone')); ?>
     43                <?php \ShopCT\Core\TemplateLoader::get_template('frontend/product/show/layouts/metainfo.view.php', compact('product', 'current_location', 'current_location_name', 'shipping_zone')); ?>
    4444
    4545                <!-- Product excerpt -->
     
    4848                </div>
    4949                <!-- Product purchase -->
    50                 <?php Shop_CT_Template_Loader::get_template('frontend/product/show/layouts/purchase.view.php', compact('product', 'shipping_zone')); ?>
     50                <?php \ShopCT\Core\TemplateLoader::get_template('frontend/product/show/layouts/purchase.view.php', compact('product', 'shipping_zone')); ?>
    5151            </div>
    5252        </div>
     
    147147                $active_section = true;
    148148            } ?> id="shop_ct_product_reviews">
    149                 <?php Shop_CT_Template_Loader::get_template('frontend/product/show/layouts/comments.view.php', compact('product')); ?>
     149                <?php \ShopCT\Core\TemplateLoader::get_template('frontend/product/show/layouts/comments.view.php', compact('product')); ?>
    150150            </section>
    151151        <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.