shopify / shopify-scripts Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi
It seems it's not possible to use your "Out of Europe VAT Exempt" script when buying giftcards only?
When I buy any other product with the giftcard everything is fine though.
I took out this line:
Thanks for your hard work on these scripts, I hope you can help us out. :)
Best
// Toreheimann
Unable to duplicate scripts on store, getting "Failed to duplicate the script" error message. Showing 422 error in Console
EB: Duplicating a script will create a duplicate
AB: Duplicating a script will result in an error message & 422 error
Duplicate
Failed to duplicate the script; refresh or try agin later
messageError shows for every script I tested on the merchants store
I can't replicate the error on my test store with existing scripts or when I copy the merchants script over to my store
Zendesk Ticket
@Shopify/scripts
Scripts are limited to the Online Store channel only:
Scripts are not supported and do not fire in the wholesale channel checkout
Scripts do not fire when used in conjunction with the Buy Button
Scripts do not fire when sending a draft order invoice to a customer
Note: Scripts DO fire if using checkout permalinks
Part of Shopify's appeal is the ability to leverage all the amazing OOB features that Shopify provides such as cart/checkout/order management. Yet, the inability to run Shopify Scripts on a Shopify Plus store's Storefront API channel is really misleading to how much the Storefront API can be used to create a complex custom storefront experience.
Why do the Shopify Scripts only run on the cart object?
Since the Storefront API skips the creation of a cart object and creates a checkout object, why can't Shopify allow the scripts to run on the checkout object for all channels besides the Online Store channel?
I would love to be able to leverage Shopify to its full capabilities.
A lot of merchants have requirements which exceed the features of the Wholesale Channel, so that's not an option for them.
However, when introduced to the Wholesale Channel, they love the easy configurability of the customer groups and discount options. Of course, once they see both, they want both.
In the interim, a great workaround would be to expose the Theme Settings attributes to Scripts, allowing the merchant to manage discounting tiers and values from a better UI, which we'd have access to in the Scripts.
Without this, they can only edit variables by digging into the code itself. As intuitive as we try to make this by putting it all in variables at the top of our scripts, it feels very stop-gap and makes the merchant nervous about having to dig into code, which is detrimental to their experience and confidence.
How can this work so that only one variant of a product is free. Currently all variants of the product get added as free.
I'm looking for a way to implement this script after all other discounts are taken.
For example, if Product A cost $200 and a coupon is used to save $50, I would like the script to discount this percentage off of the fully discounted price of $150, not on the full price of $200.
Is there a line I can add to accomplish this?
A script error is appearing when running a script twice: "Failed to run the script; refresh or try again later"
Identified on 2 stores
https://shinesty.myshopify.com/admin/apps/d25e45407e508f96409c2dd796e9bd95/scripts/6848527
https://shinesty.myshopify.com/admin/apps/d25e45407e508f96409c2dd796e9bd95/scripts/46923845
Screencast:
https://www.loom.com/share/25a6d9c71c214805a22c8fc306f56900
Expected: Should save and run without error
Actual: Save shows error, 2nd run script also shows error. (workaround steps at bottom)
This happens even on a script with nothing except Output.cart = Input.cart
in the code
Workaround for now is:
When adding a product to the cart input, save the script first. Once it's saved, running the script multiple times will work
Zendesk ticket 1
Zendesk ticket 2
@Shopify/scripts
Hi,
We have recently hit an issue with the Bundles App; when you view the JSON product object for the Bundle, there is no reference to any 'other products' in the bundle, just the (maximum of) 3 products with options.
This means the PDP (Shopify frontend product page) will only display 3 items - without manually adding those as a metafield object and hacking them in. Short of making a proxy app and requesting them via the API, there is no way to view the whole bundle.
Is there any plan to resolve this? The first question a client will ask is 'where's the rest? I only see part of the Bundle'
The cart transform and checkout displays the components correctly.
Hi,
Thank you for your work.
Form the read me it seems as though the shipping price is only meant to change to free when all of the items in the cart are tagged with the "freeship" tag. This doesn't seem to be the case. When one tagged "freeship" item is in the cart then the shipping is changed to free regardless of whether there are other products in the cart that are not tagged with "freeship".
I saw in the repo's Noteworthy Limitations here that Scripts DO fire if using checkout permalinks
, but that doesn't seem to be the case.
I have a sample script here that updates the pricing of a specific product if it meets the criteria:
for line_item in Input.cart.line_items do
if line_item.variant.skus.include?("KIT_SKU")
if line_item.quantity > 2
new_line_item = line_item.split(take: 2)
new_line_item.change_line_price(Money.new(cents: 100) * 350, message: "2 Kit Bundle")
Input.cart.line_items << new_line_item
elsif line_item.quantity == 2
line_item.change_line_price(Money.new(cents: 100) * 350, message: "2 Kit Bundle")
end
end
end
Output.cart = Input.cart
In the Script Editor, the Script had no errors and I was able to run the script and the result was as expected.
Can I get some help with this or confirm if Shopify Scripts are running for checkout permalinks? Thanks!
Hi
When I use Script: BuyOne_Load FX chain on selected objects via file dialogue (guide inside).lua only half of the track is rendered. When I load FX Chain in the normal way it is fine.
Can you help? This is a recent problem Script worked fine unto now
I have the latest Reaper running Native on a MacMini M1 latest MacOs
Cheers
Andy
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.