Question: How To Set Service As The Default Product Type

How To Set Service As The Default Product Type

Hi, can you help me with **how to set the option SERVICE as the default product type** when adding new product? Thank you.

DE

Dere Ezekiel

Asked

Hi, can you help me with how to set the option SERVICE as the default product type when adding new product? Thank you.

  • MS

    Mian Saleem

    Answered

    Hello,

    You can modify the themes/default/views/products/add.php and change set_value('type', 'standard') on line 18 to set_value('type', 'service')

    Thank you

  • DE

    Dere Ezekiel

    Answered

    Alright, that one worked partially. The option SERVICE is now the default product type, but quantity and cost fields are still active. Meanwhile when you select service manually the fields Quantity and Cost disappear; and that is what i am looking to achieve. So what are the additional changes i need to do?

  • MS

    Mian Saleem

    Answered

    Hello,

    You can try to add the following before </script> at the end of the file.

    $('.st').slideUp();
    $('#ct').slideUp();
    

    Thank you

  • DE

    Dere Ezekiel

    Answered

    It worked perfectly. Thank you

  • Login to Reply