Jump to content

Recommended Posts

Posted

I'm working on implementing apeisa's shop module in our new multilanguage website. But when i switch to the english version of the site it fails to find the order.

The selector used:

template=sc-order, sc_session={$sid}, status=unpublished, limit=1, sort=-created

returns the correct page on the default language, but returns nothing on a secondary language.

I've checked the session and that remains exactly the same.

I've found that when I check the active box on the 2nd language url on it works again. But haven't found a way to automatically do this when creating the orders.

Posted

Hey SiNNuT,

Thank you for your help.

My search skills have failed me.

The solution Soma offered (slightly modified) worked in my situation and now my customers can shop in happyness.

  • Like 1
Posted

Glad you got it sorted. If you've searched via the native forum search i'm gonna give you a tip:

Always use Google to search the forum. Native search is downright useless most of the times and pretty crappy at best.

"site:processwire.com/talk set language active api" in Google would have given some results :)

Posted

I always use google to find my answers, although without the site:processwire.com/talk (PW forums tend to be the top 10 results anyway).

But for some reason I couldn't find it anywhere. Guess my searched weren't formatted as they should've (overcomplicated things)

Thanks once more

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...