Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix category edit link; Add category ID to create product link

  • Loading branch information...
commit 3b274d84415250f94257140d9e966a4e5cd710af 1 parent 8817f38
Joseph Wynn authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 views/admin/catalogue/index.php
6 views/admin/catalogue/index.php
View
@@ -33,8 +33,8 @@
<td><?php echo anchor("admin/simpleshop/catalogue?category_id={$child_category->getId()}", $child_category->getTitle()); ?></td>
<td><?php echo $child_category->getProducts()->count(); ?></td>
<td>
- <?php echo anchor('admin/simpleshop/products/edit/' . $child_category->getId(), lang('global:edit'), 'class="btn orange edit"'); ?>
- <?php echo anchor('admin/simpleshop/products/delete/' . $child_category->getId(), lang('global:delete'), 'class="confirm btn red delete"') ;?>
+ <?php echo anchor('admin/simpleshop/categories/edit/' . $child_category->getId(), lang('global:edit'), 'class="btn orange edit"'); ?>
+ <?php echo anchor('admin/simpleshop/categories/delete/' . $child_category->getId(), lang('global:delete'), 'class="confirm btn red delete"') ;?>
</td>
</tr>
<?php endforeach; ?>
@@ -91,7 +91,7 @@
<?php echo form_close(); ?>
<?php else: ?>
- <p><?php echo lang('no_products'); ?> <?php echo anchor("admin/simpleshop/products/create", lang('create_product_now')); ?></p>
+ <p><?php echo lang('no_products'); ?> <?php echo anchor("admin/simpleshop/products/create?category_id={$category_id}", lang('create_product_now')); ?></p>
<?php endif; ?>
</div>
</section>
Please sign in to comment.
Something went wrong with that request. Please try again.