Adding New Product_types

Sticky

Views: 161,404

Results 81 to 100 of 154
13 Oct 2006, 5:27 AM
#81
dantheman avatar

dantheman

New Zenner

Join Date:
May 2005
Location:
Toronto, Ontario, Canada
Posts:
41
Plugin Contributions:
0

Adding New Product_types

If you insert PHP code in the Product Description field, it is ignored. Is there any way to include it?

This would offer many advantages - for example you could use language defines to insert frequently used text in the product description.

If you wanted to include a disclaimer on the bottom of your product description, you could simply add it to the language file:

define('DISCLAIMER', 'Please note that we don't guarantee hardware or software compatibility!');

then just insert it in the product description

<?php DISCLAIMER ?>;

That would make it very easy to edit if your disclaimer were to change, instead of editing x number of products. Also, it would reduce database size tremendously.

This is only one application, there are thousands more...

Any ideas?

Dan G.

Notebook Solutions Inc.

http://www.notebooksolutions.ca

*Whoever said that money can’t buy happiness simply didn’t know where to go shopping.

  • Sydney J. Harris*
30 Oct 2006, 10:51 PM
#82
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Re: Adding New Product_types

I second that, I had to edit 100+ of products once because I wanted to add like 1 line of text... it would be great if we could execute php codes within the product descriptions :)

26 Dec 2006, 11:27 PM
#83
moebiusenterprises avatar

moebiusenterprises

Zen Follower

Join Date:
May 2005
Location:
Phoenix Arizona (whew!)
Posts:
167
Plugin Contributions:
0

Re: Adding New Product_types

Ok, I realize this thread is old, but I'm curious -
does the product type add-on 'books' work with the latest release?
If not, is there hope of another product type addition?

Thanks!

Vicki
www.moebiusenterprises.com
Fragrancejewelrymetaphysical suppliesartLIFE ... 'bout sums it up....

27 Dec 2006, 11:33 AM
#84
marw avatar

marw

New Zenner

Join Date:
Feb 2006
Location:
Hungary
Posts:
39
Plugin Contributions:
0

Re: Adding New Product_types

Moebiusenterprises:

Ok, I realize this thread is old, but I'm curious -
does the product type add-on 'books' work with the latest release?
If not, is there hope of another product type addition?

Thanks!

Hi!

Moku's "Product type book" (http://www.zen-cart.com/forum/showthread.php?t=35389 works fine with the 1.3.6 version of Zen Cart.

1 Feb 2007, 10:20 PM
#85
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Adding New Product_types

MarW:

Hi!

Moku's "Product type book" (http://www.zen-cart.com/forum/showthread.php?t=35389 works fine with the 1.3.6 version of Zen Cart.

Are you able to use that contrib to add a product type other than books?

betty

1 Feb 2007, 10:24 PM
#86
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Adding New Product_types

Sorry for a second back to back post.

Are the instructions back in 2004 still valid for adding a new product type? If not is there an update I missed someplace that is compatible with v1.37?

thank you,

betty

14 Feb 2007, 8:36 PM
#87
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Adding New Product_types

We added a new product type, however the items listed using that type do not show up in the products list when trying to add featured products.

How do I get them to show up in the products available to be featured products?

thank you,

betty

21 Feb 2007, 11:41 PM
#88
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Adding New Product_types

here I am replying to myself again!

Did I perhaps ask the above questions about products not showing up in the items available for featured listings on my new product type in the wrong thread? Should I have created a new one instead?

Or is it something that has been answered many times and no responses is meant to be a hint to make me search again (which will be the fourth time)?

thank you,

betty

23 Oct 2007, 5:54 PM
#89
dezinejunkie avatar

dezinejunkie

New Zenner

Join Date:
Jan 2007
Posts:
49
Plugin Contributions:
0

Re: Adding New Product_types

Is there a module or extension of sorts that has fields to input
**Additional Details on a product page? Or am i missing where on Image Handler there is a place to designate Download Size 18.3MB
Download Time 5 minutes @ 1.8mbs [Change Connection Speed]?
**
Additional Details

Download Size 18.3MB
Download Time 5 minutes @ 1.8mbs [Change Connection Speed]
Price: $2.50

Designed By
email
Terms: Personal Use only.
My Store:

                         Sold Out           
   - 0 Units in Stock
  • Manufactured by: Thanks im a very zen newbie

DezineJunkie

23 Oct 2007, 5:58 PM
#90
dezinejunkie avatar

dezinejunkie

New Zenner

Join Date:
Jan 2007
Posts:
49
Plugin Contributions:
0

