Community Forums 

Main Content

Re:Email notification for different products

    Dec 04 2008 22:04:27



    Join date : 2008-09-18      Posts : 418

    The Remote Call facility can be used to switch e-mail addresses for order notifications based on a returned value, "sd" for example in your product forms

    <input type="hidden" name="sd" value="Category_A"> (for one category)

    <input type="hidden" name="sd" value="Category_B"> (for another category, and so on)

    The remote call script can be modified to send notifications to the appropriate addresses, for example, using the PHP script available at the above-mentioned support page

    if ($_POST["sd"] == "Category_A")
    $MTo = "an e-mail address";

    if ($_POST["sd"] == "Category_B")
    $MTo = "another e-mail address";

    As far as I'm aware, you can't turn off order notifications in cart set-up, so you would still receive a notification e-mail to the primary contact as well the above.

    CAVEAT - As 'just visiting' pointed out, this or any other redirect system can work provided the cart contains only products from the same category. If not, I can't see how this can be done other than having separate carts.