PurpleMamba
Shopify Partner
Contact Me
Status
Offline
Last Activity
‎03-12-2024 05:35 PM
Topic Started
7
Topics Started
Topic Solutions
2
Solutions
Post Count
119
Posts
Post Kudos
16
Likes

Community Badges

I'm creating refunds from my app for specific orders. When I run the refund call, the refund seems to be successful in that it is shown as persisted. But when i check in Shopify the order is unchang...
This new Inventory API system is confusing to say the least, and all the documentation I've seen on it so far references getting all inventory levels, or all inventory levels from a location, but non...
I have a scripttag that I load into the store using the shopify_app initializer within my app like this: config.scripttags = [{event: 'onload', src: "https://theappname.herokuapp.com/scripts/mys...
I have an app built and one of the webhooks keeps returning a 401 error when the app is installed on a shop. app/uninstalled is the culprit. The other webhooks I have are all good. I got so fru...
My scripts ran fine before, but since January 4th, I've been seeing production errors on every script I run in the Script Editor app. The scripts themselves have no errors. The first ...
I am using the JS Buy SDK in a snippet that I include in the theme.liquid file, and creating the shop client like this: var shopClient = ShopifyBuy.buildClient({ accessToken: "{{sett...
I'm making a call to the JS Buy SDK to look up and return a product's details by product handle. I first create the shop client like this: var storeDomain = "{{settings.store_domain}}";var...
I have a problem with the Shopify omniauth-shopify-oauth2 gem in my app. It works fine in my local environment but on heroku it returns a 500 error. Here is what I have in my logs: 2017-08-07...
I have a rails app, and on the trontend of the Shopify store it displays content through the AppProxy at: https://storename.myshopify.com/apps/my-app/ If I have a link in my rails app, for e...
When I create a new record in my app from the embedded interface in a store, the app does not redirect to the newly created record. The usual rails redirect_to method isn't working, inst...
The docs say to do this to start the session: session = ShopifyAPI::Session.new("SHOP_NAME.myshopify.com", token) Then this to activate the session: ShopifyAPI::Base.activate_session(se...
I've created an embedded app and installed it on the store that I'm testing on. The install went fine, but only after I changed the redirection url of my app from https to http. (Don't know why, but&...
I have been using all_products to fetch a specific product's variant id, so I can then make an ajax call to add it to cart when needed. I have this code to get the variant id: {% assign ...
Let's say I search for the email "ivan@drago.net" I expect to get back the exact match for that email, but if there is also a record for "ivan+2@drago.net" and/or "ivan+mustbreakyou@drago.net" t...
A brief recap of how I got to the point that I am now: I intitially created a public app, (not listed), but since the app I'm working on deals with discounts through the API, I was told by Sh...
Is it possible to make an API call to the Customer API from a liquid file? I will have the customer enter an email address, then make an API call to look for an account with that email addres...
I'm trying to change the customer sign-up for our store to the beginning of the checkout process (Customer Information page) and not after a checkout is completed (Thank you page). Why on ear...
Is it possible to hide a product from the store but still be able to add that product to the cart? I am trying to use a product that I have set at $0.00 as a free gift at checkout, but don't want ...
I have a little liquid code that filters out products with the product type "Gift Card". {% for item in cart.items %} {% if item.product.type == 'Gift Card' %} {% assign itemQuantity = ite...
I have this code that I'm using to add an item to cart through the AJAX API. function updateCartAttributes(data, callback) { var params = { type: 'POST', url: '...
Hi, I've been using the AJAX API to add a free gift to the cart. It works well when a customer views the cart first before going to checkout. But with the way the checkout process is set up, most ...
I am building an app, which would show the customer information when they are logged in to their customer account. The info is tied to their customer ID, which is why they would need to be ...
I have been using the AJAX API to add an item to the cart. It was working fine, now it doesn't work anymore. I haven't changed anything since I set it up last week. I'm using /cart/update.js Th...
I have received conflicting information and at this point don't know which is correct. My app is going to interact with the Discount API. The store main store is a Plus store and I have contacted ...
I am building my first Shopify App with the ShopifyApp gem and I don't know what to do with the Home view & controller generated by the gem. Is it safe to remove them and just use my app's view &...
No content to show

User Activity

I'm trying to fetch transactions from specific orders via the API. I am making calls to the Transactions endpoint. My request works fine for all orders except any orders made through Shop Pay. For all other orders a call to Transactions endpoint retu...
I was really hoping this would work but unfortunately just get nil for transactions back from the refund calculate step.
@dmwwebartisan I tried this trick but still have the issue in Safari.
@oscprofessional Thanks for your response.Here's what I have so far:1. Videos are H.264 MP4 format.2. I am also supplying WebM but Safari only supports MP4 & MOV formats, so unfortunately that doesn't help in this case.3. MIME types are set.4. Autopl...
For the past several months we've had problems with Safari when it comes to MP4 videos. Videos play fine in other browsers, just Safari on both iOS & Mac. For the most part this affects any site visitors with iOS 15 or above,  What users see is a bla...
Did you find a solution for this?
Can you explain how you showed the color swatches instead of the standard checkbox?
Ha! Thanks @PaulNewton 
@playwright-mike I tried to implement similar code to yours and keep getting this error: "Float can't be coerced into Money". Any idea what that's about?
@Alexgvb There is now a Files API for this. This workaround was only necessary before the Files API was released. 
That's a much cleaner way of doing it for sure. I'll have to refactor for a similar set up.Thanks again!
I got it working. It wasn't the single-quotes. That actually had no effect which told me something else was wrong.I had to pass in the variables in the result line, like this:  # Get an order by order name field query = ShopifyAPI::GraphQL.client....
Hi @HunkyBill thanks for answering!I tried that, and it didn't change the result unfortunately. Still not getting back the queried order.
I'm trying to look up an order by name, this is my code  # Get an order by order name field query = ShopifyAPI::GraphQL.client.parse <<-'GRAPHQL' query($query: String) { orders(first: 1, query: $query) { edges { node { ...
My Accepted Solutions
This widget could not be displayed.
This widget could not be displayed.