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 6 of 6

Thread: Link to Product Details page similar to addtocart?

  1. #1
    akeller is offline Member
    Join Date
    Dec 2008
    Posts
    78

    Default Link to Product Details page similar to addtocart?

    Is there a way to link to a product details page similar to the way you can link to
    cart pages from external/existing site pages? I know you have to pass the ProductID and the VariantID when passing to the shopping cart. If this is possible could you show me the format of the url link for linking to the correct product details page?

    Thanks.

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    Not sure what exactly you're after here...just the product URL format? That's going to be:

    p-###-product-name-with-dashes-for-spaces-and-no-special-characters.aspx (where ### is the product ID)

  3. #3
    akeller is offline Member
    Join Date
    Dec 2008
    Posts
    78

    Default

    I am trying to make an external link that when a user clicks the link they will be sent to the product details for the item specified in the querystring.

    so for example here is the add to cart link

    Code:
    http://www.aspdnsfSite.com/addtocart.aspx?returnurl=ShoppingCart.aspx?ProductID=123&VariantID=321&Quantity=2
    My question is, is there a way to build a similar url link to the product details page

    something similar to the addtocart link

    example:
    Code:
    http://www.aspdnsfSite.com/productDetails.aspx?ProductID=123&VariantID=321

  4. #4
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    Ahh, that's easy enough, just link to showproduct.aspx:

    Code:
    http://www.site.com/showproduct.aspx?productid=153
    If you want to link to that page AND add the item to the cart at the same time:

    Code:
    http://www.site.com/addtocart.aspx?productid=153&variand=162&quantity=1&returnurl=showproduct.aspx?productid=153&SEName=fusebox-wine-blending-kit

  5. #5
    akeller is offline Member
    Join Date
    Dec 2008
    Posts
    78

    Default

    Thanks Scott for sticking with me! You are awesome! I always search the forums and find my answer but as a last resort I decide to post a question. I also looked through the online manual for an answer but couldn't find what I was looking for. Maybe didn't look hard enough


    Thanks again Scott!

  6. #6
    philipb is offline Junior Member
    Join Date
    Jul 2010
    Location
    Ft. Lauderdale, Florida
    Posts
    22

    Default

    Ok, I know this is an old post, but I have a question along the same lines...

    I have an external (to ADNSF, anyway) datastore of products that I need to be able to link into a customers cart.

    Requirements:
    1) I must (for business reasons) keep this db of products separate from the ADNSF product set.
    2) I must be able to "deep-link" from the micro-site that serves as the UI for this external datastore so that the product is added to the customer's order. (Yes, I need ADNSF to add a product to an order that it has no prior knowledge of.)
    3) The order must be normal in all other respects.

    Has anyone here had any success with anything like this before?

    Thanks!

    Phil