Questions tagged [prototype-js]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
0 votes
1 answer
117 views

Magento 2.4 Admin Invoice Does Not Render Properly - uncaught reference error: require is not defined

Magento 2.4.2 admin invoice does not render the CSS on certain invoices - the page shows up without any styling. (Some older invoices do still render properly as they should). So it seems that the ...
Ray's user avatar
  • 43
2 votes
0 answers
99 views

Select country through Jquery in Origin Address of Shipping Settings

I am trying to set Country for Origin address using jQuery in Shipping Settings of Sales (Store Configuration). The issue is, on change of country option using jquery, the ajax to fetch region is not ...
Afreen Sheikh's user avatar
3 votes
3 answers
3k views

How to extend admin js in magento 2 by mixins

I want to overide Magento_Sales/adminhtml/web/order/create/scripts.js I wrote require-config.js for this var config = { config: { mixins: { 'Magento_Sales/adminhtml/web/...
Deepak Rai's user avatar
  • 1,145
2 votes
0 answers
115 views

magento 1 checkout page gives error "checkout is not defined" in console prototype.js::5598

i am using firecheckout for magento 1 checkout page gives error "checkout is not defined" in console prototype.js::5598. because of that error sometimes customers can not place order. can anyone help ...
Taseen's user avatar
  • 135
1 vote
0 answers
174 views

Magento 1.9.2.3 Product Custom Options - Filters Not Working - Prototype.js error

I cant able to use Custom Options, drop-down showing error in prototype.js:612 and my prototype.js: https://justpaste.it/61c3a
zus's user avatar
  • 155
0 votes
2 answers
416 views

Magento1 Feefo widget js conflict with prototype.js

I want to display feefo carousal widget on my website. For that I have generate the widget code and trying to add on my magento 1.9 website. But Feefo widget JS is conflict with the prototype.js and ...
Narayan's user avatar
  • 119
0 votes
1 answer
66 views

How to add script link in magento page?

I have added one script in the form page which is, <script type="text/javascript"> $(document).ready(function(){ $('.removeOnFocus').each(function() { this.data = new Object(); //TODO don't ...
Gowri Shankar's user avatar
0 votes
1 answer
128 views

Product page Script Not Pulling SKU, Magento 1.9

Having trouble inserting a pretty simple tracking code into each product page. I am not having any luck pulling the SKU from the product page to populate the product_id (see below). I am attempting ...
michaelp's user avatar
1 vote
2 answers
730 views

jQuery conflicts in Magento 1.x [duplicate]

Generally we get jQuery and prototype.js conflicts in Magento 1.9 Mainly due to jQuery conflicts. Do you have any suggestion to resolve this?
Jitendra Mandloi's user avatar
0 votes
0 answers
334 views

Trigger function on close in window.js Magento 1.9

I am using window.js to show a popup. In pop up i used a phtml file <div class="hb-giveReview" id="custompopup"> <a onclick="return showForm('signup_popup_form')" href="#"> ...
inrsaurabh's user avatar
  • 1,676
1 vote
1 answer
123 views

Change contact form validation

I would like to do a blur check on the contact form, but it only does the validation on the submit, I would like to know how I make this change. I'm trying like this $j('contactForm').blur(...
Gustavo Souza's user avatar
1 vote
0 answers
110 views

Magento 1.x way of extending product.js

I recently found myself working with making price updates work in two places on a configurable product page. The previous dev had set up some jquery to try and catch the price updates and apply them ...
George Birnbaum's user avatar
3 votes
2 answers
3k views

I want to override js function on shipping method section

I want to override js function on shipping method section : i checked on inspect Element below is the function is calling on click on continue button Can you please help me to find out where i can ...
magento12345's user avatar
1 vote
1 answer
526 views

Bundled product js error on 1.9

I have the following error when clicking on bundled tab in product back office : prototype.js:612 Uncaught SyntaxError: Unexpected identifier at path/js/prototype/prototype.js:612:69 at path/js/...
David Horizonef's user avatar
1 vote
1 answer
174 views

What stopObserving() function is used for - Magento 1.9

I want to know what the js function stopObserving() is used for.
PЯINCƎ's user avatar
  • 11.6k
1 vote
1 answer
661 views

Ajax error when using minified version of prototype.js

When using minified version of the PrototypeJS. (official version from Google CDN) ajax stops working. Console shows error: "TypeError: e is not a function" Is there a way to fix this? We really ...
MployBy's user avatar
  • 125
1 vote
2 answers
2k views

magento 1.9.3.2 backend reset password error

I upgraded from magento1.9.3.0 to 1.9.3.2, the site after the reset password can not click. The chrome browser displays an error。 Refused to execute script from 'http://localhost/js/index.php/x....
Patrick-Peng's user avatar
1 vote
2 answers
250 views

Loading external JS Module breaks Configurable Swatches / PrototypeJS in Magento 1

I'm using an outside JS library built with Webpack and Babel. The library is self-contained and only adds a single global variable. When this library is loaded onto a product page, the hover-over and ...
silverman63's user avatar
0 votes
1 answer
699 views

Continuing jQuery conflicts

I've been struggling for days trying to solve two broken jQuery issues. I've been under the assumption that it's a continuing conflict between jQuery and Prototype, though I'm not entirely sure now as ...
taskle's user avatar
  • 365
0 votes
1 answer
546 views

Ajax.Responders.register's onComplete Executes Before Ajax Complete

I'm trying to add background colors on the admin orders grid based on the order status in a Magento 1.9 install. I have colors coming fine on page load, but when the grid is reloaded with ajax if any ...
circlesix's user avatar
  • 4,273
1 vote
0 answers
170 views

Magento product detailed page Varien form hidden field validation not working

I have work with Magento1.9.3, then in my product detailed page i have added some hidden dropdown fields. When i was used the Prototype(1.7.0) js, the hidden field validation was wroked without any ...
senthil's user avatar
  • 1,729
3 votes
0 answers
2k views

Uncaught TypeError: element.attachEvent is not a function [closed]

I'm getting an error on the checkout onepage, can you help me what cause of this error.
aaron's user avatar
  • 31
1 vote
0 answers
1k views

can't get jQuery's ajaxComplete working

I can't get jQuery's ajaxComplete to work. I'm thinking it's because the ajax call is being initialised by Prototype? But how can I check when any ajax call This is basically the code I have: ...
Holly's user avatar
  • 4,863
1 vote
0 answers
209 views

How to change inline js

<li class="buttons ajaxlogin_actions"> <button id="ajaxlogin_button_send" name="ajaxlogin_button_send" title="<?php echo $this->__('Login') ?>" class="...
Kanika's user avatar
  • 171
0 votes
0 answers
143 views

Product images not visible in backend product edit (Magento 1.9.1.0)

After installing SUPEE 8788, images are not visible in Product Edit section of backend. They are visible in product-grid and in frontend also.
Oleksandr's user avatar
0 votes
1 answer
205 views

magento get null value in $(pair.value) product_option.js

I have a problem in product_option.js I have configurable product when I change the product option it will not show with changing amount, I already add product_option.js, when I track the prototype I ...
Rajan Soni's user avatar
  • 1,019
0 votes
2 answers
3k views

jQuery conflict in owlcarousel

I am trying to include the Owl Carousel slider in my Magento 1 Store Home Page. But the line <script src="http://www.owlcarousel.owlgraphic.com/assets/vendors/jquery.min.js"></script> is ...
abu abu's user avatar
  • 744
1 vote
1 answer
333 views

Uncaught SyntaxError: return 32 - new Date(year, month - 1, 32).getDate();

I have this code in my magento onecolumn etc. and I'm getting Uncaught SyntaxError: Unexpected identifier swing-step-brush-guard-flat-black-with-stainless-cross-bars-by-ami.html:3918 On this line ...
user3677211's user avatar
1 vote
0 answers
101 views

Onepage Checkout Broken 1.9

I've seen this issue arise in many different threads but somehow none of the potential fixes have managed to work for me. I've tried the popular: <fieldset> <?php echo $this->...
Charlie Coplestone's user avatar
0 votes
1 answer
431 views

Jquery conflict with elastislide.js and prototype.js

Again I am here with my nightmare Conflict issue. This question seems like a duplicate but I have read all other answer that suggests use no conflict after jquery but it's not working. Can anyone ...
Vaibhav Ahalpara's user avatar
0 votes
1 answer
533 views

Where does magento call prototype.js?

I need to optimise my site and to do so I need to async call prototype. Does anybody know in which part of Magento the prototype start been called.
Henrique Almeida Marcomini's user avatar
0 votes
1 answer
1k views

How to scroll to first error in Magento 1.9 product page?

Hi guys I would like to scroll to the first erroneous input on the product page. Currently it doesn't and stays at the bottom. You then have to manually scroll up till you see the swatch option group ...
Vaishal Patel's user avatar
0 votes
0 answers
242 views

Control.Slider is not a constructor New Extension Problem 1.9.2.4

I have just paid $150 for an extension from MageStore (Reward Points Plus) and it is not working. The error I am getting is: prototype.js:828 Uncaught TypeError: Control.Slider is not a constructor ...
Mike Tim Turner's user avatar
4 votes
2 answers
4k views

Modify existing prototype js validation method

I'm having a little bit of difficulty trying to do this cleanly, and the majority of docs/posts I've seen about this typically involve adding a new custom validation method. I want to just add an ...
bsod99's user avatar
  • 165
1 vote
1 answer
339 views

Magento prototype.js and stuck in checkout

After upgrading our shop to 1.9.2 the checkout doesn't work. The whole process continues, but when I click "place order" it gets stuck in "submitting order information". Before I can see these errors ...
PharIT's user avatar
  • 11
0 votes
1 answer
837 views

Add to Cart Button Not Working

I'm having an issue with the Add to Cart Button on my website. The error I am receiving is: Uncaught TypeError: Cannot read property 'submit' of undefined The link to the preview of this site is: ...
Charlie Coplestone's user avatar
0 votes
1 answer
1k views

Admin order form - update custom area with ajax on add product

I add custom field to admin order form and I want it to be updated with ajax when admin add products to order, like other areas - shipping, billing and totals. I inspected file \vendor\magento\module-...
Anna's user avatar
  • 1,645
2 votes
0 answers
795 views

Error 500 after choosing additional payment method (onepage checkout) - magento 1.9.2

I have added additional payment method almost the same as banktransfer, and everything works fine until this payment is checked at checkout. This payment shows up in adminpanel and front end. Html ...
grabusik's user avatar
1 vote
2 answers
6k views

Remove Conflict between JQuery and Prototype.js in magento 1.9.1

I have included all the js library in page.xml of my magento. <action method="addJs"><script>lib/jquery/jquery-1.10.2.min.js</script></action> <action method="...
Asheem Patro's user avatar
  • 1,060
2 votes
1 answer
1k views

prototype window pop up document.observe function error. TypeError: $$(...)[0] is undefined

I keep getting this error and my lack of JS knowledge is not helping. I ripped this code from another post. function showPopup(sUrl, id) { oPopup = new Window({ id: id, className:...
Anthony's user avatar
  • 65
1 vote
3 answers
3k views

Magento 2 - Replace existing Prototype JS with jQuery

default.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/...
Slimshadddyyy's user avatar
1 vote
2 answers
837 views

Ajax request not working from validation.js

I have added one ajax validation for a custom section in magento checkout page as below, Validation.js : ['validate-otp', 'Please enter valid OTP.', function(v) { var url = 'customsect/...
Anu's user avatar
  • 420
14 votes
3 answers
17k views

How to pass variable to external js in magento 2

In magento 1 we can call this prototype function in phtml for example function ABC(){ var a = '<?php echo $a;?>' alert(a); } but in magento 2 we can not add this type of function in ...
Newbie's user avatar
  • 1,614
1 vote
2 answers
214 views

getElementsByName doesn't work after admin grid ajax request

Im trying to get the selected checkboxs in invoice grid, which is working fine if I don't filter the grid or you can say before ajax request. After ajax request grid refreshes and also I can't get the ...
Ahmed's user avatar
  • 758
1 vote
1 answer
619 views

How to detect iphone mobile using prototype.js

I want separate css file for iphone and another css for other mobile device. And Use the iphone.css if iphone is detected or responsive.css if other mobile device is detected using prototype.js. How ...
AKSHAYA KUMAR Satapathy's user avatar
1 vote
1 answer
107 views

Menu is not going to hide

Menu is not going to hide when I click on menu and if there is no link to another url (I am using #). How to hide the menu container (class="menu-box") <div class="fr menu-wrap-container">...
AKSHAYA KUMAR Satapathy's user avatar
2 votes
1 answer
558 views

check uncheck functionality in prototype.js in magento

There is a label (class=lblnewsletter) and checkbox (id=is_subscribed). When I click on label and if the checkbox is checked the alert will come 111 other wise it return 222. I have wrote the ...
AKSHAYA KUMAR Satapathy's user avatar
1 vote
1 answer
1k views

How To Validate Image Height And Width Magento Admin Form Upload Field

I want To validate Image Height And Width on Submit in Magento Admin Back-end. I want to upload & different Sizes Of Images by magento admin...So For That I want to validate image Height and Width ...
Deepak Rai's user avatar
  • 1,145
1 vote
0 answers
54 views

Secure Configurable Product Page, But Returns, non-secure ajax response and is blocked

Okay guys, I am a bit baffled. I am loading a configurable product’s page using a secure connection (https://) and I select all the variables, which sends the ajax call, but its returning with an ...
Johnathon Mathews's user avatar
2 votes
1 answer
1k views

Are JavaScript events triggered during the onepage checkout of Magento? [duplicate]

I need to run some JavaScript to manipulate some fields upon checkout (auto-select a shipping option) on a Magento store. Because each stage of the onepage checkout accordion is loaded dynamically I ...
mikemike's user avatar
  • 253