use existing function to get supplier name
This commit is contained in:
@@ -440,7 +440,7 @@ class Wiaas_Cart {
|
|||||||
|
|
||||||
if ($product->is_type('simple') && !Wiaas_Product_Category::is_installation($product)){
|
if ($product->is_type('simple') && !Wiaas_Product_Category::is_installation($product)){
|
||||||
$supplier_id = Wiaas_Product::get_supplier_id($product->id);
|
$supplier_id = Wiaas_Product::get_supplier_id($product->id);
|
||||||
$supplier_name = Wiaas_Supplier::get_name($supplier_id);
|
$supplier_name = wiaas_get_organization_name($supplier_id);
|
||||||
$suppliers[] = array(
|
$suppliers[] = array(
|
||||||
'id' => $supplier_id,
|
'id' => $supplier_id,
|
||||||
'name' => $supplier_name,
|
'name' => $supplier_name,
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class Wiaas_Supplier
|
|
||||||
*/
|
|
||||||
class Wiaas_Supplier {
|
|
||||||
|
|
||||||
public static function get_name($supplier_id){
|
|
||||||
return wiaas_get_organization_name($supplier_id) ?: 'Unknown';
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user