DE
Asked
Hi, can you help me with how to set the option SERVICE as the default product type when adding new product? Thank you.
- MSAnswered
Hello,
You can modify the
themes/default/views/products/add.php
and changeset_value('type', 'standard')
on line 18 toset_value('type', 'service')
Thank you
- DEAnswered
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?
- MSAnswered
Hello,
You can try to add the following before
</script>
at the end of the file.$('.st').slideUp(); $('#ct').slideUp();
Thank you
- DEAnswered
It worked perfectly. Thank you
- Login to Reply