Giter VIP home page Giter VIP logo

sage-woocommerce's Introduction

Some stats about my activity on GitHub

sage-woocommerce's People

Contributors

mattsims avatar smarteist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sage-woocommerce's Issues

Overriding templates in WooCommerce plugins

This doesn't appear to work for overriding templates in WooCommerce plugins, only those in WooCommerce core. I believe I've identified the issue, so will fix and update PR ๐Ÿ‘

Sage 10 child theme errors - "Unrecognized extension in file"

Hi guys.

I'm getting an "Unrecognized extension in file" error on the archive and single product page when trying to use smarteist/sage-woocommerce and the latest Sage 10 (April 2021) with a simple child theme (only has functions.php and style.css).

The archive and single templates are working fine when the parent theme is the active theme. My other templates seem to be working fine with the child theme active.

I'm not great with blade and have a project relying on me solving this ASAP so any help would be amazing. I'm sure I'm doing something dumb.

Have you had experience with this or have any suggestions?

Here is an example of the single-product.blade.php file:

@extends('layouts.app')

@section('content')
  @php
    do_action('get_header', 'shop');
    do_action('woocommerce_before_main_content');
  @endphp

  @while(have_posts())
    @php
      the_post();
      do_action('woocommerce_shop_loop');
      wc_get_template_part('content', 'single-product');
    @endphp
  @endwhile

  @php
    do_action('woocommerce_after_main_content');
    do_action('get_sidebar', 'shop');
    do_action('get_footer', 'shop');
  @endphp
@endsection

This is the error I'm getting:

InvalidArgumentException thrown with message "Unrecognized extension in file: home2/root/template/wp-content/themes/theme-name-child-copy/../theme-name/resources/views/woocommerce/archive-product."Stacktrace:#7 InvalidArgumentException in /home2/root/template/wp-content/themes/theme-name/vendor/illuminate/view/Factory.php:291#6 Illuminate\View\Factory:getEngineFromPath in /home2/root/template/wp-content/themes/theme-name/vendor/illuminate/view/Factory.php:260#5 Illuminate\View\Factory:viewInstance in /home2/root/template/wp-content/themes/theme-name/vendor/illuminate/view/Factory.php:122#4 Illuminate\View\Factory:file in /home2/root/template/wp-content/themes/theme-name/vendor/roots/acorn/src/helpers.php:432#3 Roots\view in /home2/root/template/wp-content/themes/theme-name/index.php:23#2 include in /home2/root/template/wp-includes/template-loader.php:106#1 require_once in /home2/root/template/wp-blog-header.php:19#0 require in /home2/root/template/index.php:17

Undefined function with acorn command

Steps to reproduce:

Themes directory:

git clone --depth=1 [email protected]:roots/sage.git fb &&  cd fb && rm -rf .git
Yarn && yarn build

Activate theme in WP editor.

In trellis directory:

Vagrant ssh
cd /srv/www/my-site/current/
wp acorn package:discover
wp acorn vendor:publish --tag="woocommerce"

Then, I get:

In VendorPublishCommand.php line 277:
Call to undefined function Illuminate\Foundation\Console\base_path() 

Captura de pantalla 2021-06-08 a las 8 42 59

Also, when I add:

/*
 * Package Service Providers...
 */
Hexbit\Woocommerce\Providers\WooCommerceServiceProvider::class,

Then, I can't publish anything with acorn command. It returns "Call to undefined function" error, even in another packages like poet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.