If you look at the details of the view being called, you'll see what the
product_list change you're making won't work.

http://www.bitbucket.org/chris1610/satchmo/src/tip/satchmo/apps/satchmo_store/shop/views/home.py

What you ideally need to do is copy the  home.home view to a new location
and modify the featured variable to return the list you'd like.

Does that make sense?

-Chris

On Fri, Jun 4, 2010 at 1:31 PM, Sachin Goel <[email protected]> wrote:

> I tried out the stuff mentioned at that link in the way mentioned below.
>
> I updated urls.py at satchmo/projects/<myproject> with :
>
> *from django.conf.urls.defaults import *
>
> from satchmo_store.urls import urlpatterns
>
> from satchmo_utils.urlhelper import replace_urlpattern
> from product.models import Product
>
> product_list = []
>
> replacement = url(r'^$', 'satchmo_store.shop.views.home.home',
>             {'all_products_list': product_list}, 'satchmo_shop_home')
> replace_urlpattern(urlpatterns, replacement)*
>
> Please notice that I am passing an empty product list to the index.html but
> still it is displaying all the featured products..I believe I am missing
> something big time here..
>
>
>
>> http://www.satchmoproject.com/docs/dev/customization.html#changing-views
>>
>> Feel free to ask more if that isn't enough for you.
>> Alex
>>
>> On Fri, Jun 4, 2010 at 1:06 PM, Sachin Goel <[email protected]>
>> wrote:
>> > Hi,
>> >
>> > I have two categories of products on my website. Instead of going with
>> the
>> > default representation of featured products on the home page, I want to
>> > present 5-5 products from both categories.
>> > I have copied index.html to my project template location and modified
>> it.
>> > But I am not able to find out, how to over-ride the default home view. I
>> > have tried modifying the view at :
>> > satchmo/apps/satchmo_store/shop/views/home.py, but to no effect.
>> > Please guide me how to over-ride a view for the Satchmo application, as
>> it
>> > will be required extensively for my application.
>> >
>> > Thanks,
>> > Sachin.
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Satchmo users" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected]<satchmo-users%[email protected]>
>> .
>> > For more options, visit this group at
>> > http://groups.google.com/group/satchmo-users?hl=en.
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Satchmo users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<satchmo-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/satchmo-users?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Satchmo users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<satchmo-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/satchmo-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to