Page 1 of 1
Product size in category view
Posted: 04 Jan 2020, 14:24
by marha30
Hello all. Is it possible to display the product size information in the category item view?
Re: Product size in category view
Posted: 04 Jan 2020, 15:57
by marha30
Or. How do i get a variable via PHP - how to print out Length in php.
Re: Product size in category view
Posted: 05 Jan 2020, 15:36
by Jan
marha30 wrote: ↑04 Jan 2020, 14:24
Is it possible to display the product size information in the category item view?
What do you exactly mean with "category item view"? Category view? or Item view?
In Item view, you can display the information when you enable them in options:
In Category view only unit price is displayed, to display all other size information, you need to customize the output.
The items must be loaded from database in:
components\com_phocacart\models\category.php
cca on line 223
These columns should be added to SQL query
Code: Select all
a.weight, a.height, a.width, a.length, a.min_multiple_quantity, a.min_quantity_calculation, a.volume
and they are accessible in category view in variable
$v
components\com_phocacart\views\category\tmpl\default.php
Jan