HomeHome Product Discus... Product Discus...SmithCartSmithCartSmith Featured Product Module - New ReleasesSmith Featured Product Module - New Releases
Previous
 
Next
New Post
1/2/2013 4:05 PM
 
Hello -

I'm curious, how does the smith featured product module determine which products are new, and which are not?

I just did a re-load of my product via import, and this module is loading hundreds of results, which is greatly slowing down the page load time.

Is there any way to set a limit on how many newly released products are displayed?

Thanks  - Alex
 
New Post
1/2/2013 8:04 PM
 
Hi Alex, 
To change the query of featured products module new releases you can do either of the following:

1.  The logic for the new releases sproc is 30 days from the product create date so you could issue a sql update stmt to change the createdate of your products to prevent them from being displayed.

2.  If you modify the following sproc and change the where clause as highlighted below to change the date logic:

ALTER PROCEDURE [dbo].[dnn_Smith_ListFeaturedNewReleases]
@PortalId int
AS

SELECT
[ProductID], [CategoryID], [Manufacturer], [ModelNumber], [ModelName], [ProductImage], 
[ThumbnailImage], [UnitCost], memberprice, [QuantityOnHand], [Summary], [Description], [DownloadUrl],
[Featured], [Archived], [Weight], [SortOrder], [ExcludeCoupon], [Items], [Share], [TabModuleId],
[CreatedByUser], [CreatedDate], [Recurring], [SubscriptionInterval], [RecurringOccurances], [AddDnnRole], 
[BundleID], [RequireLogin], [UsePriPriceWght], [MasterBundleID], seourl, minorderqty, maxorderqty, [TaxRate], SalePrice
FROM dnn_Smith_Products 
where logicallydeleted <> 1 and Archived != 1 and HideProduct != 1 and CreatedDate >= dateadd(d,-30,GETDATE()) and PortalId = @PortalId
order by SortOrder , ModelName



Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
1/3/2013 11:33 AM
 
This is great Scott - thanks for sharing.

Sorry if I was not clear, but I think what is was looking for is just a way to limit the number of products displayed by the featured products module in the new releases category.

After doing a big import, that list gets mighty long. Slows down load times.

Alex
 
New Post
2/5/2013 10:59 PM
 
Hi Alex,

I recommend issuing a sql update stmt to change the createdate of your products to prevent them from being displayed.
 
New Post
2/6/2013 8:27 AM
 
Thanks Kevin, that's exactly what I did.
 
New Post
2/7/2013 4:07 PM
 
Thanks for the update!
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartSmith Featured Product Module - New ReleasesSmith Featured Product Module - New Releases