Skip to content
Advertisement

Tag: checkout

WooCommerce: Get $cart_item in price function

I’m using a custom function to change the style of the product price. This is my actual function: It works fine on product detail pages if I want some meta fields from the product. I can get these meta fields if I use global $product and go from there. The problem is, that global $product throws an error if used

How to make PayPalCheckout return value by post method?

I am using PayPalCheckoutSdk library following the examples, I have the following: I am receiving the data by get method print_r($_REQUEST);: And, that information is processed in the file return.php which has the following code: https://ideone.com/ncVjIt I would like to be able to receive the information but by post method, what configurations should I make so that the data is

Advertisement