Latest Sage 9, Blade, and WooCommerce

Thanks, this helped me think about the problem more clearly. I removed the Woocommerce templates I’d created and started over and made some progress.

I have the following in resources/views/woocommerce/archive-product.php and resources/views/woocommerce/single-product.php

<?php echo App\Template('woocommerce');

And when I try to view any shop page, I get a 504 Gateway Time-out error.

So it seems to me like something’s changed since Beta 2. I’ll keep digging but any insight from the team would be great.

EDIT NEVER MIND I’M AN IDIOT:

Here’s what I had in resources/views/woocommerce.blade.php

@extends('layouts.app')

@section('content')
  @while(have_posts()) @php(the_post())
	@php(woocommerce_content())
  @endwhile
@endsection

The keener-eyed among you will notice that I left the while loop in there despite every piece of documentation on the subject saying to take it out.

Taking it out fixed the problem.

1 Like