BLOG

A LITTLE STORY ABOUT MY JOURNEY

Wocommerce wpse45436_posts_filter with multiple meta_key

Default Wocommerce provide basic function for search result when we want more thins to search we can customise wocommerce function by hook or add_action, Now I want to add filter order by product name and order_type field by customising the “restrict_manage_posts” like:

  By this customisation we can successfully visible and now need to […]

Django translation in URLs and locale switching

Adding locale switcher to templates Django comes with a view, django.views.i18n.set_language(), that sets a user’s language preference and redirects back to the previous page. This view ca be activated by adding URL like (r’^i18n/’, include(‘django.conf.urls.i18n’)), to urlconf (see Below example). In order to add locale switcher to your templates you will have to add a […]