Skip to content

Issue on creating script tags #47

@talhakhan-softtech

Description

@talhakhan-softtech

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions