How do I remove Loox code from product.json?

I was looking into to speed up my site when I learned about removing code that some developers leave on your theme after uninstalling. I recently uninstalled Loox from my store, but I am still seeing its code on my product.json. After attempting to remove the code myself, I kept getting an error. Could someone please let me know how I may remove the Loox code from the below code?

{
  "sections": {
    "main": {
      "type": "main-product",
      "blocks": {
        "vendor": {
          "type": "text",
          "settings": {
            "text": "{{ product.vendor }}",
            "text_style": "uppercase"
          }
        },
        "title": {
          "type": "title",
          "settings": {
          }
        },
        "caption": {
          "type": "text",
          "settings": {
            "text": "{{ product.metafields.descriptors.subtitle.value }}",
            "text_style": "subtitle"
          }
        },
        "price": {
          "type": "price",
          "settings": {
          }
        },
        "variant_picker": {
          "type": "variant_picker",
          "settings": {
          }
        },
        "quantity_selector": {
          "type": "quantity_selector",
          "settings": {
          }
        },
        "buy_buttons": {
          "type": "buy_buttons",
          "settings": {
          }
        },
        "description": {
          "type": "description",
          "settings": {
          }
        },
        "share": {
          "type": "share",
          "settings": {
          }
        },
        "loox-rating": {
          "type": "shopify:\/\/apps\/loox-photo-reviews\/blocks\/loox-rating\/5c3b337f-fd14-4df5-b1d6-80ec13e6e28e",
          "settings": {
          }
        }
      },
      "block_order": [
        "vendor",
        "title",
        "price",
        "loox-rating",
        "variant_picker",
        "quantity_selector",
        "buy_buttons",
        "description",
        "share"
      ],
      "settings": {
      }
    },
    "product-recommendations": {
      "type": "product-recommendations",
      "settings": {
      }
    },
    "loox-product-reviews-app-section": {
      "type": "apps",
      "blocks": {
        "loox-product-reviews": {
          "type": "shopify:\/\/apps\/loox-photo-reviews\/blocks\/loox-dynamic-section\/5c3b337f-fd14-4df5-b1d6-80ec13e6e28e",
          "settings": {
            "only_photos": false,
            "aggregated": false,
            "hide_thumbnails": false,
            "maxwidth": 1080
          }
        }
      },
      "block_order": [
        "loox-product-reviews"
      ],
      "settings": {
        "include_margins": false
      }
    }
  },
  "order": [
    "main",
    "product-recommendations",
    "loox-product-reviews-app-section"
  ]
}

Hi Melshop,

I took the time to remove all the code that comes from Loox, with this you shouldn’t have a problem.

If you still receive the message, it would be good if you shared more information about that message with us to know specifically what is happening.

Greetings.

{
  "sections": {
    "main": {
      "type": "main-product",
      "blocks": {
        "vendor": {
          "type": "text",
          "settings": {
            "text": "{{ product.vendor }}",
            "text_style": "uppercase"
          }
        },
        "title": {
          "type": "title",
          "settings": {
          }
        },
        "caption": {
          "type": "text",
          "settings": {
            "text": "{{ product.metafields.descriptors.subtitle.value }}",
            "text_style": "subtitle"
          }
        },
        "price": {
          "type": "price",
          "settings": {
          }
        },
        "variant_picker": {
          "type": "variant_picker",
          "settings": {
          }
        },
        "quantity_selector": {
          "type": "quantity_selector",
          "settings": {
          }
        },
        "buy_buttons": {
          "type": "buy_buttons",
          "settings": {
          }
        },
        "description": {
          "type": "description",
          "settings": {
          }
        },
        "share": {
          "type": "share",
          "settings": {
          }
        }
      },
      "block_order": [
        "vendor",
        "title",
        "price",
        "variant_picker",
        "quantity_selector",
        "buy_buttons",
        "description",
        "share"
      ],
      "settings": {
      }
    },
    "product-recommendations": {
      "type": "product-recommendations",
      "settings": {
      }
    }
  },
  "order": [
    "main",
    "product-recommendations"
  ]
}
1 Like

This worked! Thank you so much Filisantillan!