Jump to content

Default price for all products?


Recommended Posts

Hi I have a music store, but I want to know if there is any way to put a default price to all the products, because I can not do manual because every manufacturer or artist upload their own songs, and i dont want that them set the price.
Thanks

Link to comment
Share on other sites

You implement this by changing a file in admin area

/admin/tabs/AdminProducts.php

Look for following lines


    public function displayForm($isMainTab = true)
   {
       global $currentIndex, $link, $cookie;
       parent::displayForm();

       if ($id_category_back = (int)(Tools::getValue('id_category')))
           $currentIndex .= '&id;_category='.$id_category_back;

       if (!($obj = $this->loadObject(true)))
           return;



adding one line end of above code

if($obj->id == 0)$obj->price = 10.0; 



where 10.0 should be your default price.

Link to comment
Share on other sites

×
×
  • Create New...