Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Custom product display not working

Custom product display not working

Locked

Views: 1,354

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
25 Aug 2008, 10:31 PM
#1
kerokero21 avatar

kerokero21

New Zenner

Join Date:
Aug 2008
Posts:
4
Plugin Contributions:
0

Custom product display not working

Hi. I can not get my site to load the custom product display for a new product type. No matter what changes I make to my set up it always displays the product using the default tpl_product_info_display instead of the custom tpl_product_upload_info_display.php file that I have created.

URL: http://dowdlefolkart.com/store/index.php?main_page=product_upload_info&cPath=50006&products_id=409

Thanks for any input on this.

25 Aug 2008, 11:25 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Custom product display not working

The file "tpl_product_upload_info_display.php" is not part of the deault fileset...where and how have you specified that this is the file to use for a page display??

26 Aug 2008, 2:18 AM
#3
kerokero21 avatar

kerokero21

New Zenner

Join Date:
Aug 2008
Posts:
4
Plugin Contributions:
0

Re: Custom product display not working

Thank you for your reply.

I am trying to make a product display file for a new product type called upload. The prefix for all of the product type files is product_upload. I think that the correct naming convention to build a display file for this product type is to create a file called tpl_product_upload_info_display.php as an override for the file tpl_product_info_display.php, but the file is not recognized.

If this is not the right place to customize the product info page appearance where should I look?

Thanks.

26 Aug 2008, 3:51 PM
#4
kerokero21 avatar

kerokero21

New Zenner

Join Date:
Aug 2008
Posts:
4
Plugin Contributions:
0

Re: Custom product display not working

Okay I kind of figured this out. :blink:

I still do not know which file actually points the browser at my custom product info page, but I know which folder it is in. I selected the entire folder for my custom page under modules/pages and did a find for every reference to the default product_info page and replaced them all with the name of my custom product_uploads_info page. It seems to be working great so far.

Kind of like using a bazooka to kill a mouse, but sometimes you get in a bit of a hurry.:blush:

26 Aug 2008, 6:19 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Custom product display not working

tpl_product_upload_info_display.php as an override for the file tpl_product_info_display.php, but the file is not recognized.

Overrides are the SAME file name (edited) and in a folder named as your template name.

Additionally, in that new folder you can create other folders named for the default page name and place individual page overrides in them BUT these are still named the same as the default.

i.e.

my_template
      |
       common(contains global page overrides)
              |
               tpl_header.php

      |
       index (contains index or home page only overrides)
              |
               tpl_header.php

So if you have a new page name working for your product type- check the browser for what the page name being parsed is and proceed accordlingly.

27 Aug 2008, 6:23 PM
#6
kerokero21 avatar

kerokero21

New Zenner

Join Date:
Aug 2008
Posts:
4
Plugin Contributions:
0

Re: Custom product display not working

Thanks for the reply. I will try to set it up like this and see if it works for me.