問題タブ [shopify-app]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
252 参照

javascript - Shopify newsletter signup popup for first visitors

I'm going to add a newsletter signup popup for my shopify site. I know there are a lot of shopify apps that support this feature. But I'm going to add it without shopify apps because I need Ometria integrated. (All shopify apps don't have the feature)

So the problem is I need to check for visitors if they are first visitors or not. Then I can create a popup dialog that has newsletter form using any jQuery popup dialog plugins.

Or if there are a free shopify app that has the feature which shows the popup dialog for first visitors and can be added a custom form using HTML not their own form builder.

Can anyone help me?

0 投票する
0 に答える
256 参照

jquery - Shopify Liquid テンプレート内に複数のスパンを挿入する

NodeJSでjqueryを使用して、Shopifyのsections/product-template.liquidテンプレート内のプレースホルダーとして、異なる場所に3つのスパンを追加したいと考えています。

テンプレートはこんな感じ。

上記のdiv、p、spanの中にそれぞれ1つのスパンを追加したい。

上記の完全な文字列を jQuery に変換すると、クラス 'product-template__container' を持つ div のみにアクセスできますが、{%...%} 内で条件付きでレンダリングされる他の要素にはアクセスできません。

条件要素にスパンを追加するにはどうすればよいですか?

0 投票する
1 に答える
47 参照

ruby-on-rails - 本番環境のサブディレクトリにある Rails アプリが、shopify ストアをインストールするために適切にリダイレクトされない

localhost:3000 を使用して、shopify ストアをインストールして操作することができました。ただし、サブディレクトリ (www.website.com/app_name) にある本番環境にデプロイすると、ショップの「ログイン」はサブディレクトリではなくルートにリダイレクトされます。Shopify アプリのダッシュボードでリダイレクト URL をホワイトリストに登録しました。

omn​​iauth.rb で

routes.rb 内

上記のコードとは別に、shopify の設定はジェネレーターが作成したものです。これを修正する方法のアイデアはありますか?

タンク!