Commit 51388dad authored by anthonylindsay's avatar anthonylindsay

Changed the no products message to include a link to the add products page....

Changed the no products message to include a link to the add products page. Removed redundant get_products call.
parent 66fa85d5
......@@ -203,10 +203,10 @@ function commerce_popular_products_settings_form($form, &$form_state) {
else {
$form['product_types'] = array(
'#title' => t('Product Types.'),
'#markup' => t('<h4>Product types</h4><p>You have not defined any product types. You need to define some first.</p>'),
'#markup' => t('<h4>Product types</h4><p>You have not defined any product types. You need to <a href = "/admin/commerce/products/types/add">define some</a> first.</p>'),
);
}
$product_types = commerce_popular_products_get_product_types();
$options = array();
foreach ($product_types as $type) {
$options[$type] = $type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment