Kinetic Pulse
  • Home
  • Services
  • Portfolio
  • Blog
  • Terms
  • Contact

Custom product type in Zen Cart – how to make it default

May 28, 2011

In a recent post I waxed lyrical about how great custom product types are in Zen Cart.
One thing that has bugged me though is the fact that when creating a new product you have to train the web site adminstrator to make sure they select the correct product type when first creating their product (otherwise its a painful process of having to edit the product_type value manually in the db backend to undo it…)

So here is how to make your new product type the default one that gets created:
1) Edit the following file: \admin\includes\modules\category_product_listing.php
2) Locate the line:

echo '  ' . zen_draw_pull_down_menu('product_type', $product_restrict_types_array);

and comment it out by putting // at the start of the line

3) Add the following next to the other lines contain the html for hidden inputs:

<input name="product_type" type="hidden" value="X" />

where X is the type_id of your new product type as added in the
product_types table

Et voila. The dropdown no longer appear in the Product listing page in the admin and when the user clicks on the New Product button the product type is automaticlly your custom one.
Hurrah

Share

Facebook Google+ Twitter Pinterest Email

Back to Blog

Testimonials

Thanks so much for all your work on this, really appreciated. It’s come on in leaps and bounds since you took over.
Pete KewRedwood Strip Curtains
Thank you for all of your hard work its looks fab and I am over the moon with it!
Amanda MercerAmanda Mercer Ceramics
It’s been fab working with you – we love the site and certainly going to recommend you!
James DaviesThirty Eight Degrees North
Amazing and brilliant, Kinetic Pulse have lifted a dream to reality, Highly recommended and great if you are total novice, they know their stuff…Thanks again
Annie LindridgeSalt Yourself Out
Thank you guys so much for all that you’ve done helping us to create a really awesome website!! We get such great feedback – everyone loves it & we couldn’t be prouder! Look forward to working with you again soon!
Wild Thyme PlantsWild Thyme Plants
Absolutely fantastically professional web developer – I would highly recommend!!! Thank you so much Kinetic Pulse!
Tania MarstonDoris Designs
I like it.  I like it a lot !!!

 You have interpreted what I wanted to achieve perfectly considering what you have to play with i.e not redoing the whole thing in the process.

Fiona Simmons-MooreSouth Gloucestershire Parents & Carers

Twitter

@HMRCcustomers Will do - thanks for the swift response

Last year from Kinetic Pulse's Twitter

@HMRCcustomers I've submitted Self Assessment repayment requests multiple times over the past 6 months (always waiting 4 weeks between) and never has anything happened. There seems to be no way of tracking or chasing them either. Now, of all times, this is important

Last year from Kinetic Pulse's Twitter

Apologies to all clients who have had website issues today. There was a major outage for our hosting company @cloudabove but, as always, they have been fantastically open and transparent about what's going on and are working hard to restore service.

About a year ago from Kinetic Pulse's Twitter

@thegrapesbath @bathdrummer Thanks - looking forward to opening night!

About 2 years ago from Kinetic Pulse's Twitter

woobox.com/tjkbms/k1orue

About 3 years ago from Kinetic Pulse's Twitter

Copyright 2021 Kinetic Pulse