get_api_taxonomy_sku_by_slug( string $type, string $slug, string $sub_slug = "" ): string

Ritorna lo sku dell'elemento passato nei parametri $type e $slug (se necessario anche $sub_slug).

Blade support

No

Parametri

$type string required
Tipo di elemento.

Valori accettati:
  • "products_categories"
  • "products_seasons"
  • "products_lines"
  • "products_attributes" (รจ necessario passare il $sub_slug)
$slug string required
Lo slug del tipo elemento.
$sub_slug string optional
Lo slug del termine dell'elemento principale.

Default:""

Ritorno

string Se non viene trovato un riscontro ritorna "" altrimenti lo sku.