Another received feedback from the BFS audit team regarding section 5.5.4 — Create high quality links:
“All links to your app from the Create discount button on the discounts page must direct to a page in your embedded app where merchants can create the corresponding discount. These pages must follow all relevant App Design Guidelines.”
In our case, we use a single discount function to manage various kinds of bundle and upsell offers. We support over 11 different offer types (e.g., volume discounts, BXGY, Mix & Match, standard bundles, cart upsells, etc.), but all of them are powered by just two discount functions, depending on the scenario.
Because of this, we don’t create different discount functions per offer type, and hence, from the “Create discount” button, we currently redirect users to homepage where there are catalogues of all offers are there
We want to clarify:
Is it mandatory to deep-link each “Create discount” action to a specific pre-filled creation page for a single offer type (e.g., Mix & Match)?
Given that all our offers are handled by shared discount functions, is there any recommended way to differentiate links based on the offer type while still using a single discount function?
Would our current approach (landing on a selection catalog where merchant chooses offer type) meet the requirement, or would we need to generate separate internal routes for each offer creation flow?
We’re happy to make changes if needed but want to be sure we’re not duplicating logic unnecessarily or breaking the unified discount management we’ve built.
Any guidance from the Shopify team or developers who’ve passed BFS review would be greatly appreciated.
Thanks in advance!
@Liam-Shopify can you please help here ?
We have also received similar feedback from the BFS audit team, but we are currently unsure about the required steps to resolve the issue.
We are using the Discount feature exclusively for volume discounts, which are created via our function app. When the discount is clicked, it redirects directly to the homepage, as it automatically connects with our app.
At this point, we are not aware of any option to define a custom redirect URL. There doesn’t appear to be a way to route the user directly to our “Create Volume Discount” app page from the discount link.
We would appreciate it if the Shopify team or developers could guide us on the necessary steps to fulfill this requirement.
Thanks in advance!
Hey @Sachin_Saini, I am unsure if you are referring to the customer-facing side of the storefront, but if you are and you are referring to the /discount/DISCOUNT CODE
URL, then you should be able to add a ?redirect=/PATH TO APP PAGE
to that URL to redirect the customer wherever they should land. Regarding custom URL redirects, I believe you should be able to create one where the target
is something like /discount/DISCOUNT CODE?redirect=/PATH TO APP PAGE
and the redirect path
is something like /in/DISCOUNT CODE
to keep things unique.
Note, this approach is different from the cart permalinks as it utilizes different built-in URL functionality than what cart permalinks provide. Also, such an approach may currently be undocumented.
I have not personally tried to create functions for Discounts yet but if instead you mean on the admin back-end, where the discount is of a different type than the built-in types, for example a type created by your app, then that should take the customer to the discount page for that discount if using Admin UI extensions unless you are using Remix App UI (or something else), which may be setup via the approach listed here.