On Thu, Oct 23, 2008 at 11:38 AM, Trevor Ochocki <
[EMAIL PROTECTED]> wrote:

>
> What is the proper way to use SHOP_URLS? I am looking to override the
> following:
>

I pretty much never use SHOP_URLS.  It isn't quite enough control for me.
 Instead I set up my sites as I've described on my blog:
http://gosatchmo.com/starting-a-new-store-real-world-project-layout

If you want to replace an urlpattern, then do that in your site/urls.py file
using the urlhelper from satchmo.utils.  Here's an example from one of my
clients, where I am replacing 'auth_login', 'satchmo_checkout_auth_required'
and 'satchmo_checkout-step1':

from django.conf.urls.defaults import *
from satchmo.configuration import config_get_group
from satchmo.urls import urlpatterns
from satchmo.utils import urlhelper

urlpatterns += patterns('myclient.site.views',
    ('^images.xml', 'gallery_view_xml', {}),
    ('^news/', include('banjo.blog.urls')),
    )

payconfig = config_get_group('PAYMENT')

urlpatterns += patterns('',
    #(r'^newsletter/', include('satchmo.newsletter.urls')),
    (r'^feed/', include('satchmo.feeds.urls')),
    (r'^checkout/address/$',
'satchmo.payment.views.contact.contact_info_view',
        {'SSL': payconfig.SSL.value}, 'satchmo_checkout-step1-forced')
)

urlhelper.replace_urlpatterns(
    urlpatterns,
    [
        url(r'^login/', 'sss.django.sss_auth.views.login_signup',
name='auth_login'),
        url(r'^login/$', 'sss.django.sss_auth.views.login_signup',
            kwargs={'template_name' : 'checkout/login_signup.html'},
            name="satchmo_checkout_auth_required"),
        url(r'^$', 'myclient.site.views.checkout_smart_contact',
            kwargs={'SSL': payconfig.SSL.value},
            name='satchmo_checkout-step1'),
    ]
)

---
Bruce Kroeze
http://gosatchmo.com

--~--~---------~--~----~------------~-------~--~----~
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