Product size in category view

Phoca Cart - complex e-commerce extension
marha30
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 04 Jan 2020, 14:19

Product size in category view

Post by marha30 »

Hello all. Is it possible to display the product size information in the category item view?
marha30
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 04 Jan 2020, 14:19

Re: Product size in category view

Post by marha30 »

Or. How do i get a variable via PHP - how to print out Length in php.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Product size in category view

Post 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:
Image

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
If you find Phoca extensions useful, please support the project
Post Reply