Posted - 10/09/2023 : 19:23:55
On our website Home page we can display Recommended Products like so:
[font=Courier New]<div class="cell"> <?php [green]$crosssellaction[/green]='recommended'; include_once ( $_SERVER["DOCUMENT_ROOT"] . "/vsadmin/inc/inccrosssell.php") ?> </div>[/font=Courier New]
And in the [maroon]includes.php[/maroon] file there is a [green]$Parameter[/green] to define the Title displayed above that list of Recommended Products:
[font=Courier New][orange]// RECOMMENDED and RELATED PRODUCTS (recommended, related, alsobought, bestsellers)[/orange] [green]$csstyleprefix[/green]='cs'; [orange]// Adds cs prefix to all Recommended Product div CSS classes[/orange] [green]$csrecommendedtitle[/green]='We recommend these products';[/font=Courier New]
We can also display Recommended Menu Categories like so:
[font=Courier New]<div class="cell hc"> <?php [green]$recommendedcategories[/green]=true; include ( $_SERVER["DOCUMENT_ROOT"] . "/vsadmin/inc/inccategories.php") ?> </div>[/font=Courier New]
However, at the present time, there is No Heading displayed above those Recommended Categories, unless you manually add some HTML code to [maroon]index.php[/maroon]
As a better solution, my suggestion is that a new [green]$Parameter[/green] be created that can be added to [maroon]includes.php[/maroon] to define the Title displayed above that list of Recommended Categories. Something like:
[font=Courier New][size=3][orange]// Heading for RECOMMENDED CATEGORIES to be displayed on the Home page[/orange] [green]$recommendedcategoriestitle[/green]='Popular Menu Categories';[/size=3][/font=Courier New]
Regards,
Gary [img]https://itzap.com.au/pics/logo/itzap-website-design-works-mini-logo.png[/img]
|