Skip to content
Snippets Groups Projects
Commit c0890556 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

V4.99: Fixed manufacturers list; released plugin template

parent dbcc19cb
No related branches found
No related tags found
No related merge requests found
File added
File added
File added
...@@ -663,7 +663,9 @@ class plgVmShipmentRules_Shipping_Base extends vmPSPlugin { ...@@ -663,7 +663,9 @@ class plgVmShipmentRules_Shipping_Base extends vmPSPlugin {
$skus[] = $product->product_sku; $skus[] = $product->product_sku;
$categories = array_merge ($categories, $product->categories); $categories = array_merge ($categories, $product->categories);
$vendors[] = $product->virtuemart_vendor_id; $vendors[] = $product->virtuemart_vendor_id;
if ($product->virtuemart_manufacturer_id) { if (is_array($product->virtuemart_manufacturer_id)) {
$manufacturers = array_merge($manufacturers, $product->virtuemart_manufacturer_id);
} elseif ($product->virtuemart_manufacturer_id) {
$manufacturers[] = $product->virtuemart_manufacturer_id; $manufacturers[] = $product->virtuemart_manufacturer_id;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment