Creating the new products RSS channel
The shop_product class has the get_rss method which can be used for creating a RSS channel containing a list of recently added products. To create the products RSS channel, create a new page. You don't need to select any template or action for the RSS channel page. Insert the following code to the page content field:
<?= Shop_Product::get_rss( 'New products', 'A list of new products', '/product', 20 ); ?>
The third parameter should point to the default product page. By default, the RSS channel returns 20 products. You can change this value by specifying another value in the last method parameter.
Next: Implementing the Compare Products feature
Previous: Creating the Search page
Return to Building your online store
Comments
No comments posted so far.
Add your comment
Loading form...