Jump to content

Custom Woocommerce Function


tascam424

Recommended Posts

I was wondering if anybody would be so kind as to help me write a woocommerce function.

I am by no means a coder so i really appreciate any help you can offer.

 

What i wish to achieve is for a function to calculate the quantity of items in cart and then change the total order price based on predefined values.

 

So for example all items are £2.50 .. what i want is for the function to count the items and if 5 items are in the cart change the cart total to £10 .. if 10 items are added change the cart total to £20.00.

 

I am aware of some discount plugins which may achieve something similar, but i don't actually want to apply a discount, i would really prefer to change the total automatically and not display a discount.

 

Once again i greatly appreciate any help.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.