Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I am using the following plugin https://github.com/osiset/laravel-shopify for my larval Shopify app but everytime I try to add another view to the route I am getting a MissingShopingDomain Error.
I'm not sure what is causing this if its something the way my routes are being written or what's in the script tags in each of the blade templates. Thanks!
web.php
<?phpuse Illuminate\Support\Facades\Route;Route::middleware(["auth.shopify"])->group(function(){Route::view("/","welcome");Route::view("/settings","settings");});
@extends('shopify-app::layouts.default')@section('content')@endsection@section('scripts')@endsection
@extends('default')@section('content')<p> This is the welcome page </p><a href="/settings"> Go to settings</a>@endsection@section('scripts')@parent<script type="text/javascript">var AppBridge = window['app-bridge'];var actions = AppBridge.actions;var TitleBar = actions.TitleBar;var Button = actions.Button;var Redirect = actions.Redirect;var titleBarOptions = {title: 'Welcome',};var myTitleBar = TitleBar.create(app, titleBarOptions);</script>@endsection
@extends('default');@section('content')<p> This is the Settings page </p><a href="/"> Go back to welcome</a>@endsection@section('scripts')@parent<script type="text/javascript">var AppBridge = window['app-bridge'];var actions = AppBridge.actions;var TitleBar = actions.TitleBar;var Button = actions.Button;var Redirect = actions.Redirect;var titleBarOptions = {title: 'Welcome',};var myTitleBar = TitleBar.create(app, titleBarOptions);</script>@endsection
Same, shopify + php is : 💩
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024