No content to show
User Activity
10-23-2024
Kids, this is why you shouldn't be coding on the last leg a of 30 hour day.@paul_n Thank you so much for making this work.For future readers, this is the final version of the code to affect each variant's inventoryPolicy within a product. For non-cod...
10-23-2024
Ok, this got weirder for me, there's two types of mutations in the flow, one to DENY, one to CONTINUE, in separate branches so they would never run twice per flow.The DENY branch worked correctly, twice. {
"productId": "{{ product.id }}",
"varian...
10-23-2024
I added code after output needed variants, let me try removing it, and fixing "Variants"
10-23-2024
{
"productId": "{{ product.id }}",
"Variants": [
{% for variants_item in product.variants %}
{
"id": "{{ variants_item.id }}",
"inventoryPolicy": "CONTINUE"
}{% if forloop.last == false %},{% endif %}
{% endfor %}
]...
10-23-2024
I found how to provide productID, but, it seems I do need to define Variables, I tried to Get product variant data and in Recent Runs it says it was completed. But now it showed this error. Ran into exception: Mutation had errors: "Variable $variants...
10-22-2024
Ok, your post made me realize I hadn't change the Send API Request to productVariantsBulkUpdateI've ran the following code {
"variants": [
{% for variants_item in product.variants %}
{
"id": "{{ variants_item.id }}",
"inventoryP...
10-22-2024
Thanks Paul, I tried with only the Json part (I think). Since I need this to change the Policy on all Product Variants, I nested them in a For.But I got this insteadRan into exception: Mutation had errors: "Variable $input of type ProductVariantInput...
10-22-2024
After reading and moving bits here and there, this is as far as I've gotten, but it's not ticking/unticking the Inventory Policy on the Variant.mutation productVariantsBulkUpdate($ProductID: ID!, $variants: [ProductVariantsBulkInput!]!) {
productVa...
10-21-2024
Hello, I've got a Flow running to Edit some tags when product has variants in-stock/OoS.But now I wanted to add a change as well to edit ProductVariantInput.inventoryPolicy via APIRequest. I'm not code-literate enough to make this work, I know someth...
Apologies @Moeed it seems when I made this post I didn't have PM capabilities, maybe my account was too young.I looked into some of your Solutions and every single link I got here, eventually found an ugly way to do it.Thanks!
www.laguarida.juegos How can I send you the password? I can't find a way to send a Private or Direct Message through the boards.
www.laguarida.juegos How can I send you the password? I can't seem to find a way to send a Private or Direct Message.
10-06-2024
Hello, does anyone know if it's possible to hide out-of-stock variants on the Trade theme?
My Accepted Solutions
Subject | Views | Posted |
---|---|---|
720 | 10-23-2024 02:23 PM |