I have a magento site with following domains.
http://www.site.eu/
http://www.site.it/
http://www.site.es/
http://www.site.fr/
http://www.site.de/
http://www.site.co.uk/
http://www.site.com/
I am trying to submit the email address for newsletter subscription. (Magento has this).
Following is showing newsletter subscription form's code
<form action="<?php echo $this->getFormActionUrl() ?>" method="post" id="newsletter-validate-detail">
<div class="form-subscribe">
<div class="input-box">
<input type="text" name="email" id="newsletter" title="<?php echo $this->__('Sign up for our newsletter') ?>" class="input-text required-entry validate-email" />
</div>
<button type="submit" title="<?php echo $this->__('Go') ?>" class="button"><span> <span><?php echo $this->__('Go') ?></span></span></button>
</div>
</form>
echo $this->getFormActionUrl() generate the action url with the https on it.
example:
following sites will have URL called https://www.site.eu/newsletter/subscriber/new/ Because Configuration I set base secure url as https://www.site.eu/
http://www.site.it/
http://www.site.es/
http://www.site.fr/
http://www.site.de/
Other sites will redirect to https with their own domain. These will work properly
http://www.site.com/ Redirect to https://www.site.com/
http://www.site.co.uk/ Redirect to https://www.site.co.uk/
If user click submit button within any of above site then the site will navigate to https://www.site.eu/newsletter/subscriber/new/ but without having any post data. So according to the situation I cannot access POST variables (email)
I believe I have explained the the problem properly. Please advice why is this happening? Any solutions come to your mind?
i think the problem is, you cannot post data from http to https? or on backend try use both secure & unsecure url with https
Related
We are implementing the "forget password" feature for our website.
We are usign HTML, JQquery mobile and AJAX .
we have a main file, which has the hyperlink for the forget password using the '' tag.
The password.html has form elements as below:
<form method ="post" id="forget" action="somefile.php" >
<h4>Enter your login email to change your password..</h4>
<label for="email" class="ui-hidden-accessible">Email:</label>
<input type="email" name="email" id="email" value="" placeholder="email" data-theme="a" />
<input type="submit" value="Submit" data-theme="b" />
</div>
</form>
The php file validates the email and sends the response in JSON format , which we are handling through a ajax call.
The problem is after hitting on "submit" in the password.html, we are able to retreive the data from the php file(able to see in network tab of browser) but it does not display on the frontend.
The browser is navigating to the php file (which it should not) and a blank page is being displayed.
Ps: When we directly load the password.html in the browser the behaviour is absoultely fine , but when we are navigating from the main file usign the hyperlink to password.html then this problem occurs.
I'm using Firefox and I started to have a problem. I can't create new user in a Magento 1.9.2.2 in the frontend and also I can't login with a register user. In the backend I can create the user without problems.
This was not happening some time ago.
I tried these solutions and didn't work:
Add <?php echo $this->getBlockHtml('formkey') ?> to some files of my template.
Delete var/cache and var/session.
Change life cycle of the cookies.
Change domain name of the cookies.
Any idea? :(
If you cannot create a customer or login after applying patch SUPEE-6788 or upgrading to Magento 1.9.2.2 or later, this might be caused by missing form keys.
Make sure to add form keys to all of your (custom) template files:
In app/design/frontend/[package]/[theme]/template/customer/form/register.phtml and app/design/frontend/[package]/[theme]/template/persistent/customer/form/register.phtml
Add
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
after
<input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
not sure why my magento site
all links broken, My check out button link showing me like this error
<form "="" getformkey="" varnishcache="" www.alphacateringequipment.com.au="" https:="" action="https://www.alphacateringequipment.com.au/checkout/cart/add/uenc/aHR0cHM6Ly93d3cuYWxwaGFjYXRlcmluZ2VxdWlwbWVudC5jb20uYXUvYmV2ZXJhZ2UvYWNjZXNzb3JpZXM,/product/3704/form_key/<esi:include src=">/" method="post" id="product_addtocart_form_3704">
<button onclick="productAddToCartForm_3704.submit()" class="form-button listing_cart-btn">ADD TO Cart</button>
</form>
and also my site drop down menu not working more
if any one know this
Please help me out.
thank you
Try below code.
<form name="text" getformkey="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" varnishcache="" www.alphacateringequipment.com.au="" https:="" action="https://www.alphacateringequipment.com.au/checkout/cart/add/uenc/aHR0cHM6Ly93d3cuYWxwaGFjYXRlcmluZ2VxdWlwbWVudC5jb20uYXUvYmV2ZXJhZ2UvYWNjZXNzb3JpZXM,/product/3704/form_key/<esi:include src=">/" method="post" id="product_addtocart_form_3704">
<button onclick="productAddToCartForm_3704.submit()" class="form-button listing_cart-btn">ADD TO Cart</button>
</form>
It will broken due to form key not passed by In Version of Magento.
I'm trying to enable search functionality of the Advanced AJAX Page Loader plugin on a custom wordpress theme I'm building, but after I enter keyword into search and hit enter, loader.gif keeps on spinning and I get this message in debug mode : "WARNING: You seem to have more than one title tag on the page, this is going to cause some major problems so page title changing is disabled". It also passes the url of the website twice into the address bar and I believe this has something to do with the action attribute that's being passed by the form.
This is the site in question: http://natalija.co.nf
I left the debug mode of the AAPL plugin on for now
This is my searchform.php code:
<form method="get" id="searchform" class="searchform" action="<?php bloginfo('url'); ?>">
<input type="submit" id="searchsubmit" value="" class="btn" />
<input type="text" size="10" name="s" id="s" value="" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"/>
</form>
I managed to ajaxify the theme with this plugin but I 'm having trouble getting the search to work properly so I was wondering if anyone here can help me out with this? It is driving me crazy.
I solved it. The code in search.php needs to be wrapped with a div class="searchform".
I try to add more products on the product page. but it seem like the theme I have chosen called "Mobile shoppe" does not support that feature. Is it any more like andvänt this theme that can direct me how to do.
In html code it says how it can give no clue to someone who is good at magento code.
<div class="no-display">
<input type="hidden" name="product" value="1"
<input type="hidden" name="related_product" id="related-products-field"
value="">
</div>
If I try to make it visible to display only one ID.