2017 © Pedro Peláez
 

library sage-woocommerce-support

Add Woocommerce blade template and controllers support for Sage 9 based themes.

image

kimhf/sage-woocommerce-support

Add Woocommerce blade template and controllers support for Sage 9 based themes.

  • Monday, May 7, 2018
  • by kimhf
  • Repository
  • 3 Watchers
  • 5 Stars
  • 116 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 152 % Grown

The README.md

Sage Woocommerce Support

Add Woocommerce blade template and controllers support for Sage 9 based themes., (*1)

Installation

Run inside theme directory., (*2)

composer require kimhf/sage-woocommerce-support, (*3)

Requirements

PHP 7.1 or above, (*4)

Usage

Example: To override the template plugins/woocommerce/templates/single-product.php create themes/yoursagetheme/resources/views/single-product.blade.php or themes/yoursagetheme/resources/views/woocommerce/single-product.blade.php, (*5)

Example: To override the partial plugins/woocommerce/templates/content-product.php create themes/yoursagetheme/resources/views/partials/content-product.blade.php or themes/yoursagetheme/resources/views/woocommerce/content-product.blade.php or themes/yoursagetheme/resources/views/content-product.blade.php, (*6)

Details

The package will look for templates in the paths defined in the Sage config view.paths. It will search for both .php and .blade.php files., (*7)

Data from controllers and args from woocommerce will always be added to blade templates, even if you mix usage between php and blade templates., (*8)

With default Sage and WooCommerce config:

A template from the template hierarchy will loaded from resources/views/woocommerce or resources/views as entry template. (WC_Template_Loader will only load the empty resources/index.php in this case.), (*9)

wc_get_template() Will with default config look inside resources/views/woocommerce and resources/views. $args added by Woocommerce will take priority over controller data if there are any conflicts., (*10)

wc_get_template_part() Will with default config look inside resources/views/woocommerce, resources/views/partials and resources/views., (*11)

wc_get_template_html() Is not supported., (*12)

The Versions

07/05 2018

dev-master

9999999-dev

Add Woocommerce blade template and controllers support for Sage 9 based themes.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

wordpress theme blade woocommerce sage

07/05 2018

v9.0.3

9.0.3.0

Add Woocommerce blade template and controllers support for Sage 9 based themes.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

wordpress theme blade woocommerce sage

07/05 2018

v9.0.2

9.0.2.0

Add Woocommerce blade template and controllers support for Sage 9 based themes.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

wordpress theme blade woocommerce sage

06/05 2018

v9.0.1

9.0.1.0

Add Woocommerce blade template and controllers support for Sage 9 based themes.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

wordpress theme blade woocommerce sage

05/05 2018

v9.0.0

9.0.0.0

Add Woocommerce blade template and controllers support for Sage 9 based themes.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

wordpress theme blade woocommerce sage