PageSourceSearch

https://www.su-man.com/wp-content/themes/assemble-v11/js/add_custom_product.js?ver=6.9.9

js su-man.com collected 2026-10-04 10:46:25 UTC 1,255 bytes, 35 lines download raw bytes

1
2            jQuery(document).ready(function(){
3
4                jQuery('#serum-add-to-cart').on( 'click', function(e) { 
5                    
6                    e.preventDefault();
7                  var post_id = 1307;//store product id in post id variable
8                  var qty = 1;//store quantity in qty variable
9
10                  jQuery.ajax({
11                      url : wc_add_to_cart_params.ajax_url, //ajax object of localization
12                      type : 'post', //post method to access data
13                      data : 
14                      {
15                          action : 'myajax', //action on prefix_ajax_add_foobar function
16                          post_id : post_id,
17                          quantity: qty
18                      },
19
20                      success : function(response){
21                          console.log(response);
22                              jQuery('header .cart-contents').html('MY CART(1)');//get quantity
23                              
24
25                              console.log('product successfully added');
26                              window.location = cart_url;
27                      }
28
29                  });
30
31                  return false;
32                });
33
34            });
35            

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.