How Can I Override These Templates?

23 views
Skip to first unread message

easypie

unread,
May 9, 2012, 7:57:41 PM5/9/12
to satchm...@googlegroups.com
How would I override these 2 templates (shop)? Do I have to merge them into 1 dir like this:  /home/user/mysite/templates/shop/{file1,file2,file3.html}? I tried moving checkout into /shop/checkout/ but it didn't work. Is there a less messy alternative to overriding these files?

Olivier Lauret

unread,
May 10, 2012, 2:27:20 AM5/10/12
to satchm...@googlegroups.com

Hi,

In Satchmo, it is very easy to change a default template. Just move these templates in your site using the same directory structure under templates and the job is done (well, almost, now you have to do the changes in the files). For instance, in the payment example you gave, just copy the html files in your templates/shop/checkout. Make sure you don't have other templates/shop/checkout directories in other of your apps in your site, otherwise they might be the ones which will be taken into consideration.

Hope it helps.

Regards,
Olivier

--
You received this message because you are subscribed to the Google Groups "Satchmo users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/satchmo-users/-/GGIlCDMi_0sJ.
To post to this group, send email to satchm...@googlegroups.com.
To unsubscribe from this group, send email to satchmo-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
Reply all
Reply to author
Forward
0 new messages