0

I'm looking for a way to completely empty out the Url Key when a product is duplicated.

i've already tried:

 $newProduct->setUrlKey(NULL);

in a rewrite of Mage_Catalog_Model_Product. but this just results in magento regenerating the Url Key.

i also read this question but there is no answer.

Thanks in advance!

5
  • Did you try it by changing core file? Jun 15 '18 at 15:04
  • @SukumarGorai Yes i rewrote Mage_Catalog_Model_Product
    – Alle
    Jun 18 '18 at 8:47
  • I am not asking about rewrite. Did you try by changing the core file? Jun 18 '18 at 9:07
  • @SukumarGorai No i didn't, isn't chaning core files considered very bad practice?
    – Alle
    Jun 19 '18 at 10:09
  • Yes its bad practice but need to confirm its working on core or not. Jun 19 '18 at 10:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.