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

Thread: Make product as Unsellable

  1. #1
    Rita is offline Senior Member
    Join Date
    Mar 2009
    Posts
    124

    Red face Make product as Unsellable

    Is it possible to make a product as unsellable? We are offering one product as free when customer buy 4 different products. So now we cant specify those product ID's in requires product option of free product. and also we don't want customer to buy the free product separately.
    Thanks for you reply in advance.

  2. #2
    Rita is offline Senior Member
    Join Date
    Mar 2009
    Posts
    124

    Unhappy

    Quote Originally Posted by Rita View Post
    Is it possible to make a product as unsellable? We are offering one product as free when customer buy 4 different products. So now we cant specify those product ID's in requires product option of free product. and also we don't want customer to buy the free product separately.
    Thanks for you reply in advance.
    Is it possible to not purchase the free product by itself and only allow it with the other products?

  3. #3
    MarkC is offline Developer
    Join Date
    Aug 2006
    Posts
    166

    Default

    builtin product options like un-publishing, deleting and showbuybutton=false, can categorize the product as "unsellable" but not to the extent that you want to behave(as it will be filtered out).

    One trick you can use is, say product B is the free product required for product A

    Setup product B as:
    1. make a copy of product B's xml package,
    product.simpleproduct.xml.config -> product.simpleproduct_nobuy.xml.config

    2. open the copied file and remove the call to the AddToCartForm extension functions.
    C#/VB.NET Code:
    <xsl:value-of select="aspdnsf:AddtoCartForm(ProductID, VariantID, 1)" disable-output-escaping="yes"/> 
    3. use the _nobuy xmlpackage for product B and zero-out the price.

    Setup Product A as having product B as a required product.

    This would make product B behave as "unsellable" by not having a buy button option when the user views it's product page, but without having the system filter it out.