ACF Field to give specific discount to woocommerce Customer - wordpress

I'm trying to create something wonder if anyone had any ideas on how I would do it. I'm trying to build a 'Discount per customer' system into my website where the admin can enter a value (Say 20) into an Advanced Custom Field on the edit user (backend) screen which gets saved to the user meta.
This value is then used to give a discount on the total price of their cart. e.g. if you put 20% then the customer would always get 20% off on their items. Think of it as a loyalty system.
Would love to hear everyones ideas

Related

Woocommerce shortcode for cart total including shipping cost?

I’m having an issue finding the correct configuration/short code for wordpress woocommerce cart total + shipping cost.
I am wanting to use it for a custom payment gateway.
It will be on the checkout page before placing the order and specifically in a payment method.
The sentence would look like below.
“Pay (total amount) at payment link”
Where the Total amount = shipping cost+discounts+tax’s+ items cost
Can anyone help me configure a short code to put into my functions.Php or find a short code I somehow missed?
All the short codes I have tried for example the ones found on booster plus for woocommerce don’t give me what I want(I have the plug-in installed on the website). The short codes I have tried only show the subtotal of the items put together, but doesn’t include the shipping, tax’s, and discounts.

How can I ensure that only one instance of any product in woocommerce is sold?

I've been looking for an answer to this. Client has a woocommerce shop that will only ever have one of each product. What I need to accomplish is that when a product is added to their cart, the item is unavailable for anyone else to add the same product to a cart. I've tried the old plugin but it breaks portions of the front end, I've tried using several similar solutions I've found here, but nothing seems to do the trick. The plugin also made inventory management on the backend a total nightmare.
So, to walk you through, user A adds product A to cart. User B tries to add this product to cart but woocommerce says its sold out currently to user B. User A can checkout with product A or if user A closes the browser, woocommerce waits one minute and then puts product A back in stock so person B can then add product A to their cart.
I've been searching for this and have come up with nothing from here and some company claiming they can but it's done case by case and they want to handcode it aka very expensive to do.
Please, help!
Just an opinion here so maybe I am wrong, but woo commerce uses stock counts in the backend, so if this is set to 1, then there can only ever be one that can go through the checkout process unless cancelled.
The functionality to reduce that stock count to 0 whilst a user has that item in their basket (or just viewing the checkout page) is not feasible as they have not purchased, at that stage it is just showing intent to purchase.
As you mentioned, that functionality is possible, it wouldn't be pretty, but possible and not something that is available by default in the plugin. Development of such functionality would be needed, and you're right probably quite expensive for development time.

Woocommerce Payment form example

I'm trying to create a form using woocommerce that allows a user to
pay an insurance premium. The user can specify the amount they wish to pay.
The form will be simple, a few fields and the amount the user can specify.
Would anyone have a recommendation on how best to do this?
Thanks

Why does my email shows up in Woocommerce check out page?

I am newbie in Woocommerce.
I filled out profile information in WordPress "Customer Billing address" and "Customer Shipping address"
And when I checked the "Checkout" page, all my information was filled out.
So, I removed all my information which was in Profile, the information was gone in Checkout page. (Which is good!)
However, the email did not remove. (The profile states email is required, and whenever I go for checkout, my email shows up.)
Can anyone know how to fix this problem?
Also, what plug-ins are there that if the customer buy multiple products and calculate the shipping costs at proceed to check out page?
For example, I want to set $9.45 for maximum weight/ dimension we set and if customer buy more products, I want to add percentage more for the weight/ dimension.
Thanks,
Hi happy to read your question .
As you are seeing your profile details on checkout page because you are logged in your site as administrator so .
log out from your wordpress site then check checkout page
Regarding second issue you need add variable products in site or else use below plugin - http://codecanyon.net/item/woocommerce-shipping-calculator-on-product-page/11496815

Add option to add extra fees to Ubercart checkout?

I have a Drupal website with the UBERCART module to accept donations in the form of adopting a book in my library. I need to add an option in the cart page before the checkout to add an entry to the cart with the value of 3% of the total order to cover the payment transaction fees.
It could be a check box that says..
[_] I wish to add 3% to cover the online transfer fees.
Any Ideas of how to implement this? Thanks
I'm not sure how to set up an optional fee, but for required fees, this module will do it:
https://drupal.org/project/uc_fee
Unfortunately there seems to be no version for Drupal 7 yet.
Also, it's a little quirky in some ways...for example, if you want to create a fee to be applied to all products of a particular class, by default that fee gets applied at the cart level, meaning that that a long as the cart contains at least one product of the type you specified when creating the conditional action, the fee will be applied to the other products in the cart as well. If the fee only should be applied once per order then you can just set Max Applications to zero, otherwise...
The process to apply a fee to each product in the cart of a particular class is as follows:
Create a fee at Store administration > Fees with a price of zero
Click the "conditions" link next to the fee (again, from Store administration > Fees) and say the cart needs to contain at least one product of your desired class
Go to Store administration > Products > Manage classes, click "edit" for your desired class, go to the Fees tab and override the price to be whatever the fee should be.
Create products of that class. If your products are already created, it appears you need to edit each already-existing product and override the fee there (on the Fees tab); unfortunately the product-class override only appears to apply to products created after the setting was changed.
I realise it's a long time since this question was posted, but it came up in search when I was trying to solve a similar problem. Since it hasn't been satisfactorily answered after all this time, I thought I'd share the solution I found for my own problem.
There is some sample module code here:
http://www.stevenalanwilson.com/articles/open-drupal-pages-using-built-overlay
I created my own module with this code to allow customers to specify if they live in a rural area. If they check the box, a $5 rural delivery fee is added to the cost of their order. The label on the checkbox and the value of the fee can be set by changing the code in the module.
The scenario asked here would need some additional coding to calculate the 3% fee based on the value of the order, which shouldn't be too hard to achieve.
if you are using drupal 6 then visit these link in your site
Administer -> Store administration -> Configuration -> Shipping quote settings
then visit the "quote method" where you can define your shipping quote setting
once you understand the method for creating shipping charges, you can apply whatever shipping rate you want to charge.

Resources