Zen Cart Logo
Forums / General Questions / Changes on the product display page

Changes on the product display page

Locked

Views: 1,225

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
13 Jan 2008, 3:41 PM
#1
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Changes on the product display page

Hi
Is it possible that on the product display page
If the quantity of a particular attribute is zero, its better not diplay it at all?
Lets say out of the color Blue/REd/Green
Blue being zero....is not shown in the listbox to be selected?
Thanks

13 Jan 2008, 3:52 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Changes on the product display page

Zen Cart by default does not perform stock-by-attributes...

You can install the stock by attributes module by kuroi but I am not sure if the admin settings for stock apply as the stock is rolled up into a single value.

13 Jan 2008, 4:00 PM
#3
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Changes on the product display page

Thanks kobra
I have installed stock by attributes but now I want to stop showing attributes which have zero quantity in the product display page
Is this possible?
What are the files which are used for product display page?

13 Jan 2008, 4:17 PM
#4
kobra avatar

kobra

Black Belt

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

Re: Changes on the product display page

/includes/templates/your_template/templates/product_info_display.php

13 Jan 2008, 4:19 PM
#5
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Changes on the product display page

You mean file tpl_product_info_display.php in
\includes\templates\template_default\templates ?

13 Jan 2008, 4:24 PM
#6
kobra avatar

kobra

Black Belt

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

Re: Changes on the product display page

opps!!! yes

13 Jan 2008, 5:00 PM
#7
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Changes on the product display page

Thanks but I dont seem to find the stock attribute quantity in any of these files :(

13 Jan 2008, 5:56 PM
#8
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Changes on the product display page

I am trying to run this query in phpmyadmin but getting strange results

 SELECT pov.products_options_values_id, pov.products_options_values_name, pas.quantity, pa . *
FROM products_with_attributes_stock pas, products_attributes pa, products_options_values pov
WHERE pa.products_id = '150'
AND pas.stock_attributes = pa.products_attribute_id
AND pa.options_id = '1'
AND pa.options_values_id = pov.products_options_values_id
AND pov.language_id = '1'
ORDER BY LPAD( pa.products_options_sort_order, 11, "0" ) , pov.products_options_values_name
LIMIT 0 , 30

MySQL said:
#1054 - Unknown column 'pa.products_attribute_id' in 'where clause'

MySQL said:
#1054 - Unknown column 'pa.products_attribute_id' in 'where clause'

Well, I can see that the table does has the products_attributes_id
Then why this error?

14 Jan 2008, 2:31 AM
#9
kobra avatar

kobra

Black Belt

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

Re: Changes on the product display page

What are the files which are used for product display page?

Thanks but I dont seem to find the stock attribute quantity in any of these files
You did not ask for that?? Look for attributes and those added with the mod

14 Jan 2008, 2:40 AM
#10
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Changes on the product display page

Thanks I did it by changing the attributes.php file! :)

14 Jan 2008, 2:47 AM
#11
kobra avatar

kobra

Black Belt

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

Re: Changes on the product display page

Please post what you changed and why for others finding this thread