Hi @cheffie1 ,
You have an error in your code on this line :
<input type="hidden" name="amount" value="<?php echo $row['price'];€ ?>"/>
The “€” symbol should not be inside php tags, or at least between quotes.
You can try either :
<input type="hidden" name="amount" value="<?php echo $row['price'] . '€'; ?>"/>
or :
<input type="hidden" name="amount" value="<?php echo $row['price']; ?>€"/>
I did not get any error after correction.
Here is the whole code :
<h1>Your payment has been successful.</h1>
<input type="hidden" name="item_name" value="<?php echo $row['name']; ?>"/>
<input type="hidden" name="item_number" value="<?php echo $row['id']; ?>"/>
<input type="hidden" name="amount" value="<?php echo $row['price']; ?>€"/>
Could you try this and let me know if it works ?
Best regards
-
This reply was modified 5 years, 11 months ago by
ikanaweb.
-
This reply was modified 5 years, 11 months ago by
ikanaweb.
Thread Starter
Anonymous User 17650761
(@anonymized-17650761)
I have tried:
<input type=”hidden” name=”amount” value=”<?php echo $row[‘price’] . ‘€’; ?>”/>
And it is not getting displayed. There is definitely a issue.
Thread Starter
Anonymous User 17650761
(@anonymized-17650761)
Plugin active:
Your payment has been successful.
(written as h1, input fields not shown)
Plugin deactivated:
<h1>Your payment has been successful.</h1>
<input type=”hidden” name=”item_name” value=”<?php echo $row[‘name’]; ?>”/>
<input type=”hidden” name=”item_number” value=”<?php echo $row[‘id’]; ?>”/>
<input type=”hidden” name=”amount” value=”<?php echo $row[‘price’]; ?>€”/>
Thanks for your response.
I don’t get what you are trying to do with this code.
Hidden inputs fields are not meant to be displayed (that why they are hidden)
Do you actually want to display the code and not execute it on a page ?
Can you give me a link to the page where the code is executed ?
Thanks
Thread Starter
Anonymous User 17650761
(@anonymized-17650761)
Correct. I just want it to be shown / displayed. Not executed.
Without your plugin:
<h1>Your payment has been successful.</h1>
<input type="hidden" name="item_name" value="<?php echo $row['name']; ?>">
<input type="hidden" name="item_number" value="<?php echo $row['id']; ?>">
<input type="hidden" name="amount" value="<?php echo $row['price'] . '€'; ?>"/>
<input type="hidden" name="currency_code" value="EUR">
With your plugin:
Your payment has been successful.
Demo:
https://mattionline.de/test/
With your plugin activated the code is getting executed instead of displayed. The h1 tag is executed and the input field text is getting executed.
-
This reply was modified 5 years, 11 months ago by
Anonymous User 17650761.
-
This reply was modified 5 years, 11 months ago by
Anonymous User 17650761.
-
This reply was modified 5 years, 11 months ago by
Anonymous User 17650761.
-
This reply was modified 5 years, 11 months ago by
Anonymous User 17650761.
Hi @cheffie1
Many thanks for the details.
Thanks to you feedback, the bug has been fixed and the patch will be available soon.
While waiting for the incoming version, you can deactivate the plugin.
Best regards
Hi @cheffie1
A new version of the plugin is available, can you give it a try ?
Best regards