By Christian Harel on Tuesday, 23 October 2018
Posted in General Issues
Likes 0
Views 540
Votes 0
hello i use TVA apps with 20%
user need to set price plan without TVA
in invoice payplans display price without + TVA sum + total
but how to display simply total price with TVA in plans view ? did we have a function for with (to display price with or without TVA)
for now i override view with php caclulation *1.20 but not clear have greate round value (for exemple 108.33€ without TVA = 130€ but with a single php function it display 129€)
regards
Hello Christian,

You have already enabled Display plan price included with tax on subscribe page option in basic tax app , so plan price with tax will be shown on plan page.
Can you please share screen shot for which page you are talking , so i'll be able to check.

Thank you for understanding !
·
Tuesday, 23 October 2018 12:24
·
0 Likes
·
0 Votes
·
0 Comments
·
no it display price without tax (img 1)
need to display (img2)
·
Tuesday, 23 October 2018 14:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Your site ftp seems not working, can you please update me the credentials again so i'll debug this issue.

Response: 530 Login authentication failed
Error: Critical error: Could not connect to server
·
Tuesday, 23 October 2018 18:15
·
0 Likes
·
0 Votes
·
0 Comments
·
i update my site information
·
Tuesday, 23 October 2018 19:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I've already helped you to show plan price including tax on your site.
Pease take a look on this and let me know if still issue persist.
·
Wednesday, 24 October 2018 11:24
·
0 Likes
·
0 Votes
·
0 Comments
·
cool it great ! can you explain the correction ? did you add something in code ?
·
Wednesday, 24 October 2018 14:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah just a light question about this view hox to display number of frequency
like echo PayplansHelperFormat::planTime($plan->getFrequency()); (that doesn't work i know)
i want to display a message like this
"Price for 1 month while X mois"
X is frequency in plan
if you add function to display X month/year/day it will be perfect
thanks for your PERFECT support
·
Wednesday, 24 October 2018 14:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Christian,

can you explain the correction ? did you add something in code ?
I've done the changes on below mentioned file path.
root/plugins/payplans/basictax/basictax.php

i want to display a message like this
"Price for 1 month while X mois"

Where you want to add this , try to attach screen shot , so i'll check it.

thanks for your PERFECT support
Thank you so much for your kind words.
·
Wednesday, 24 October 2018 16:10
·
0 Likes
·
0 Votes
·
0 Comments
·
here https://les-ethipreneurs.com/plan-d-achat
when i use recurring plan i use divide all my price peer month
like 770€ for 8 month
in recurring mode i have a plan 96.24€/month while 8 month
i want to display this information
in my defaut_plan.php i change code in line 46

<div class="pp-plan-time muted">
<?php if($plan->isRecurring() !== false){
echo 'Par mois pendant';
//echo PayplansHelperFormat::planTime($plan->getFrequency()); // need to display frenquency here
} else {
echo XiText::_('COM_PAYPLANS_PLAN_PRICE_TIME_SEPERATOR_FOR') ;
echo PayplansHelperFormat::planTime($plan->getExpiration());
}
?>


thanks
·
Wednesday, 24 October 2018 16:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

The changes you made id not correct way. Let me know your plan expiration for recurring payment id for 1 month only.
Update me.
·
Wednesday, 24 October 2018 19:52
·
0 Likes
·
0 Votes
·
0 Comments
·
hello
in my plan config i have

regular price (ex 80€)
expiration time (1 month)
number of recurrence (8)

=> i want to display

"{regular price} par mois pendant {reccurence}"

for this exemple "

"80€ par mois pendant 8 mois"

i only need number of reccurence word "mois" will be hard coded
you understand more
·
Wednesday, 24 October 2018 20:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

To do the changes you needed, you need to follow below mentioned steps.
1. Go to root/language/en-GB/en-GB.com_payplans.ini, find below mentioned language files

COM_PAYPLANS_PLAN_PRICE_TIME_SEPERATOR="/"
COM_PAYPLANS_PLAN_MONTH="month"


Replace those language strings as

COM_PAYPLANS_PLAN_PRICE_TIME_SEPERATOR="par"
COM_PAYPLANS_PLAN_MONTH="mois pendant"


2. Go to root/components/com_payplans/templates/default/plan/default_plan.php, near line no. 40 find below mentioned code

<?php echo PayplansHelperFormat::planTime($plan->getExpiration()); ?>


Replace with

<?php $str = PayplansHelperFormat::planTime($plan->getExpiration()); ?>
<?php echo str_replace('1 ','',$str); ?>


Update me if you have any query.
·
Thursday, 25 October 2018 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
ok i will test it
i found an other bug for taxe display
in user dashboard
for recurring plan
price is good for alert message
but in table is price without taxe see my screenshot
thanks
·
Thursday, 25 October 2018 14:37
·
0 Likes
·
0 Votes
·
0 Comments
·
i use your code but no number was displayed
·
Thursday, 25 October 2018 15:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Sorry , i shared wrong code.
Please use below mentioned code.

<?php $str = PayplansHelperFormat::planTime($plan->getExpiration()); ?>
<?php echo str_replace('1 ','',$str)." pendant ". $plan->getRecurrenceCount()." mois"; ?>


In place of

<?php echo PayplansHelperFormat:lanTime($plan->getExpiration()); ?>


Update me if still issue persist.
·
Thursday, 25 October 2018 18:10
·
0 Likes
·
0 Votes
·
0 Comments
·
code is good !
·
Thursday, 25 October 2018 18:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Your most welcome.
·
Thursday, 25 October 2018 19:24
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post