Chat with us, powered by LiveChat

WCMp bundle is available at a slashed price

Grab It Now

Product URLs changing when when vendor updates

Product URLs changing when when vendor updates2019-03-25T03:06:08-05:00

Home Support Forum WCMp Advanced Frontend Manager Product URLs changing when when vendor updates

WCMp Advanced Frontend Manager

Product URLs changing when when vendor updates Open

  • Author
    Posts
  • admin24
    Participant
    Post count: 443

    Hello. I have my products set to require admin approval. We also edit the URL slug for the product to make it better for sharing. If a vendor makes edits to a product that has already been approved, it is changing the URL slug back to the product name. My vendors are sharing links to their products continuously so breaking the links causes a huge problem. Can the team look into why it is changing the URL slug on its own?

    Also, can we get an option so that only the initial submission requires admin review and approval? I would like to trust my vendors to make simple edits without their customers getting 404 error pages until I can approve it again.

  • admin24
    Participant
    Post count: 443

    And can you also update an estimated release date for WCMp Core 3.4?

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 3848

    @admin24, We have checked the flow further. If a user doesn’t have the capability to publish a product, then whenever a post will be updated, as per default flow of WordPress the post slug will be created from the post name i.e. the post slug will reset.

    Now, Our system generates the slug of the product based on the product title. Hence each time the vendor will edit the product, the system checks the product name.

    Regarding the release date WCMp 3.4, we are hoping to release that within next week, if everything goes according to our plan.

  • admin24
    Participant
    Post count: 443

    I have not tested it, but if that is the case can you just improve this then? It should not be ok for the URL slug to reset by itself and break existing shared links.

    Also about my second question… is there a way with some simple code or whatever it so that only the initial submission requires admin review and approval? I would like to trust my vendors to make simple edits without their customers getting 404 error pages until I can approve it again.

    This would also solve the URL breaking error, correct?

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 3848

    Hi @admin24, as per WordPress, if a user doesn’t have the capability to publish, hence they need admin’s approval for each time, even for a small modification.

    Hence the flow you are looking for, i.e. only the initial submission requires admin review and approval, can’t be supported right now.

    let us know if you have any further query.

  • admin24
    Participant
    Post count: 443

    Thank you for the acknowledgement. I think such a feature would be very important to add in the future. It is a big time consumer for me and my vendors get very frustrated when their product is taken down for a minor issue (no matter how many times I tell them it will happen).

    Also for the URL changing, I was recommended to try the WordPress Redirection plugin, which can also be used to track changed links and redirect to them. Unable to test just yet but for anyone reading it’s a possible workaround.

  • Tech Tycoon Debleena
    Keymaster
    Post count: 492

    @admin24, If you have disabled the “Publish Product” option and enabled the “Edit Publish Product” option, then the vendor can edit the published products. Now, as the admin has not provided vendor the right to publish the products, then the product should not be published as they have edited the details.

    If you want to change the default flow of the plugin, then you have to do a bit of custom code. Add this code to the function.php of the child theme :
    add_filter('‘wcmp_vendor_can_publish_products’, '__return_true');

  • admin24
    Participant
    Post count: 443

    Sorry, I am just a little confused. (first that code is site-breaking, should be add_filter('wcmp_vendor_can_publish_products', '__return_true'); correct?

    Then I tried it an can’t figure out what it is supposed to do. Can you explain? Thank you.

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 3848

    @admin24, we have looked into this further.

    It seems like the capability to “Publish Product” comes from WooCommerce, and it doesn’t check whether the product is added for the first time or not. Hence if the vendor doesn’t have the capability, then they need admin’s approval each time.

  • admin24
    Participant
    Post count: 443

    Right, because WC is not designed to be multivendor. Editing products in woocommerce does not reset the URL back to the title, only using your frontend does that. So basically we can’t make custom URL slugs for our products when using WCMp. I hope you guys consider finding a way to fix that.

  • Tech Tycoon Debleena
    Keymaster
    Post count: 492

    @admin24, If a user don’t have the capability to publish a product, then whenever a post will be updated, as per default flow of WordPress the post slug created from the post name i.e. the post slug will reset.

    Now as an admin you won’t face this issue, because admin always has the capability to publish their product. So, if you also provide vendor the capability to publish their product, the URL won’t change.

    For more information please check wp_insert_post() function.

  • admin24
    Participant
    Post count: 443

    Yes I totally understand. I still think you should provide a way to override that, since every single time a vendor updates their product it resets the URL.

    Now, what would really fix this is of you could make an option to require review of initial publish, but allow them to publish edits directly.

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 3848

    @admin24, as this flow gets controlled by WordPress, hence the flow can’t be overridden.

    However, we will see, whether we can find any alternative.

  • admin24
    Participant
    Post count: 443

    Thank you, it would mean a lot… especially allowing vendors to update their products without approval. To clarify why this is a big deal, for my use the only reason I have it set to require product approval is because I am using other features and plugins which work but not with the vendor dashboard, where I have to put it in myself. So with this the way it is I am currently making ALL changes to products on my vendors’ behalf so their shared products don’t get the dreaded 404 and destroy confidence in the platform. It’s taking up a ton of my time.

    Thanks again.

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 3848

    @admin24, let us look into this. Whether we can add any such flow and whether WordPress will provide this option to be added.

    We will keep you posted.

  • admin24
    Participant
    Post count: 443

    Thanks, I just wanted to let you know about a friction point I am having. I have a few suggestions obviously lol. Thanks for all you do.

Please LOGIN to reply to this topic