No content to show
User Activity
01-06-2025
Hello, i'm in a situation where my local machine went off rails so i had to format it.This means i lost some code that were not pushed to my version control (GIT) ... The problem is the Shopify version has an extension named "discount-bundle", the wh...
I can add "sections" to the request like so: (saw this in the original request from the normal add to cart button)fetch(window.Shopify.routes.root + `cart/add.js`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, ...
Hello, i have followed the Cart API reference to successfully set a post request that adds items to the cart: https://shopify.dev/docs/api/ajax/reference/cartHowever, cart icon (#1) is not being updated with the new quantity?. I have to refresh the p...
10-30-2024
In newer versions of the app bridge its defined like this:import { useAppBridge } from '@shopify/app-bridge-react'; You then have a settings object where you can access the locale: const appBridge = useAppBridge();appBridge.config.locale
I found the answer rather quickly, its now called:import { useAppBridge } from '@shopify/app-bridge-react'; You then have a settings object where you can access the locale: const appBridge = useAppBridge();appBridge.config.locale
I need the user selected locale for the admin panel, in this post: https://community.shopify.com/c/shopify-apps/how-to-display-an-app-in-the-user-s-selected-admin-language/td-p/1936404They suggest using 2 helper hooks "useShopifyUserLocale" and "useL...
10-30-2024
I dont have useLocale nor useShopifyUserLocale?
Heads up, if i change the namespace at creation from "$app:discount-shipping" to a random string like: test_meta_field_test and use that in my query, then I get the metafields!But that's not very generic/dynamic? that means I have to hardcode this no...
Hello, I have created a Shopify CLI Discount shipping - Function The function works perfectly fine, it applies the discounts and I can read the metadata in the run.ts from the graphql.ts However, I need the metafield(s) in the admin interface as well...
10-29-2024
That can't be true, can it? That seems extremely inefficient
10-28-2024
For some reason, this is only returning DiscountAutomaticFreeShipping created from the normal discounts and not the ones from the app? query {
automaticDiscountNodes(first:10){
nodes{
automaticDiscount{
__typename
... on ...
10-28-2024
Hello, I have created a "Discounts Shipping - Function" through the CLI, I have successfully created an interface in the admin panel that saves data that are then read by run.graphql and used in run.tsThats mega awesome, however, I need to show a lis...
I found out why, it was because I did not save the meta to the discountId, but instead to the shopId.
I have created the definition:export const loader: LoaderFunction = async ({request}) => { const {admin} = await authenticate.admin(request); const fieldDefinition = await setMetaFieldDefinition( admin, 'Discount - Shipping', ...
Hello Deluxe, thanks for taking the time to reply to my message.Unfortunately, your solution didn't make any changes, I'm still not able to load the app-owned namespace, I am however able to load the hardcoded namespace in my .liquid files I am not ...
My Accepted Solutions
Subject | Views | Posted |
---|---|---|
330 | 10-30-2024 07:24 AM |