Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Direct URL to product

  1. #1
    babslimo is offline Member
    Join Date
    Apr 2008
    Location
    North Carolina
    Posts
    67

    Default Direct URL to product

    I know I've seen this a thousand times in the forums, but darned if I can find it today when I need it! I need to give a third party application provider a standard URL that he can use to link directly to products in our new store. He won't know the AspDotNetStorefront product id, but he will know the SKU, so I was thinking that http://www.mystore.com/search.aspx?SKU=1111 should work, but it does not. Ideas? THANKS!!!
    Annette L. Fowler
    Beacon Technologies
    http://www.beacontechnologies.com

  2. #2
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    The issue with direct links to products by SKU is that AspDotNetStorefront does not enforce a unique value on SKUs (because a full SKU can be spread across products, variants, variant sizes, and variant colors...therefore although multiple products may have the exact same sku, once they are connected with their variants they ultimately may have different SKUs). If you know that all of your products will have unique skus and you aren't really concerned about searching on a full sku (SKU + variant SKU suffix + color sku modifiers + size sku modifiers) then you could accomplish this by modifying the showproduct.aspx page. You'll can link to showproduct.aspx?sku=1111, pull the product sku from the querstring
    Code:
    String pSKU = CommonLogic.QueryStringCanBeDangerousContent("sku");
    and then if the sku exists use that to query the database instead of the product id (searches on product id by default), and then if the sku doesn't exist or is empty use the default behavior.
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>