title: Magento duplicating a product programmatically is not displaying in the frontend
body: <p>I am new to magneto I have tried to duplicate a product programmatically and I have succeeded problem is the duplicated product is showing in magneto admin side while in the frontend the product is not displaying below is my code could you please tell me what is the issue it will be very helpful for me. I have created a separate module for it below is my code. </p>
  
  <pre><code>class Magentotutorial_Helloworld_IndexController extends Mage_Core_Controller_Front_Action {        
      public function indexAction() {
          $final = $_POST['value'];
          $obj = Mage::getModel('catalog/product');
          $_product = $obj-&gt;load($final); 
          $newProduct = $_product-&gt;duplicate();
  
          $newProduct-&gt;setStatus(1);
  
  
          $newProduct-&gt;setSku('value'.$final);
           $newProduct-&gt;setWebsiteIds($_product-&gt;getWebsiteIds());
          $newProduct-&gt;getResource()-&gt;save($newProduct);
      }
  
  }
  </code></pre>