smarteist / sage-woocommerce Goto Github PK
View Code? Open in Web Editor NEWWoocommerce support for sage 10
Woocommerce support for sage 10
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 ๐
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
Unfortunately I am getting this warning:
Warning: Illegal offset type in isset or empty in /app/wp-content/themes/my-sage-theme-name/vendor/illuminate/view/FileViewFinder.php on line 71
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()
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.