how to add more product category in cartridge, the default one is shop ,I

105 views
Skip to first unread message

lu zou

unread,
Jan 22, 2014, 7:21:32 AM1/22/14
to mezzani...@googlegroups.com
how to add more product category in cartridge, the default one is shop ,I need to add more category ,for example ,some product is hot sale ,and some product is previous product which is out of sale but popular ,different category will display on the different places of the web page 

lu zou

unread,
Jan 22, 2014, 8:12:55 AM1/22/14
to mezzani...@googlegroups.com
make it more specifically . in shop/templates/pages/category.html the page simply list all the products on the page SHOP (which is the main page of products listing)
the code as below:
<div class="row product-list">
{% for product in products.object_list %}
    <div class="col-xs-6 col-sm-4 col-lg-3 product-thumb">
    <a href="{{ product.get_absolute_url }}" class="thumbnail">
        {% if product.image %}
     ………..
    ………...
COULD  you tell me how to get the specific category of products (e.g. the not available products still not for sell ones ) out of the all the products ?. or get the available for sell products out of all the products.  also how can I generate a new kind of products (e.g. hot sale ones which are very popular) ? may I generate a new kind in the admin account ,or may I manipulate the codes ? I can see only one category of product in the admin account ,don not know how to generate a new one

Mehmet Özgür Bayhan

unread,
Jan 22, 2014, 8:37:49 AM1/22/14
to mezzani...@googlegroups.com
Why don't u try workarounds? For example Create a new page type for out of order products ond only show them in it or u may define page with what u want. You may also define your common attributes for order objects by monkeypatch or mezzanine way model patch and filter with them for this. Or maybe u may solve your issues just with workarounds over categories without touching any code. What do u exactly want?. So scattered answers for so scattered questions (:


2014/1/22 lu zou <zoulu...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

邹璐

unread,
Jan 22, 2014, 8:52:46 AM1/22/14
to mezzani...@googlegroups.com
the main goal is to display three kinds of products in one page ,let 's say on the left which is hot sale ones , in the middle is the available ones  ,one the right is the ones that not available for sell but used be popular :) ,I am thinking about how to add the three kinds of products both in the SHOP page ,also can be easily added or deleted in the admin account :}


2014/1/22 Mehmet Özgür Bayhan <mozgur...@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "Mezzanine Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mezzanine-users/tT0JcETOs94/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mezzanine-use...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
BEIJING UNIVERSITY OF AERONAUTICS AND ASTRONAUTICS

msn:zoulu...@live.cn
ZouLu

Mehmet Özgür Bayhan

unread,
Jan 22, 2014, 11:01:51 AM1/22/14
to mezzani...@googlegroups.com
So u must use your custom page type.

U may start from here : http://mezzanine.jupo.org/docs/content-architecture.html

Read carefully. Your solution is in there (:


2014/1/22 邹璐 <zoulu...@gmail.com>

邹璐

unread,
Jan 22, 2014, 7:48:08 PM1/22/14
to mezzani...@googlegroups.com
very helpful! thanks:)


2014/1/23 Mehmet Özgür Bayhan <mozgur...@gmail.com>
Reply all
Reply to author
Forward
0 new messages