Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • William Lee 2 posts 72 karma points
    Oct 16, 2017 @ 18:50
    William Lee
    0

    Can't delete collection

    I have been testing Merchello 2.6.0 with a brand new Umbraco 7.7.2 install.

    I added a few collections in the products section. But I can't seem to delete these collections. I've tried deleting all products associated with the collection and deleting all products but I still can't delete a collection.

    Nothing seems to happen, I get the warning about deleting the collection but when I click delete nothing happens, there is no confirmation dialog, and looking in the network connections in the browser console nothing is sent to umbraco.

  • Mark Schroeder 2 posts 20 karma points
    Oct 23, 2017 @ 11:29
    Mark Schroeder
    0

    Same versions, and same problem here. Did you manage to figure out what was wrong?

  • Rune Kobberø 5 posts 76 karma points
    Oct 23, 2017 @ 15:43
    Rune Kobberø
    0

    @Mark Schroeder, please see my initial post for a quickfix before next Merchello release. I believe a fix will be part of next Merchello release, as the change was done: https://github.com/Merchello/Merchello/commit/c39fffecebf304f59c4b87967518bdd557fee061#diff-0228d2063f2672904bed7da1b5d35831

  • Rune Kobberø 5 posts 76 karma points
    Oct 23, 2017 @ 13:23
    Rune Kobberø
    1

    I'd like to second this post.

    No error message, frontend nor backend. Checked fiddler and network traffic. As if the data-ng-click="save()" method is never invoked, or at least reaching a dead-code spot.

    Looking at the repo code: https://github.com/Merchello/Merchello/blob/merchello-dev/src/Merchello.Web.UI.Client/src/views/collections/dialogs/delete.staticcollection.html

    It seems the save() method should be confirmDelete()...

    Dirty-fix (not recommended): Locate App_Plugins/Merchello/Backoffice/Merchello/dialogs/delete.staticcollection.html

    replace

    <button class="btn btn-success" data-ng-click="save()">
        <localize key="general_delete"></localize>
    </button>
    

    with

    <button class="btn btn-success" data-ng-click="confirmDelete()">
        <localize key="general_delete"></localize>
    </button>
    

    Please note, this will break when updating Merchello.

  • Hoang Nghia 10 posts 90 karma points
    Apr 10, 2018 @ 07:04
    Hoang Nghia
    0

    It's worked, thanks :)

  • saadi 4 posts 74 karma points
    1 week ago
    saadi
    0

    Even after this change, I'm still getting the old markup. I think I need to do something with cache, but don't know what do.

    Could your please assist?

  • Ayo Adesina 345 posts 857 karma points
    1 week ago
    Ayo Adesina
    0

    That "Dirty Fix" worked for me...

    @saadi - I had the same issue as you, but I did a hard refresh and got the new mark up.

  • saadi 4 posts 74 karma points
    5 days ago
    saadi
    0

    Thanks @Ayo. However, I did hard refresh from Chrome but it didn't work for me. It is strange.

  • Ayo Adesina 345 posts 857 karma points
    5 days ago
    Ayo Adesina
    0

    Are you sure you are changing the right file? View Source can you see the updated code....

    Try....

    1. Renaming the file (just to make sure its the right file you are changing)
    2. Use Chrome to change the code then click the button. - that should work.
  • saadi 4 posts 74 karma points
    5 days ago
    saadi
    0

    Thanks it worked!!!

    Your suggestion 2 didn't work as Angular can't probably late bind its directives. However, you suggestion 1 did the trick.

    I renamed the file name and backoffice reported me a missing file. Then I renamed back to its original name and now I can see the changes. I can now delete a collection as well.

    I think there is some sort of Umbraco cache that might be causing the issue.

    Again, I appreciate your help.

  • Ayo Adesina 345 posts 857 karma points
    5 days ago
    Ayo Adesina
    0

    no problem, glad I can help. I'm new to merchecllo too, working on my first project using it.

    Good luck!

Please Sign in or register to post replies

Write your reply to:

Draft