Announcement

Collapse
No announcement yet.

Multi-Domain URI's

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Multi-Domain URI's

    Multi-Domain URI's are another little bugaboo to make sure you are aware of. When creating a Product Import file, I used the Canonical URI field by mistake and created a whole bunch (over 9000) Canonical URI's "thinking" they would magically become the Multi-Domain URI's.

    Did I overlook the ability to create the Multi-Domain URI with the Product Import? I don't seem to recall a field for it, but I did have the Canonical URI in the template I exported, so that could have been where I went astray.

    Perhaps a Multi-Domain URI field needs to be included in Product Import?

    On a related note, what is the easiest way to delete all these errant URI's? It's only about 18,000+
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: X | Facebook | Pinterest

    #2
    Hi Leslie,

    I'm far from knowledgeable on anything this technical, but my store has been testing out the new AI ChatBot feature that Miva is looking to launch in the coming months, which we've had great success with on our site.

    There is a little "blue" ChatBot icon on the lower right of the forum that should be able to assist with your dilemma.

    I went ahead and asked it your question and below is the reply I got.

    I'm not sure if the reply is technically "right", but might be a good place to start while you're waiting for Nick or someone else to reply.

    Carl

    ---------------------

    I'm the AI Miva Chat Assistant. Ask me questions about setting up Miva, and using the admin.


    I asked "Is there an easy way to delete 18000+ URIs"


    Response below:


    searchDocuments





    To delete a large number of URIs, such as 18,000+, you can use the Miva JSON API functions designed for deleting URIs from different lists. Here are some relevant functions:
    1. CategoryURIList_Delete: This function deletes URIs from a list of category URIs01.
    2. ProductURIList_Delete: This function deletes URIs from a list of product URIs23.
    3. FeedURIList_Delete: This function deletes URIs from a list of feed URIs45.
    4. PageURIList_Delete: This function deletes URIs from a list of page URIs67.
    Each of these functions requires you to specify the uri_ids of the URIs you wish to delete. The response will indicate whether the request was successful and how many URIs were processed.
    For example, to delete URIs using the PageURIList_Delete function, you would send a request like this:

    json


    { "Store_Code": "{{Store_Code}}", "Miva_Request_Timestamp": "{{$timestamp}}", "Function": "PageURIList_Delete", "URI_IDs": [148, 149, 150, ...] // List of URI IDs to delete }


    The response will confirm the success and the number of URIs deleted:

    json


    { "success": 1, "processed": 3 // Number of URIs deleted }


    Make sure to replace {{Store_Code}} and {{$timestamp}} with your actual store code and the current timestamp, respectively. You can batch the deletions if needed to handle a large number of URIs efficiently.



























    Comment


      #3
      Originally posted by SNAGuy View Post
      Hi Leslie,

      I'm far from knowledgeable on anything this technical, but my store has been testing out the new AI ChatBot feature that Miva is looking to launch in the coming months, which we've had great success with on our site.

      There is a little "blue" ChatBot icon on the lower right of the forum that should be able to assist with your dilemma.

      I went ahead and asked it your question and below is the reply I got.

      I'm not sure if the reply is technically "right", but might be a good place to start while you're waiting for Nick or someone else to reply.

      Carl

      ---------------------

      I'm the AI Miva Chat Assistant. Ask me questions about setting up Miva, and using the admin.


      I asked "Is there an easy way to delete 18000+ URIs"


      Response below:


      searchDocuments





      To delete a large number of URIs, such as 18,000+, you can use the Miva JSON API functions designed for deleting URIs from different lists. Here are some relevant functions:
      1. CategoryURIList_Delete: This function deletes URIs from a list of category URIs01.
      2. ProductURIList_Delete: This function deletes URIs from a list of product URIs23.
      3. FeedURIList_Delete: This function deletes URIs from a list of feed URIs45.
      4. PageURIList_Delete: This function deletes URIs from a list of page URIs67.
      Each of these functions requires you to specify the uri_ids of the URIs you wish to delete. The response will indicate whether the request was successful and how many URIs were processed.
      For example, to delete URIs using the PageURIList_Delete function, you would send a request like this:

      json


      { "Store_Code": "{{Store_Code}}", "Miva_Request_Timestamp": "{{$timestamp}}", "Function": "PageURIList_Delete", "URI_IDs": [148, 149, 150, ...] // List of URI IDs to delete }


      The response will confirm the success and the number of URIs deleted:

      json


      { "success": 1, "processed": 3 // Number of URIs deleted }


      Make sure to replace {{Store_Code}} and {{$timestamp}} with your actual store code and the current timestamp, respectively. You can batch the deletions if needed to handle a large number of URIs efficiently.









      Hi Carl,

      Thanks, but I've not had a lot of success with the support bot giving me help or giving me useful code. When I am looking for answers, I'm thinking in terms of the easiest way for a store owner to handle this themselves. Many can handle the "old-fashioned" way of Export/Import versus having to write code to do something they expect to be simple.

      FWIW, I have a very long history of being the person to break something in Miva.
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: X | Facebook | Pinterest

      Comment


        #4
        LOL, like I said, from the chatbot in the Miva docs. First, I rephrased the question:

        Is there a way to delete Product Canonical URIs in bulk?

        searchDocuments

        The search results do not provide specific information on how to delete Product Canonical URIs in bulk. However, you can manage URIs through the URI Management section in the Miva admin. If you need to perform bulk operations, such as deleting multiple URIs, you might need to explore options like exporting the URIs, modifying them externally (e.g., in a CSV file), and then re-importing them with the desired changes.

        For precise guidance on bulk operations, it might be beneficial to contact Miva support directly or consult additional documentation specific to your version of Miva.
        Then I asked the Miva docs bot the exact same question I posted here:

        Is there an easy way to delete 18000+ URIs?

        The search results and available documentation do not provide a straightforward method for deleting a large number of URIs, such as 18,000+, in bulk directly through the Miva admin interface. Typically, such bulk operations might require exporting the URIs, processing them externally (e.g., using a script or spreadsheet software), and then re-importing them with the necessary changes.

        Given the scale of your task, I recommend reaching out to Miva support for assistance. They may be able to provide a more efficient solution or tool for handling bulk deletions of URIs.
        Leslie Kirk
        Miva Certified Developer
        Miva Merchant Specialist since 1997
        Previously of Webs Your Way
        (aka Leslie Nord leslienord)

        Email me: [email protected]
        www.lesliekirk.com

        Follow me: X | Facebook | Pinterest

        Comment


          #5
          Quick follow-up on this: I did what the Chat bot said to do and contacted Miva Support. A tip of the hat to Peter at Miva Support for reminding me about the Advanced Search in the URI Management URIs. In my case, the URI's I need to delete had changed to Type: Normal, which I was able to use to filter out the ones I need to delete. I'll delete in chunks to avoid timeouts (that I seem to be able to produce when I work with large quantities). Thanks again, Carl!
          Leslie Kirk
          Miva Certified Developer
          Miva Merchant Specialist since 1997
          Previously of Webs Your Way
          (aka Leslie Nord leslienord)

          Email me: [email protected]
          www.lesliekirk.com

          Follow me: X | Facebook | Pinterest

          Comment

          Working...
          X