Re: Adding New Product_types

I know this is so basic but where is the file to allow changes to
Search More Information Manufacture Info?

Also in the stylesheet.css i dont see where to change the size of these headngs?

DezineJunkie

24 Oct 2007, 3:18 PM
#91
cs_jono avatar

cs_jono

Inactive

Join Date:
Oct 2007
Posts:
187
Plugin Contributions:
0

Re: Adding New Product_types

gaussboy:

Here is a little summary of what I had to do to add a new product type. This only covers the catalog section. Everything seems to be working OK. I've not tested it extensively by any means, so YMMV.

These are the files that I had to create in order to setup a new product_magnet type. 'TEMPLATE', of course, refers to your custom template directory.

includes/extra_datafiles/magnet_type_database_names.php
includes/languages/english/extra_definitions/product_magnet.php
includes/languages/english/product_magnet_info.php
includes/languages/english/TEMPLATE/product_magnet_info.php
includes/modules/pages/product_magnet_info/header_php.php
includes/modules/pages/product_magnet_info/jscript_main.php
includes/modules/pages/product_magnet_info/main_template_vars.php
includes/modules/pages/product_magnet_info/main_template_vars_attributes.php
includes/modules/pages/product_magnet_info/main_template_vars_images.php
includes/modules/pages/product_magnet_info/main_template_vars_images_additional.php
includes/templates/TEMPLATE/templates/tpl_product_magnet_info_display.php

  1. includes/extra_datafiles/magnet_type_database_names.php

define('TABLE_PRODUCT_MAGNET_EXTRA', DB_PREFIX . 'product_magnet_extra');
define('TABLE_MAGNET_PLATE', DB_PREFIX . 'magnet_plate');
define('TABLE_MAGNET_GRADE', DB_PREFIX . 'magnet_grade');

