I have a problem trying to do some calculations with woocommerce_before_cart_table custom values and passing them to woocommerce_cart_calculate_fees. The problem is that woocommerce_before_cart_table is loading first and I am not able to pass that…
I am using WooCommerce and with Paid Memberships Pro free plugin.
On the web site we have 2 plans (a free plan and a paid plan):
Free users can buy 1 item each month,
Paid users can buy 4 items each months.
Now I don't know how to simply…
I'm setting up California Redemption value fees for my site. The code that I have found on here works, however I would like for the different fees to be combined under the same name, which would just be "C.R.V." but still count the appropriate fees…
Writing script for transactions thru Aptos bridge from BSC Chain. The problem is - every time I get the same transaction revert reason. LzApp: Not enough native token. I checked everything in aptos docs. Everything seems to be right but still…
In my business, I can't cover the payment fee as a seller. I have to let the buyer pay including the payment fee, like 3.99% + 0.3 USD, 4.99% + 0.3 USD, or other currency as another formula. It is based on currencies because I have more than 10…
I am trying to make custom checkout fees if there is more items in cart than 5 or 10, but I also have to exclude categories "tickets" and "vouchers" from count. I found good code examples but none with a negative category selection and I really…
Before the Ethereum merge. The miner received the fee or reward, and the miner was known by looking at the json rpc function "eth_getBlockByNumber".
Now, I know that people who participated in staking get a reward. Has the json-rpc api been added to…
Following up on this question WooCommerce custom payment gateway: Just show an extra fee based on total order , I was wondering if it's possible to just display the payment amount next to each payment option, like in this…
This is a smart contract that I wrote in Solidity. It works 100% if I don´t charge any transaction fees. When I added 2 lines to charge a fee, I am getting this error.
What this smart contract does is very simple. It transfers 2 tokens (_tokenId1…
I need to give the customer a 10% discount after 10 orders are made, and next 10 and next 10.
I've found some code and modified it. So based on Apply a coupon programmatically in Woocommerce answer code, this is my code attempt:
///* 10% Discount…
I am struggling to find any mention of the Braintree Transaction Fee in the transaction reports.
Braintree fees can seemingly only be found by individual transaction ID in the merchant statement->Transaction Fee Report, however this is only…
I have a piece of code that adds a small fee to the checkout for a certain user role (b2bcustomer). Everything works OK.
Now I would like one particular user ID in this user role (b2bcustomer) not to be charged a fee.
I tried to complete the code…
I have some product in WooCommerce and two categories are:
Name: ORG Test
Slug: org-test
Name: ORG Prod
Slug: org-prod
I want to calculate shipping fee per quantity ($15 per quantity) if the product matches org-prod category:
My code…
I'm trying to apply a fee based on the product category and product length.
If the product belongs to a certain category and the length is less than 30m I want to charge a cut price fee per product (cost to cut roll of flooring).
I have a function…
I'm using Add fee to Woocommerce Shipping Class without the use of zones or flat rate answer code, that allows me add an additional 'Fee' if any product from the 'Dangerous Goods' shipping class has been added to cart.
This is great as it allows me…