Wishlist

Presentation

This module must be into your modules/ directory (thelia/local/modules/).

Screenshots

Wishlist

Wishlist

This module allows you to create a wish list containing your favorite products.

How to install

This module must be into your modules/ directory (thelia/local/modules/).

You can download the .zip file of this module or create a git submodule into your project like this :

cd /path-to-thelia
git submodule add https://github.com/thelia-modules/WishList.git local/modules/WishList

Next, go to your Thelia admin panel for module activation.

How to use

This module is very easy to use. It provides you a new loop "wishlist" type, which will list all the products added to your wish list.

To add a product in a wish list, you must give access to a link which should be "/wishlist/add/PRODUCT_ID". To remove a product from the wish list, you must give access to a link which should be "/wishlist/remove/PRODUCT_ID". To clear all product from the wish list, you must give access to a link which should be "/wishlist/clear".

The argument PRODUCT_ID corresponds to the product id to add or remove from your wish list.

Tow Smarty functions are availables :

  • to verify if a product is already in wish list : {in_wishlist product_id="PRODUCT_ID"}
  • to verify if a product is realy in database wish list : {is_saved_in_wishlist product_id="PRODUCT_ID"}
{* $ID = product ID *}

{if {in_wishlist product_id="$ID"}}
    <a href="{url path="/wishlist/remove/$ID"}">{intl l="Remove from wish list"}</a>

    {loop type="auth" name="customer_info_block" role="CUSTOMER"}
        {if !{is_saved_in_wishlist product_id="$ID"}}
            <p>This product is not really in your wish list. To really add, click the button below.</p>
            <a class="btn btn-default" href="{url path="/wishlist/add/$ID"}">{intl l="Add to wish list"}</a>
        {/if}
    {/loop}
{else}
    <a href="{url path="/wishlist/add/$ID"}">{intl l="Add to wish list"}</a>
{/if}

Here is an example of using the "wishlist" loop :

{loop name="wishlist" type="wishlist"}
    {loop name="products-in-wishlist" type="product" id="{$WISHLIST_PRODUCT_LIST}"}
        <h1>{$TITLE}</h1>
        <p>{$DESCRIPTION|truncate:100 nofilter}</p>
        <a href="{url path="/wishlist/remove/$ID"}">{intl l="Remove from wish list"}</a>
    {/loop}
{/loop}
Download
Wishlist Download

Wishlist

This module will allow you to create wishlist !

Compatibility :

Thelia 2.0

Author :

Say Hi & Get in Touch

info@thelia.net - +33(0)4 44 05 31 00

Thelia Network English
E-commerce solution

E-commerce software, useful to create and manage online stores, published under a free license. Discover our new version, based on many modern technologies !

Download Thelia
Business

A team of experts at your service.

Showcase

Over 7000 online stores powered by Thelia

Modules

Customize your Thelia.

Openstudio

Thelia editor