I tried to generate several codes via Shopify API and found that after multiple attempts the discount page stuck with loading message.
I have attached the snap of the page.
Same issue here.
The discount codes appear in the admin, but don't work and display that place-holder screen.
...and just to add a bit more detail, I am:
price_rule = ShopifyAPI::PriceRule.create(
title: "name-#{@product.variants.variant_id}",
entitled_product_ids: [@product.id],
target_type: "line_item",
target_selection: "entitled",
value: "-#{@product.variants.first.price}",
value_type: "fixed_amount",
allocation_method: "each",
customer_selection: "all",
starts_at: DateTime.now,
discount_codes: [{ code: "such-and-such-#{@obj.xxx}"}]
)
User | Count |
---|---|
13 | |
13 | |
10 | |
7 | |
5 |