May 15, 2017 08:44
but i don't want to display terms and condition checkbox
May 15, 2017 08:44
it's in default magento for terms and condition
May 15, 2017 08:33
??
May 15, 2017 08:33
so how to pass this condition,
May 15, 2017 08:33
but in /a‌​greements.phtml also, I need to pass it inside

<?php if (!$this->getAgreements()) return; ?>
<form action="" id="checkout-agreements" onsubmit="return false;">
May 15, 2017 08:24
Please check
May 15, 2017 08:24
May 15, 2017 08:23
May 15, 2017 08:23
But i can upload image
May 15, 2017 08:23
It's in my local system , not in live
May 15, 2017 08:22
but i want it after place order button
May 15, 2017 08:22
and i am getting value
May 15, 2017 08:21
Yes i placed in a‌​greements.phtml
May 15, 2017 08:21
Hi
May 15, 2017 08:16
this is my code in frontend/rwd/default/template/checkout/onepage/review/button‌​.phtml
May 15, 2017 08:16
<input type="checkbox" name="is_subscribed" title="<?php echo $this->__('Sign Up for Newsletter') ?>" value="1" checked="checked" class="checkbox" />
May 15, 2017 08:16
@GopalPatel : It's not working. I am getting null value
 
Feb 6, 2017 12:39
check after delete cache once
Feb 6, 2017 12:38
order status can change
Feb 6, 2017 12:36
or added any checkout related extension
Feb 6, 2017 12:36
have do done any customization in payment method?
Feb 6, 2017 12:32
Hi,

use sales_order_place_after event.

So, in the observer, you will get increment id of new order,
after that you need to get old order increment id .

$newIncrementId = '1321231231-1';
$oldOrderIncrementId = strstr($newIncrementId, '-', true);


Then Load your old order and update the status.


$orderModel = Mage::getModel('sales/order')->load($oldOrderIncrementId);
$orderId = $orderModel->getId();
$orderModel->setState(Mage_Sales_Model_Order::STATE_NEW, true);
$orderModel->setId($orderId);
Feb 6, 2017 12:25
let me check
Feb 6, 2017 12:25
yes
Feb 6, 2017 12:23
Hi
Feb 6, 2017 12:21
try this code
Feb 6, 2017 12:21
$order = $observer->getEvent()->getOrder();
if(!$order->getId()):
$orderModel = Mage::getModel('sales/order')->load($order->getId());
$orderModel->setState(Mage_Sales_Model_Order::STATE_NEW, true);
$orderModel->setId($order->getId());
$orderModel->save();
endif;
Feb 6, 2017 12:21
check updated answer
Feb 6, 2017 12:21
and no need to write save();
Feb 6, 2017 12:21
better to use sales_order_place_after because order is not saved in sales_order_save_after
 
Feb 3, 2017 08:57
inside observer get order Id
Feb 3, 2017 07:34
first u write an observer , so after placing order you can update state to pending again
Feb 3, 2017 07:34
yes
Feb 3, 2017 07:33
then learn event observer first then only i can help you webkul.com/blog/observers-in-magento2
Feb 3, 2017 07:33
Otherwise Magento have admin setting also in sales -> payment method , in that also you can set order status after place order.
Feb 3, 2017 07:33
Do you know how to write event observer in custom module ?
Feb 3, 2017 07:33
don't edit core. create a custom module and write event and observer in custom module. Editing core is not good practise.
Feb 3, 2017 07:33
i hope you know how to use event and observer. You can put this code in your observer file and this will update status of your order after place order.
 

 Ask Ubuntu General Room

Normally: General discussion around Ask Ubuntu, Ubuntu & offic...
Jan 25, 2017 10:08
If i press some specific key then it will print 'something'. How to achieve this . help me
Jan 25, 2017 10:07
I want to change behaviour of key . can anyone help me
Jan 25, 2017 10:07
HI all
 
Jan 20, 2017 04:39
Hii
Jan 19, 2017 14:17
I did this using object and model but i want to do it using REST API.
Jan 19, 2017 12:51
Go for dinner bro. I will try to do it from home. :)
Jan 19, 2017 12:50
little bit urgent
Jan 19, 2017 12:48
it is not generating token
Jan 19, 2017 12:48
I am calling dailyCsvFile function from cron
Jan 19, 2017 12:48
Jan 19, 2017 12:47
ok
Jan 19, 2017 12:47
i am able to call function from cron