Latest Products Widget

Latest Products widget allows admin to display new products that are recently added into their site. Admin can set to display all new products that have been added to the shopping cart during a defined period.

To setup New Products Widget, set the following Software Configuration options:

Xnewproductwidget

Setting this to Yes will display the New Product widget in the homepage.

XNewProductDuration

Enter number of days to show all new products that have been added to the shopping cart during the defined period.

For example, adding 3 will show all products that have been added in the last 3 days.

XNewProductTemplate

The template used when displaying new products using a template.

XNewProductsfrontpagemaxcolumns

The number of columns of New Products to display on the home page.

NOTE :
Since VPCART 8.00, this config is no longer in use since the columns now are automatically controlled by Bootstrap.

XNewProductsfrontpagemaxrecords

The number of records of New Products to display on the home page.


LatestProducts widget is using template tmp_default.htm and the sub routine below running the LatestProduct widget:

[DISPLAYNEWPRODUCTS SUB]

If you set Xnewproductwidget to Yes, then Latest Products widget will be displayed in the homepage.

This will generate a display of new products that have been added to the shopping cart during the defined period using the configuration “XNewProductDuration”.

You can edit the title “Latest Products” by editing the language keyword ”langcommonlatestproduct”  in the administration : Advanced Settings > International > Edit Language tab. Change the value to your desired title and Reset Language to see the changes.

NOTE : You can change the title for the “Product Highlights” below the Latest Products by following the same direction above, edit the language keyword “langcommonrandomproduct”.
Or you can change from Layout Manager under “randomproducts” and edit the Label Name.

With VPCart, we also have a special page included, it is called “shopnewproducts.asp”.
Calling this page will load the latest new products based on config “xNewProductDuration”.
For example, if your config “xNewProductDuration” value is 90, then if you load this page eg http://www.example.com/shopnewproducts.asp it will redirect to http://www.example.com/ shopdisplayproducts.asp?search=yes&cat=New Products and load the latest 90 days added products.

If you need a new menu in your site to load recent added products, you can add the page “shopnewproducts.asp” as the new menu link.