Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Product Type Info Page Layout Options Not Working in Custom Template

Product Type Info Page Layout Options Not Working in Custom Template

Locked

Views: 2,636

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
4 Aug 2007, 8:05 PM
#1
johnd avatar

johnd

Zen Follower

Join Date:
Oct 2006
Location:
New Jersey, USA
Posts:
119
Plugin Contributions:
0

Product Type Info Page Layout Options Not Working in Custom Template

I am having trouble getting the quantity in stock to display on product info page. Show Quantity In Stock is set to true, but the quantity is not being displayed.

I switched to Contemporary Green Template and the options are working there.

The options for both templates are identical.

It's not just the quantity setting that isn't working.
Show Model Number doesn't work.
Show Weight and Show Manufacturer work.

What file should I look at?

Thanks

4 Aug 2007, 10:49 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,608
Plugin Contributions:
0

Re: Product Type Info Page Layout Options Not Working in Custom Template

A link to see the problem?

4 Aug 2007, 10:51 PM
#3
johnd avatar

johnd

Zen Follower

Join Date:
Oct 2006
Location:
New Jersey, USA
Posts:
119
Plugin Contributions:
0

Re: Product Type Info Page Layout Options Not Working in Custom Template

Sorry. Forgot the link.

http://www.magicfoxden.com

5 Aug 2007, 3:09 PM
#4
johnd avatar

johnd

Zen Follower

Join Date:
Oct 2006
Location:
New Jersey, USA
Posts:
119
Plugin Contributions:
0

Re: Product Type Info Page Layout Options Not Working in Custom Template

I solved my problem.

Using Developer's Tool Kit, I worked my way through and found that the code for the display of the qty in stock was in tpl_product_info_display.php.

I compared the default and my custom templates.

I found that the lines for qty and model number were commented out.

I vaguely remembered that I commented them out way back when I didn't know how to get rid of them via admin.

So, I uncommented(?) them and I can control the display via admin.

Now, off to slay another dragon.

5 Aug 2007, 3:20 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Product Type Info Page Layout Options Not Working in Custom Template

There is also the handy dandy switch to turn that OFF in your Admin in the Catalog ... Product Type ... EDIT LAYOUT ...

But then I suppose that would be the easy way to manage the displayed information ... :lamo: