Checkout Page Is Keep Loading After Integration Of Payment Gateway In Magento2

Checkout page is Keep loading after integration of any payment gateway. I have tested with multiple payment gateway using module when i try to checkout the product keep loading.

[Loading Page Snap of checkoutpage] https://i.stack.imgur.com/MvINp.png

[Console Snap of checkoutpage] https://i.stack.imgur.com/2O4aL.png

I want to get the value of a select attribute in the checkout page, and then use it to show or not the delivery data

I want to get the value of a select attribute in the checkout page on WooCommerce, and then use it to show or not the delivery data.

I have tried everything but it still does not appear, the object of my products when I go through it comes out empty.

I have tried something similar to this to see what data I am getting but it comes out empty:

add_filter( 'woocommerce_cart_item_name', 'cart_variation_description', 20, 3); function cart_variation_description( $  name, $  cart_item, $  cart_item_key ) {     // Get the corresponding WC_Product     $  product_item = $  cart_item['data'];      if(!empty($  product_item) && $  product_item->is_type( 'variation' ) ) {         // WC 3+ compatibility         //$  descrition = $  product_item->get_description();         //$  descrition = $  product_item->get_attribute( 'pa_modo' );         $  descrition = $  product_item->get_post_meta( $  variation->ID, 'price_1_50', true );         $  result = __( 'Description: ', 'woocommerce' ) . $  descrition;         return $  name . '<br>' . $  result;     } else         return $  name; } 

Thanks a lot.

how to allow user select shipping location(a custom locations dropdown) in checkout and recalculate values woocommerce

i need to know 2 things

  1. how do i add custom shipping zones to a determinate contry (I need to add some neightbours of a main city)
  2. How do i allow users to select the shipping zone when chekout or in the cart, and recalculate the total

Redirect to Invoice page after checkout in woocommerce

I have a scenario where in I need to redirect to invoice page after checkout in woocommerce. Avoiding going to payment gatway. I have two type of shipping Flat Rate and Pick at Store. when I select pick at store option no need to make the payment online. Instead it should redirect to invoice page. How do I redirect to invoice page without payment gateway?

WordPress Multistep Checkout Advice [closed]

I am after a bit of advice here from WordPress masters…

I am creating an ecommerce site where the products are subscription based. The subscriptions are sold on a yearly basis. However the products are not sent at regular intervals the products will be sent out on significant dates for that year.

For example pay for a subscription and they get sent a gift on their birthday, Christmas and fathers days.

How can I go about creating a system that allows me to sell the subscription as follows…

User Selects Plan -> directed to a new page where they enter details of recipient (name, address, birthday etc) -> directed to checkout page.

P.s I need all the recipients details to be saved to a CSV file to email over to my suppliers.

Woocommerce redirection to checkout for certain after product added to cart

I have implement this code in function.php to redirect the page to checkout if product with id(26285) added to the cart .This is the code

add_action( 'woocommerce_add_to_cart', 'custom_add_to_cart', 1, 2 ); function custom_add_to_cart( $  cart_item_key, $  product_id ) {  $  site_url = get_site_url(); if($  product_id == 26285) {  // Redirecting to some url wp_redirect($  site_url.'/my-account/'); exit; }} 

the condition i need to satisfy here is , if the product with ID:26285 added to the cart i need to redirect to checkout.The problem i am facing now is the page is redirecting but the product was not adding to cart . How to achive that?

Your help will very much appreciated. Have a nice day!

woocommerce adding specific out of stock product directly to checkout [closed]

i have two types of products in my store , one is in stock products and the other one is on request product. On request product is set as out of stock . If a user needs an on request product he will will give a request , then from backend we will approve the request then in the oser account page we will give an proceed to checkout button which is an direct checkout . The issue is if i added the product to checkout page like this( Domainname/checkout/?add-to-cart=product id ) iam getting an error message like this(You cannot add “product 1” to the cart because the product is out of stock).

for checking the validation i have used the woocommerce_add_to_cart_validation hook but its only working if any of product is there in cart .

Woocommerce shipping options not changing checkout total

I am working with woocommerce at the moment, I have created a child theme off of storefront, and I notice that when I change the shipping option to once that has a price the total order price does not change, and Javascript error is thrown. I have not changed any of the parent theme for this process so I am not sure why it would be throwing an error?

The error is as follows,

enter image description here

If I just use storefront it works fine, so there must be a conflict in my child theme but I am not sure where to start?

Is it legal to post card data from an ecommerce checkout to a PCI compliant ‘store’

Let’s say I want to charge a user’s credit card with their permission after a sale takes place. But, I don’t want to have to ask them their credit card a second time.

Is it legal to store the credit card information as they’re filling it out on the checkout, for say 6 hours or something, on a PCI compliant data store, and then only if they perform the action which lets them know their card will be billed again, then and only then charge it.

And then just delete records of cards after some number of time?