Viewed
Class Viewed Provides various useful methods for viewed products.
Table of Contents
Methods
- getParentSection() : int|null
- Return parent section id for need section depth.
Methods
getParentSection()
Return parent section id for need section depth.
public
static getParentSection(int $sectionId, int $depth) : int|null
Parameters
- $sectionId : int
-
Section id.
- $depth : int
-
Parent section depth.