last day (31 days later) » 

06:43
1
A: Discount disappears after changing payment method

RakeshYou can add below code in your file at line no. 647 , you had forgot to define variable for $datasend, $sendNewStr = ''; foreach ($send as $param=>$value) { $sendNewStr .= $param . '=' . $value . "\r\n"; } $datasend = ''; $datasend .= substr($sendNewStr, 5, -1);

i added your code $sendNewStr = ''; & I tested it many times, still issue is there.....
which error are you faced now?
in log i am getting Notice: Undefined index: p in app/design/frontend/rwd/theme/template/catalog/category/view‌​.phtml - <?php if($_GET['p']<=1){?> , full code : pastebin.com/F6t0RDcE
if(isset($_GET['p']) && !empty($_GET['p'])){ if($_GET['p']<=1) {} } keep your code in condition
updated code, still i can see same errors in log.....
06:43
from where you have set 'p' variable?
yes pleasae say
hi, thnaks for coming here...... now those errors are not there, but still those original 2 errors i posted in question are still there....
$send .= $param . '=' . $value . "\r\n";}
$datasend .= substr($send, 5, -1);
have you set i have given code, you have to change variable name and define variable before for loop
you can check full log errors in link : link
yes, i used your code $sendNewStr = '';
show your updated code file
06:50
$sendNewStr .= $param.'='.$value."\r\n"; just keep this line without space between word
try with above code or you can log $param and $value which value have you got.
let me check
2017-02-13T06:53:05+00:00 ERR (3): Notice: Undefined variable: param in /var/www/html/sbdev2/app/code/core/Mage/Checkout/Model/Type/Onepage.php on line 647
2017-02-13T06:53:05+00:00 ERR (3): Notice: Undefined variable: value in /var/www/html/sbdev2/app/code/core/Mage/Checkout/Model/Type/Onepage.php on line 647
2017-02-13T06:53:05+00:00 ERR (3): Notice: Undefined variable: sendNewStr in /var/www/html/sbdev2/app/code/core/Mage/Checkout/Model/Type/Onepage.php on line 647
i got above errors after i used this below code
$sendNewStr .= $param . '=' . $value . "\r\n";
then revert back your changes and check value and param value are got or not.
okay is i need to try echo $value; echo $param in onepage.php file ?
yes
okay
pleas check onepage.php
Notice: Undefined variable: param in /var/www/html/sbdev2/app/code/core/Mage/Checkout/Model/Type/Onepage.php on line 951

Notice: Undefined variable: value in /var/www/html/sbdev2/app/code/core/Mage/Checkout/Model/Type/Onepage.php on line 952
i added below codees at the end
echo $param;
echo $value;
07:09
ok
you have to echo this value inside your foreach loop not at the end.
sorry, let me check
updated , now no error in onepage.php
let me check logs
i insetred as like below code
foreach ($send as $param=>$value) {
$send .= $param . '=' . $value . "\r\n";}
$datasend .= substr($send, 5, -1);
mail('[email protected]','PaymentReport',$datasend);
echo $param;
echo $value;
$data['checks'] = Mage_Payment_Model_Method_Abstract::CHECK_USE_CHECKOUT
| Mage_Payment_Model_Method_Abstract::CHECK_USE_FOR_COUNTRY
| Mage_Payment_Model_Method_Abstract::CHECK_USE_FOR_CURRENCY
| Mage_Payment_Model_Method_Abstract::CHECK_ORDER_TOTAL_MIN_MAX
| Mage_Payment_Model_Method_Abstract::CHECK_ZERO_TOTAL;
let me check logs
07:27
sorry for delay
now i can not able to go to next step after selecting payemnt method
after i used above 2 lines of code echo $param; echo $value;
you have to just check value is getting or not for your test purpose, you have to remove both variable from file. if value is proper getting or not so we have print those variable.
okay as i inserted above code, please tell how i can check value is getting or not in this file onepage.php
you can just echo exit for here and check value is getting or not.
sure
i tried
echo $param;
echo $value;
exit();
its displaying blank in this file : onepage
 
2 hours later…
09:39
hi @AshishJagnani
thanks for coming here......
can you please help me
 
4 hours later…
13:48
Hi @BabyinMagento
facing some issue while printing multiple orders invoices.
The data are printing three times.
Could please guide me?

  last day (31 days later) »