Hello,
How to configure one block to show Featured Spares? Because in featured sales block just appear ads from "listings" type.
Thank you,
Vitor
Printable View
Hello,
How to configure one block to show Featured Spares? Because in featured sales block just appear ads from "listings" type.
Thank you,
Vitor
Hello Vitor,
I've already made necessary changes for your website,
will post instruction here in case somebody need similar
1. Admin Panel>>Blocks
There we can find block Featured Spares block. We need to duplicate this block with small difference.
So i've created new block key - featured_sale_spares.
All settings are the same with featured_sale, difference in smarty code. We need to change variable which store listings of this block. '$featured_sale' changed to '$featured_sale_spares'
now we need to get listings in $featured_sale_spares variableCode:Only registered members can view the code.
2. includes/controllers/common.inc.php
Code for Featured Sale (already exists in version)
Code which we need to add for Featured Spares (same as above, but with small changes)Code:Only registered members can view the code.
This way you could create new blocks like Featured Sale for your specific needs.Code:Only registered members can view the code.
Just play with variables of function