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.
Related
I have a problem when submitting form in Laravel Livewire and when using Firefox. It works well in Chrome. In Firefox - it sometimes works correctly and submits the form through livewire, but mostly it gets submitted as GET request - https://example.com/?formResponse=...
Here's a short snippet of my code.
<form wire:submit.prevent="update" class="d-flex">
<textarea name="formResponse" wire:model.defer="formResponse" id="response" class="form-control h-50"></textarea>
<button class="btn btn-primary">Uložiť</button>
</form>
try :
<button type="button" class="btn btn-primary">Uložiť</button>
I am having an issue with a form using AMP.
The form works perfectly on a standard amp html page - the button is clicked and the search.php is triggered.
<form method="post" action-xhr="search.php" target="_top">
<input name="query" placeholder="search" id="query" size="40" value="">
<button type=submit class="btn-search"><amp-img ></amp-img></button>
<input type=hidden name=search value=1>
</form>
Then the exact same code (including all the includes, etc) on the MVC framework I am using doesn't work. The button is clicked and nothing happens.
Source codes on both are identical when viewing page source.
Should this not be happening - the specific MVC framework I am using possibly has an issue with this?
Or is it due to it being MVC, the view (header.twig) has the form on the not working version. Would the php code from search.php go into the controller?
Any help would be greatly appreciated!
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 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
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.