messir Posted May 12, 2020 Share Posted May 12, 2020 Hi all. How I can change text in shopping cart from Price-Currency, Billing period to Billing period, price and currency? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 12, 2020 Share Posted May 12, 2020 1 minute ago, messir said: How I can change text in shopping cart from Price-Currency, Billing period to Billing period, price and currency? i'm tempted to say by using Language Overrides.... but where exactly in the cart do you mean ? 0 Quote Link to comment Share on other sites More sharing options...
messir Posted May 12, 2020 Author Share Posted May 12, 2020 Here https://prnt.sc/sfgj3m 0 Quote Link to comment Share on other sites More sharing options...
messir Posted May 12, 2020 Author Share Posted May 12, 2020 nobody? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 13, 2020 Share Posted May 13, 2020 so instead of... Quote $4.77USD 1 Month Price ... you want... ? Quote 1 Month Price - $4.77USD do you have any hooks or other code tweaks running on the cart ? I ask because the way you want to display the text is the default way WHMCS does it... ... and so if your site isn't doing that, i'm wondering what is changing the format of the output? 0 Quote Link to comment Share on other sites More sharing options...
messir Posted May 14, 2020 Author Share Posted May 14, 2020 no hooks. Just currency converter. Theme - default. Where I can check the code? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 14, 2020 Share Posted May 14, 2020 5 minutes ago, messir said: Where I can check the code? who wrote the currency converter ? I had a look at the specific template on your site yesterday and it's not been altered - so it's not the template making this change... and if you say that there isn't a separate hook, then it must be an addon. 0 Quote Link to comment Share on other sites More sharing options...
messir Posted May 14, 2020 Author Share Posted May 14, 2020 How I can find why I have the different looks? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 14, 2020 Share Posted May 14, 2020 1 minute ago, messir said: How I can find why I have the different looks? is the currency converter a WHMCS addon? do you have any addons running in WHMCS ?? that would be where I would look. 0 Quote Link to comment Share on other sites More sharing options...
messir Posted May 15, 2020 Author Share Posted May 15, 2020 Addons: https://prnt.sc/sh5957 https://prnt.sc/sh59ee 0 Quote Link to comment Share on other sites More sharing options...
messir Posted May 15, 2020 Author Share Posted May 15, 2020 And one more question. How first show 36 month price anв not from One month? Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 15, 2020 Share Posted May 15, 2020 3 hours ago, messir said: Addons: https://prnt.sc/sh5957 it's the SSL Center addon - I can see the code in the hooks file that's changing the pricing format... you could try deactivating the addon to see if that removes the issue and confirms that to be the cause. (with it disabled, the cart should use the normal format). 3 hours ago, messir said: And one more question. How first show 36 month price and not from One month? that would require a template change to configureproduct.tpl - you would need to reverse the order of the six if statements ~ lines 62-91... and also assign the $billingcycle variable to the longest cycle with a price... that last bit you could do in the template or as a hook, but changing the order of the dropdown would need a template edit. you could fix the layout issue in the template too if you had too - but it would be easier to know if disabling the addon would be an option first. 0 Quote Link to comment Share on other sites More sharing options...
messir Posted May 19, 2020 Author Share Posted May 19, 2020 On 5/15/2020 at 6:10 PM, brian! said: it's the SSL Center addon - I can see the code in the hooks file that's changing the pricing format... you could try deactivating the addon to see if that removes the issue and confirms that to be the cause. (with it disabled, the cart should use the normal format). I dsable the Addon. No changes! So what to do? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 19, 2020 Share Posted May 19, 2020 3 hours ago, messir said: So what to do? what happens if you add the line below to your configuration.php file ? $disable_hook_loading = true; 1 Quote Link to comment Share on other sites More sharing options...
messir Posted May 30, 2020 Author Share Posted May 30, 2020 On 5/19/2020 at 3:49 PM, brian! said: what happens if you add the line below to your configuration.php file ? Same.... No format change. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 30, 2020 Share Posted May 30, 2020 1 hour ago, messir said: Same.... No format change. then you're going to need to add {debug} to the configureproduct.tpl template and post a screenshot of the $pricing array in the popup window it generates after you refresh the page. if you're lucky, the pricing->cycles array should be different than the prices above it - if they're not, then this would be a pain to solve in the template. btw - i'm 105% convinced that it's the SSL addon that's causing this, so it might be worth contacting GoGetSSL about this... if it is the addon, it might be fixable in their code as it isn't encrypted, but that would make updating it more difficult in the future. 0 Quote Link to comment Share on other sites More sharing options...
messir Posted May 30, 2020 Author Share Posted May 30, 2020 7 hours ago, brian! said: then you're going to need to add {debug} to the configureproduct.tpl template and post a screenshot of the $pricing array in the popup window it generates after you refresh the page. I enable in Admin panelDebug mode and error log. Refresh price page but it not popup.... What I do wrong? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 31, 2020 Share Posted May 31, 2020 13 hours ago, messir said: What I do wrong? you would need to add {debug} directly into the template code of the configureproduct.tpl template, save it and then refresh the page... then the popup window should appear. 0 Quote Link to comment Share on other sites More sharing options...
messir Posted May 31, 2020 Author Share Posted May 31, 2020 Core correct write the code and where in file to add? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 31, 2020 Share Posted May 31, 2020 7 minutes ago, messir said: Core correct write the code and where in file to add? you can add {debug} anywhere - for this purpose, it won't really matter. 0 Quote Link to comment Share on other sites More sharing options...
messir Posted May 31, 2020 Author Share Posted May 31, 2020 I mean, need wite - debug: {debug}, etc? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 1, 2020 Share Posted June 1, 2020 you literally just enter {debug} into the template. 🙂 {debug} 0 Quote Link to comment Share on other sites More sharing options...
messir Posted June 1, 2020 Author Share Posted June 1, 2020 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 2, 2020 Share Posted June 2, 2020 dammit - I was hoping the cycles array was going to be unmodified and so that could be used... 😠 in configureproduct.tpl, you could change... <select name="billingcycle" id="inputBillingcycle" class="form-control select-inline" onchange="{if $configurableoptions}updateConfigurableOptions({$i}, this.value);{else}recalctotals();{/if}"> {if $pricing.monthly} <option value="monthly"{if $billingcycle eq "monthly"} selected{/if}> {$pricing.monthly} </option> {/if} {if $pricing.quarterly} <option value="quarterly"{if $billingcycle eq "quarterly"} selected{/if}> {$pricing.quarterly} </option> {/if} {if $pricing.semiannually} <option value="semiannually"{if $billingcycle eq "semiannually"} selected{/if}> {$pricing.semiannually} </option> {/if} {if $pricing.annually} <option value="annually"{if $billingcycle eq "annually"} selected{/if}> {$pricing.annually} </option> {/if} {if $pricing.biennially} <option value="biennially"{if $billingcycle eq "biennially"} selected{/if}> {$pricing.biennially} </option> {/if} {if $pricing.triennially} <option value="triennially"{if $billingcycle eq "triennially"} selected{/if}> {$pricing.triennially} </option> {/if} </select> to... <select name="billingcycle" id="inputBillingcycle" class="form-control select-inline" onchange="{if $configurableoptions}updateConfigurableOptions({$i}, this.value);{else}recalctotals();{/if}"> {if $pricing.monthly} <option value="monthly"{if $billingcycle eq "monthly"} selected{/if}> {$LANG.orderpaymentterm1month} - {$currency.prefix}{$pricing.rawpricing.monthly}{$currency.suffix} </option> {/if} {if $pricing.quarterly} <option value="quarterly"{if $billingcycle eq "quarterly"} selected{/if}> {$LANG.orderpaymentterm3month} - {$currency.prefix}{$pricing.rawpricing.quarterly}{$currency.suffix} </option> {/if} {if $pricing.semiannually} <option value="semiannually"{if $billingcycle eq "semiannually"} selected{/if}> {$LANG.orderpaymentterm6month} - {$currency.prefix}{$pricing.rawpricing.semiannually}{$currency.suffix} </option> {/if} {if $pricing.annually} <option value="annually"{if $billingcycle eq "annually"} selected{/if}> {$LANG.orderpaymentterm12month} - {$currency.prefix}{$pricing.rawpricing.annually}{$currency.suffix} </option> {/if} {if $pricing.biennially} <option value="biennially"{if $billingcycle eq "biennially"} selected{/if}> {$LANG.orderpaymentterm24month} - {$currency.prefix}{$pricing.rawpricing.biennially}{$currency.suffix} </option> {/if} {if $pricing.triennially} <option value="triennially"{if $billingcycle eq "triennially"} selected{/if}> {$LANG.orderpaymentterm36month} - {$currency.prefix}{$pricing.rawpricing.triennially}{$currency.suffix} </option> {/if} </select> that should certainly give you the output that you originally wanted. 🙂 0 Quote Link to comment Share on other sites More sharing options...
messir Posted June 18, 2020 Author Share Posted June 18, 2020 Thanks alot!!! All work now as I wanna! 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.