Nanox Flow Posted September 12, 2019 Share Posted September 12, 2019 Hi! I'm using the domain pricing table whmcs feeds, all working fine, but i have one question, my website is multi lang, and I want that the feed come with language I have tried whmcs-patch.com/feeds/domainpricing.php?currency=1&language=portuguese-pt and not working Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 14, 2019 Share Posted September 14, 2019 On 12/09/2019 at 07:16, Momed Jussub said: I'm using the domain pricing table whmcs feeds, all working fine, but i have one question, my website is multi lang, and I want that the feed come with language I have tried whmcs-patch.com/feeds/domainpricing.php?currency=1&language=portuguese-pt and not working are you using the feed on an external site (e.g non-WHMCS) ? because the translations work fine when using the domain pricing feed on a WHMCS page (as it knows the current language), but should fail on an external site. I suspect if using on an external site, you'd have to edit the feed coding, create a session, get the language parameter from the URL and set the language in the session.... or I suppose you could go entirely old school, get the language value passed to the feed, and create 4 variables for each language (copy & paste from the language strings) and use those 4 variables as the headings instead of the language strings. 0 Quote Link to comment Share on other sites More sharing options...
Nanox Flow Posted September 17, 2019 Author Share Posted September 17, 2019 How I can create the session on external page? Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 19, 2019 Share Posted September 19, 2019 On 17/09/2019 at 06:57, Momed Jussub said: How I can create the session on external page? I think you would need to create the session in the data feed code rather than on the external page to which the feed is outputting. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.