New to django cms and shop!

339 views
Skip to first unread message

Maximilian Jackson

unread,
Sep 23, 2012, 9:45:29 PM9/23/12
to djang...@googlegroups.com
Hi everyone! I run a simple store that requires multi-currency and unique promotions. I hope I can bring some insight to this project as well.

I have used X-cart, OpenCart, Magento, VirtueMart, and now Shopp. Ran into many problems along the way. I had problems customizing them to suit my company's needs. I have just started learning django in the past 6 months, and really like the flexibility.

One of the things I am unsure about - after I do a pip install for django-shop, how do I customize the product, cart and checkout pages?

Cheers!
Max

gordon

unread,
Sep 24, 2012, 11:49:43 AM9/24/12
to djang...@googlegroups.com
Hi Max,

How do you want to customize them?  If you are only talking about appearance, then you simply override the templates.  This is how you would tie the shop into your site's layout for example.  The templates included with shop are really only for reference.

Thanks,
Gordon 

Владислав Тарасенко

unread,
Sep 24, 2012, 1:41:02 PM9/24/12
to djang...@googlegroups.com
Hello Maximillan Jackson.

If you want - i can create such store for you.
my email - vladka at webdevelop.pro

gordon

unread,
Sep 25, 2012, 6:51:46 PM9/25/12
to djang...@googlegroups.com
Hi Gordon,
Thanks for replying. I'm new to django, so not sure how to override the templates? Is it the same way we override Admin base templates when we launch a production site? Or we just create templates and then use http://django-shop.readthedocs.org/en/latest/templatetags.html in our templates? Pardon my ignorance, I just want to get some things right. :)  
Best Regards, 
Maximilian Jackson

Max,

Yes, it would be the same way as the admin.  For example, you could adjust the base shop template by copying "shop/templates/shop/base.html" to "yourapp/templates/shop/base.html" and changing the markup.  Just make sure to define the same blocks.  You need to make sure that "yourapp" is listed after "shop" in INSTALLED_APPS in your settings.py file.

Thanks,
Gordon

Maximilian Jackson

unread,
Sep 25, 2012, 8:28:25 PM9/25/12
to djang...@googlegroups.com
Thanks Gordon!

I'm on my way.

gordon

unread,
Sep 26, 2012, 1:46:20 PM9/26/12
to djang...@googlegroups.com


On Tuesday, September 25, 2012 8:28:30 PM UTC-4, Maximilian Jackson wrote:
Thanks Gordon!

I'm on my way.


Good to hear 

Arthur Gonçalves

unread,
Oct 18, 2013, 9:57:38 AM10/18/13
to djang...@googlegroups.com
Dear Gordon, hello!

I'm trying to override django-shop templates (especially the base.html) but following your advice bellow causes no changes (django-shop still uses its default templates).

What I've done so far:

$ django-admin startproject testshop
$ cd testshop
$ django-admin startapp myshop

According to http://django-shop.readthedocs.org/en/latest/getting-started.html, I've correctly created a virtualenv with all dependencies installed with pip, edited testshop/settings.py and testshop/urls.py and synced/migrated the database. Then,

$ cp -Rf ~/.virtualenvs/shop/lib/python2.7/site-packages/shop/templates myshop/

Then, I've edited testshop/myshop/templates/shop/base.html, but nothing happens. I tried to rename testshop/myshop/templates/shop to testshop/myshop/templates/myshop and nothing happened too.

What am I doing wrong?

Kind regards,
Arthur

Tomáš Peterka

unread,
Oct 19, 2013, 12:41:11 PM10/19/13
to djang...@googlegroups.com
You have done a lot of dark magic. I recommend you to start over again and just put your application before "shop" in your INSTALLED_APPS. Then create the customized templates again and everything should be ok.

Cheers, Tomas
Reply all
Reply to author
Forward
0 new messages