Inhoudsopgave
Cross-sells en Upsells maken
With the
EDD Cross-sells and Upsell extension, creating either a cross-sell or upsell is easy and intuitive. Follow the steps below to setup your Cross-sells/Upsells.
- Visit the download in the WordPress admin that you would like to add cross-sells/upsells for
- Scroll down to the new Cross-Sell & Upsell metabox area
- Set specific headings if necessary, otherwise the headings from the main settings area will be used.
- Click into the provided fields, and select your desired products that will be the Cross-sell or Upsell item(s)
- Save




Cross-sells will be shown on the checkout page, and upsells will be shown on the individual product page.
Cross-sell & Upsell Settings
Once installed and activated, a new EDD Cross-sell Upsell Settings section will appear when navigating to Downloads → Settings → Extensions → Cross-sell & Upsell.

Default Upsell Heading
This is the default heading shown on single product pages. Headings are also customizable on a per-product basis from each individual product page.

Default Cross-sell Heading
This is the default heading shown at checkout for Cross-sell products. Headings are also customizable on a per-product basis from each individual product page. If multiple cross-sells are shown from different products, then the default heading is used.

Maximum Upsells To Show
This is the maximum number of upsells that will be shown on a single product page
Maximum Cross-sells To Show
This is the maximum of upsells that will be shown on a single product page
Removing the Excerpt
To remove the excerpt using the
Cross-sells and Upsells addon, copy and paste one of the following functions (mind the opening PHP tag, as it’s not needed if code is being added to existing PHP file) into your child theme’s functions.php or a custom plugin.
This example shows how you can remove the excerpt.
/**
* EDD Cross-sell & Upsell - Removing the excerpt
* https://easydigitaldownloads.com/extensions/cross-sell-and-upsell/?ref=166
*/
function sumobi_edd_csau_show_excerpt() {
return false;
}
add_filter( 'edd_csau_show_excerpt', 'sumobi_edd_csau_show_excerpt' );
This example shows how you can remove the excerpt, but only on single download pages.
/**
* EDD Cross-sell & Upsell - Removing the excerpt, but only on single download pages
* https://easydigitaldownloads.com/extensions/cross-sell-and-upsell/?ref=166
*/
function sumobi_edd_csau_show_excerpt() {
if ( is_singular( 'download' ) ) {
return false;
}
return true;
}
add_filter( 'edd_csau_show_excerpt', 'sumobi_edd_csau_show_excerpt' );
Unhook Upsells From a Single Product Page
With Cross-sells and Upsells, if you want to remove the upsells from displaying after the content, you can use the filter below.
You may wish to do this if you wanted to re-hook the upsells onto another action hook.
remove_filter( 'the_content', 'edd_csau_single_download_upsells', 100 );
Move Cross-sells About Product Listing on Checkout
Standaard met de Cross-sells and Upsells addon worden de Cross-sells net onder de productlijst op de afrekenpagina getoond. Als je wilt dat ze boven de productlijst verschijnen, kun je de volgende code in het functions.php-bestand van je thema plakken:
function sumobi_edd_csau_move_cross_sells_at_checkout() {
// remove cross-sells from after the product listing at checkout
remove_action( 'edd_after_checkout_cart', 'edd_csau_display_on_checkout_page' );
// add the cross-sells before the product listing at checkout
add_action( 'edd_before_checkout_cart', 'edd_csau_display_on_checkout_page' );
}
add_action( 'template_redirect', 'sumobi_edd_csau_move_cross_sells_at_checkout' );
Custom Headings
Aangepaste koppen op je Cross-sells and Upsells zijn een geweldige manier om niet alleen de verkoop te verhogen, maar ook om klantrelaties op te bouwen.
Upsell Kop
In de Instellingen voor Cross-sells en Upsells kun je een standaard Upsell-kop instellen. Je kunt de kracht van deze extensie verder vergroten door aangepaste koppen te maken voor specifieke Downloads. Elke Download heeft een metabox voor het beheren van de kop.

In de hierboven genoemde metabox heb je de mogelijkheid om een aangepaste kop in te stellen die boven de upsell-producten op de individuele productpagina wordt getoond. Dit is perfect voor het creëren van een persoonlijkere boodschap die betrekking heeft op de aangeboden producten.
Cross-sell Kop
De aangepaste Cross-sell-kop wordt getoond op de afrekenpagina. Als je klant een nummer (bijvoorbeeld van hun favoriete muziekartiest) in hun winkelwagentje heeft, kun je meer nummers van die artiest aanbieden als cross-sell.

Als de klant iets volledig ongerelateerds in zijn winkelwagentje heeft dat ook een cross-sell product triggert, wordt de standaard kop getoond (deze wordt ingesteld door te navigeren naar Downloads → Instellingen → Extensies → Cross-sell & Upsells)
Remove the Stylesheet
De Cross-sells and Upsells addon wordt geleverd met stijlen die de uitvoer van de voorgestelde downloads beïnvloeden.
Je kunt de stylesheet die de extensie laadt verwijderen door de onderstaande code toe te voegen aan het functions.php-bestand van je thema of via een aangepaste plugin.
function sumobi_edd_csau_deregister_styles() {
wp_deregister_style( 'edd-csau-css' );
}
add_action( 'wp_enqueue_scripts', 'sumobi_edd_csau_deregister_styles', 20 );
Filtering Products in the Admin
Met de Cross-sells and Upsells addon kunnen producten worden gefilterd in de WordPress-admin op de hoofd-Downloads-pagina via de dropdown-menu's boven de downloads. Er wordt een nieuw dropdown-menu toegevoegd waar je snel kunt tonen:
- Downloads met cross-sells
- Downloads met upsells
- Downloads met zowel cross-sells als upsells

Gecombineerd met de standaard WordPress-filteropties is het een krachtige manier om snel al je downloads met cross-sells en upsells te vinden.
