Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on creating script tags #47

Open
talhakhan-softtech opened this issue Sep 27, 2018 · 0 comments
Open

Issue on creating script tags #47

talhakhan-softtech opened this issue Sep 27, 2018 · 0 comments

Comments

@talhakhan-softtech
Copy link

talhakhan-softtech commented Sep 27, 2018

I am using this code to add script tag in my store front
$src = "https://1d1d24b9.ngrok.io/new_prj/shopify.js"; $script = $shopify('POST', '/admin/script_tags.json', array( "script_tag"=> array( "event"=>"onload", "src"=>"$src" )));
but i am getting this error :
Notice: Undefined offset: 1 in /opt/lampp/htdocs/new_prj/vendor/phpish/http/http.php on line 13 Fatal error: Uncaught phpish\shopify\CurlException: [3] <url> malformed in /opt/lampp/htdocs/new_prj/edit_product.php on line 26 thrown in /opt/lampp/htdocs/new_prj/vendor/phpish/shopify/shopify.php on line 66

Can any one explain this how can i add script tag on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant