GRAYBYTE WORDPRESS FILE MANAGER6951

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/chahida.co.in/wp-content/plugins/woo-razorpay/templates/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/chahida.co.in/wp-content/plugins/woo-razorpay/templates//rzp-pdp-checkout-btn.php
<?php
global $product;
$productData = wp_json_encode(['id' => $product->get_id(), 'quantity' => 1]);
?>
<button
  id="btn-1cc-pdp"
  class="button alt single_add_to_cart_button"
  type="button"
  product_id="<?php echo esc_attr($product->get_id()); ?>"
  value="<?php echo esc_attr($product->get_id()); ?>"
  pdp_checkout="<?php echo true; ?>"
  >BUY NOW
</button>

<script type="">
  let i = 0;
  while (typeof quantity === 'undefined') {
    var quantity = document.getElementsByClassName("qty")[i].value;
    i++;
  }

  var btnPdp = document.getElementById('btn-1cc-pdp');

  btnPdp.setAttribute('quantity', quantity);

  jQuery('.qty').on('change',function(e)
  {
      let x = 0;
      while (typeof quantity === 'undefined') {
        var quantity = document.getElementsByClassName("qty")[x].value;
        x++;
      }
      btnPdp.setAttribute('quantity', quantity);

      if(quantity <= 0)
      {
          btnPdp.classList.add("disabled");
          btnPdp.disabled = true;
      }
      else
      {
          btnPdp.classList.remove("disabled");
          btnPdp.disabled = false;
      }
  });

  (function($){

      $('form.variations_form').on('show_variation', function(event, data){

          btnPdp.classList.remove("disabled");
          btnPdp.disabled = false;

          btnPdp.setAttribute('variation_id', data.variation_id);

          var variationArr = {};

          $.each( data.attributes, function( key, value ) {
            variationArr[key] = $("[name="+key+"]").val();
          });

          btnPdp.setAttribute('variations', JSON.stringify(variationArr));

      }).on('hide_variation', function() {

          btnPdp.classList.add("disabled");
          btnPdp.disabled = true;
      });
  })(jQuery);
</script>

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:24
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:25
giriqfky / giriqfky
0644
rzp-cart-checkout-btn.php
0.241 KB
November 30 2022 11:17:30
giriqfky / giriqfky
0644
rzp-mini-checkout-btn.php
0.173 KB
October 13 2022 12:06:30
giriqfky / giriqfky
0644
rzp-pdp-checkout-btn.php
1.714 KB
November 30 2022 11:17:30
giriqfky / giriqfky
0644
rzp-spinner.php
0.288 KB
November 30 2022 11:17:30
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF