Table of Contents

Class ProductDeleting

Namespace
Dynamicweb.Ecommerce.Products
Assembly
Dynamicweb.Ecommerce.dll
Represents methods for deleting products.
public class ProductDeleting
Inheritance
ProductDeleting
Inherited Members

Examples

using System;
using Dynamicweb.Ecommerce.Products;

namespace Dynamicweb.Ecommerce.Examples.Products
{
    public class ProductDeleteHandlerSample
    {
        public void CleanUp()
        {
            //Clean up. Remove all products that don't have a group
            try
            {
                ProductDeleting.RunCleanUp();
            }
            catch (Exception)
            {
                //ToDo: insert your code here.
            }
        }
    }
}

Methods

RemoveParagraphModuleSetting(ProductCollection)

Removes the product paragraph XML.
public static void RemoveParagraphModuleSetting(ProductCollection products)

Parameters

products ProductCollection
The products.

Run(ProductCollection, Group)

Runs deleting.
public static void Run(ProductCollection products, Group group)

Parameters

products ProductCollection
The products.
group Group
The group.

Run(ProductCollection, Group, string)

Runs deleting.
public static void Run(ProductCollection products, Group group, string languageId)

Parameters

products ProductCollection
The products.
group Group
The group.
languageId string
The language ID.

Run(ProductCollection, GroupCollection)

Runs deleting.
public static void Run(ProductCollection products, GroupCollection groups)

Parameters

products ProductCollection
The products.
groups GroupCollection
The groups.

Run(string, string)

Runs deleting.
public static void Run(string productId, string groupId)

Parameters

productId string
The product id.
groupId string
The group id.

Run(string, string, string)

Runs deleting.
public static void Run(string productId, string groupId, string languageId)

Parameters

productId string
The product id.
groupId string
The group id.
languageId string
The language id.

RunCleanUp()

Deletes all products that don't have a group.
public static void RunCleanUp()
To top