Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Custom Product Type Help - Manufacturers

Custom Product Type Help - Manufacturers

Locked

Views: 3,233

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
12 Jul 2006, 2:23 AM
#1
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Custom Product Type Help - Manufacturers

I am upgrading some custom product types from 1.2+ to 1.3+. The product type is essentially product_music with the manufacturers added and a few custom text fields. I have successfully upgraded the template thus far (well not the layout but that comes next). I got it working fully in the admin, but on the catalog side, I can't get the manufacturers to display. Yes, the switch is turned on in the admin and the manufacturer does appear in the product_info template.

Here is what I have at: includes/modules/pages/product_ringm_info/main_template_vars.php

Here is what I have in the main_template_vars_product_type.php:

And here is the product type template

I've compared the files countless times to the other product types and everything appears to be there, but for some reason it won't appear on the catalog side.

Anyways, thanks in advance for any help.

12 Jul 2006, 2:36 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Custom Product Type Help - Manufacturers

manufacturer is not part of the Music Product type ...

To change that, you would need to compare all of the files to product_info or product_free_shipping in both the Admin and Catalog and put in the missing field ...

The field is in the database, it is just not included in any of the select, insert, update statements, etc.

12 Jul 2006, 2:48 AM
#3
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Custom Product Type Help - Manufacturers

I've done that. Everything is working correctly on the admin side. What I mean is I can create a new product and assign a manufacturer to it. I have even verified via phpMyAdmin that it was in fact assigned. So the admin works correctly, the database info is there, but something is missing on the catalog side.

Ajeh:

manufacturer is not part of the Music Product type ...

To change that, you would need to compare all of the files to product_info or product_free_shipping in both the Admin and Catalog and put in the missing field ...

The field is in the database, it is just not included in any of the select, insert, update statements, etc.

12 Jul 2006, 2:51 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Custom Product Type Help - Manufacturers

More than likely ... you have an IF statement that has no real define to it so its value is blank or 0 or false so it is not showing ...

12 Jul 2006, 2:59 AM
#5
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Custom Product Type Help - Manufacturers

Brilliant! There was an 'empty' switch in the template here:

<?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>

So I removed the first part and it worked!

BTW Ajeh, bravo on a very well made cart. As I have been creating my new 1.3 site and really analyzing the code, I see little changes here and there that are awesome and really clean up the code. It makes changes to the core code so much easier. :thumbsup:

Ajeh:

More than likely ... you have an IF statement that has no real define to it so its value is blank or 0 or false so it is not showing ...

12 Jul 2006, 3:00 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Custom Product Type Help - Manufacturers

Glad you found the issue and that you like the changes to the code ... so much more to do ... :cool: