Shopping Cart Category Mod - View All

Discussion in 'Customization & add-ons' started by crystalmedia, Nov 14, 2013.

  1. crystalmedia

    crystalmedia Member

    Joined:
    Oct 15, 2013
    Messages:
    69
    The Category dropdown doesn't have a view all selection, so I thought this would be helpful. Once a viewer uses the drop down, they become limited to browsing back and forth through categories only.

    With this tiny MOD, you can return them to the original page and have all your products/memberships displayed.

    Open up /application/cart/views/blocks/
    and download the category.phtml file. Add the following listed in red text

    <select name="c" style="width:100%">
    <?php echo $this->formOptions($this->productCategoryOptions) ?>
    <option value="0">View All</option></select>

    The above creates a link in the drop down that points to /cart/index/index?c=0, where c=0 shows the main cart page with all products listed.

    Regards,
    Jon
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Jon,
    Thanks for the code! It will be included in release.

Share This Page