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
Run(string, string, string)
Runs deleting.
public static void Run(string productId, string groupId, string languageId)
Parameters
RunCleanUp()
Deletes all products that don't have a group.
public static void RunCleanUp()