last day (14 days later) » 

08:16
0
Q: Magento : How to get value of checkbox in observer?

BornCoderI want to add a checkbox after Place order button. So , If someone checked the checkbox then he/she should subscribe. I have added checkbox in button.phtml page and I have written observer('checkout_submit_all_after') also but I am not getting value of checkbox. Please help me in this.

try Mage::app()->getRequest()->getParam('YOUR_CHECK_NAME').
@GopalPatel : It's not working. I am getting null value
Provide code of this checkbox. means how exactly you have added that checkbox
<input type="checkbox" name="is_subscribed" title="<?php echo $this->__('Sign Up for Newsletter') ?>" value="1" checked="checked" class="checkbox" />
this is my code in frontend/rwd/default/template/checkout/onepage/review/button‌​.phtml
try to put checkbox under /home/osp67/www/aws/app/design/frontend/base/default/templat‌​e/checkout/onepage‌​/a‌​greements.phtml and get the value by Mage::app()->getRequest()->getParam('YOUR_CHECK_NAME')
08:21
Hi, just waiting for GopalPatel ...
Have you tried his suggestion?
Yes i placed in a‌​greements.phtml
and i am getting value
but i want it after place order button
Can you link your site?
It's in my local system , not in live
But i can upload image
08:23
@BornCoder ?
but i want it after place order button ???
Please check
ok
you can do it via css
My guesss its outside the form tag ... so it is null in getParam('is_subscribed')
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;">
so how to pass this condition,
??
08:40
Do you mean if (!$this->getAgreements())?
it's in default magento for terms and condition
but i don't want to display terms and condition checkbox

last day (14 days later) »