Pectore Posted January 9, 2019 Share Posted January 9, 2019 I have a CLOUD SLIDER Theme. Unfortunately, there is no translation of two words. Annually and Monthly. $_LANG['orderpaymenttermannually'] = "Annually"; not work$_LANG['cloudSlider']['orderpaymenttermannually'] = "Annually"; not work it does not work only with this theme. Reply from whmcs : Looking in to this, the CloudSlider order form uses embedded Javascript within the ~/templates/orderforms/cloud_slider/products.tpl file to generate this. It does not currently support translations of this string via the language file. For example, on line 352: // Update the displayed price. jQuery("#priceTop").html(displayPrice); jQuery("#priceBottom").html(displayPrice); To achieve this, you would need to edit the javascript to include translations. Unfortunately, this is not something WHMCS Technical Support is able to assist you with. Instead, I recommend posting your question in the Developer Corner at https://whmcs.community where a developer will likely be happy to assist you in editing the Javascript to fulfill your needs. I am asking you for help THNX Thomas. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 10, 2019 Share Posted January 10, 2019 On 1/9/2019 at 5:34 PM, Pectore said: Reply from whmcs : Looking in to this, the CloudSlider order form uses embedded Javascript within the ~/templates/orderforms/cloud_slider/products.tpl file to generate this. It does not currently support translations of this string via the language file. To achieve this, you would need to edit the javascript to include translations. Unfortunately, this is not something WHMCS Technical Support is able to assist you with. Instead, I recommend posting your question in the Developer Corner at https://whmcs.community where a developer will likely be happy to assist you in editing the Javascript to fulfill your needs. On 1/9/2019 at 5:34 PM, Pectore said: I am asking you for help contrary to the line Support gave you, I would suggest changing ~line 241... {if isset($product.pid)} "pid": "{$product.pid}", "displayPrice": "{$product.pricing.minprice.price}", "displayCycle": "{$product.pricing.minprice.cycle}", {else} "bid": "{$product.bid}", "displayPrice": "{$product.displayprice}", "displayCycle": "", {/if} to... {if isset($product.pid)} {assign paymentterm "orderpaymentterm"|cat:$product.pricing.minprice.cycle} "pid": "{$product.pid}", "displayPrice": "{$product.pricing.minprice.price}", "displayCycle": "{$LANG.$paymentterm}", {else} "bid": "{$product.bid}", "displayPrice": "{$product.displayprice}", "displayCycle": "", {/if} there would be other ways to do it, but the above should be the simplest to follow - though keep a copy of those 2 changed lines because a WHMCS update will overwrite these files (if using the automatic updater). 0 Quote Link to comment Share on other sites More sharing options...
Pectore Posted January 10, 2019 Author Share Posted January 10, 2019 Thank you very much ! It works ! 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.