> 
>   These three definitions are tables that I created in my database.  Only the first definition is necessary.  It, among other things, holds the id references for the other tables.  The other two tables contain supporting data that you will have to design and input manually.  You can probably use the other tables for the music genre as templates.
> 
> 
> 2. includes/languages/english/extra_definitions/product_magnet.php
> 
> ```
define('BOX_HEADING_SPECS', 'Magnet Specifications');
This was the only definition that I needed.  Pretty self explanitory.  This is the extra english text that goes on your product_info page.
  1. includes/languages/english/product_magnet_info.php
    -OR-
    includes/languages/english/YOUR_TEMPLATE/product_magnet_info.php

Copy the file product_music_info.php from the same directory and begin editing to your taste. Don't add any extra definitions... just change the ones that are there. If you need to add more definitions, then do it in step #2.

  1. Copy the entire directory includes/modules/pages/product_music_info
    to
    includes/modules/pages/product_YOURTYPE_info/

  2. includes/modules/pages/product_magnet_info/header_php.php
    includes/modules/pages/product_magnet_info/jscript_main.php

    NOTHING TO DO!!!

  3. includes/modules/pages/product_magnet_info/main_template_vars.php

This file needs some serious consideration. This is where you will be grabbing all of your special information from the DB regarding this specific product. If you are database challenged, this is going to be difficult.. but not impossible!

Fortunately our friendly Zen Admin's have given us a good template in the product_music type. Read through it a few times.

  1. includes/modules/pages/product_magnet_info/main_template_vars_attributes.php

Very few changes here. Only two lines changed to add the music product type.

This line (110):

if (((CUSTOMERS_APPROVAL == '2' and $_SESSION['customer_id'] == '') or (STORE_STATUS == '1')) or (CUSTOMERS_APPROVAL_AUTHORIZATION == 2 and $_SESSION['customers_authorization'] != 0)) {

> 
> ```
was changed to:
if ((CUSTOMERS_APPROVAL == '2' and $_SESSION['customer_id'] == '') or (STORE_STATUS == '1')) {

And this line (170):

if ((SHOW_PRODUCT_INFO_WEIGHT_ATTRIBUTES=='1' and $products_options->fields['products_attributes_weight'] != '0')) {

> was changed to:
> ```
 
     if ((SHOW_PRODUCT_MUSIC_INFO_WEIGHT_ATTRIBUTES=='1' and $products_options->fields['products_attributes_weight'] != '0')) {

I didn't have to change any of this since my product type doesn't use attributes.

  1. includes/modules/pages/product_magnet_info/main_template_vars_images.php
    includes/modules/pages/product_magnet_info/main_template_vars_images_additional.php

    NOTHING TO DO!!!

  2. includes/templates/TEMPLATE/templates/tpl_product_magnet_info_display.php

This is the file to customize how the product is displayed. You will want to make sure you are displaying all of the special information out of the database.

THE END

Hopefully this will do more good than harm. Let me know if anything is unclear, missing, or just plain wrong. I'll try to put the instructions for the admin section up later on.

Once you complete this what do you have to do on the admin side to actually get this new product type to function when adding new products?

Jono Herrington :: clevershoppers Inc.

20 Jan 2008, 3:32 AM
#92
maraud avatar

maraud

New Zenner

Join Date:
Mar 2007
Posts:
56
Plugin Contributions:
0

Re: Adding New Product_types

Hi,

rather than searching and reading through all 10 pages, could someone please point me to information as to how to add new product types in Zencart 1.3.7

30 Jan 2008, 2:16 AM
#93
siditty avatar

siditty

New Zenner

Join Date:
Jan 2008
Posts:
9
Plugin Contributions:
0

Re: Adding New Product_types

There is got to be a easier way of adding a new product type, seeing as videos should have been listed already. I was told zen cart was easy, but being I need a catagory for videos, my shop won´t be up this year - if that is what I have to do to add a video product.

3 May 2008, 2:02 PM
#94
longstockings avatar

longstockings

Zen Follower

Join Date:
Jul 2004
Posts:
198
Plugin Contributions:
0

Re: Adding New Product_types

Can someone please post the steps needed in order to make multiple copies of the product general product type.

This may sound strange so let me explain why.
I have a shop with products that need different attributes. As I wanted to lay out the attributes in a particular way that is not possible with Zen Cart I had to hand code the changes in product_ifo_display.php. Look at https://www.gobetweencards.co.uk to see what I mean.

Some products have image attributes and some do not hence why I need multiple copies of the general product type so that I can have a custom product_ifo_display.php for each type of product.

Any pointers would be grately appreciated.

UK based Zen Cart Web Designer here https://www.handcoded.co.uk

16 Jun 2008, 10:31 PM
#95
misscloud avatar

misscloud

New Zenner

Join Date:
Jun 2008
Posts:
1
Plugin Contributions:
0

Re: Adding New Product_types

maraud:

Hi,

rather than searching and reading through all 10 pages, could someone please point me to information as to how to add new product types in Zencart 1.3.7

I second that. I have trawled through this post, and found lots of posts with codes in. I'm new to Zen Cart and shopping carts/e-commerce in general, so an easy update with the relevant code to add a new product type would be greatly appreciated!!

Thanks :clap:

25 Jun 2008, 12:06 AM
#96
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: Adding New Product_types

Kim:

Basic documents have just been added to the downloads section.

http://www.zen-cart.com/modules/mydownload...sit.php?lid=324

Would you be so kind to let us know which category its under or at least the name of the mod . Common sense tells me it should be ' new product type ' but there is nothing there.

Thanks

Downunder QLD

1 Aug 2008, 3:44 AM
#97
elastic avatar

elastic

New Zenner

Join Date:
Dec 2007
Location:
New Jersey
Posts:
76
Plugin Contributions:
0

Re: Adding New Product_types

i have been very successful at adding new products types, getting things to show up and be available on the admin side of life. one very strange thing - the custom products don't seem to be deleting from the inventory when the product is purchased. it's actually a HUGE problem (for me) but I am trying to stay calm about it.

what part of the custom product controls the check of stock and deleting from the products_quantity field? why is the 'custom' product different than the traditional product? if i look i the mirror, will my hair have turned completely white?

i really don't expect and answer to the last one.

really, i just want to know if anyone else ever had this problem, and if so, how did you solve it?

http://www.zen-cart.com/forum/images/smilies/frusty.gif

hmmn. really?

13 Oct 2008, 3:54 AM
#98
thebasher avatar

thebasher

New Zenner

Join Date:
Dec 2007
Posts:
53
Plugin Contributions:
0

Re: Adding New Product_types

I've read through this thread a few times and can't seem to find an answer to my problem.

I created a new category based on the "music" category, copied all the files, changed the code I needed to change, created new tables in my database for my new product but absolutely nothing shows up in my admin except for the 5 original product types.

I duplicated and uploaded all of the files from the "music" product type but is there something else I need to do?

Thanks.

24 Oct 2008, 9:37 AM
#99
thebasher avatar

thebasher

New Zenner

Join Date:
Dec 2007
Posts:
53
Plugin Contributions:
0

Re: Adding New Product_types

I know this thread is a bit old but is there anyone out there that has figured this out? I've searched the forum and read the wiki but I just can't seem to figure out how to make this actually work.:lamo: