Questions tagged [price]

Usually an amount of currency paid in exchange for a product or service. An implicit or explicit agreement on the used currency is needed for an unambiguous price specification. Sometimes "the price to pay" is meant metaphorically.
In programming context, the price for a change to a program refers to an increased amount of memory consumption, execution duration, latency, worst case behaviour or any other undesirable attribute of the program afterwards.

Note, when handling currency values in a program it is usually the best method to store prices in integer typed variables, counting the smallest denominations. I.e. storing the integer value 323 (implicit euro cents) in an integer is more reliable than storing the floating point value of 3.23 €.

907 questions
6
votes
2 answers

Get product prices to be displayed in WooCommerce 3

i want to display 8 product of category X in my home page i use the following code to get products
'product', 'posts_per_page' =>…
Bahadori
  • 129
  • 1
  • 4
  • 14
6
votes
2 answers

Change price of product in WooCommerce cart and checkout

I'm creating a WooCommerce add-on to customize the product, based on selected options by the visitor and custom price is calculated and stored into session table also. I am able to get that value in cart page also. My problem: I would like to…
Thilip Kumar
  • 81
  • 1
  • 4
6
votes
1 answer

woocommerce calculate and save price

I have added custom fields to Woocommerce/Add Product/General tab using this excellent tutorial http://www.remicorson.com/mastering-woocommerce-products-custom-fields/ The custom fields (height, width, multiplier) are being saved to the database…
Norv
  • 95
  • 5
6
votes
3 answers

What is the priceRange parameter for Google Structured Data Reviews?

I am trying to determine what are the acceptable values for the priceRange parameter. On Google I see "$$$" and that's it. Can someone explain if I should be using $$$ literally or a decimal amount.
somejkuser
  • 8,856
  • 20
  • 64
  • 130
6
votes
1 answer

WooCommerce - get_order() doesn't work and it returns zero

I am creating an online shop with WooCommerce and I'm adding a function which will update the bonus point to my database into absract-wc-payment-gateway.php. Here is what I am doing: Firstly, on the checkout page, the users will click the place…
Capslock10
  • 796
  • 2
  • 16
  • 37
5
votes
1 answer

Imask.js set currency symbol to the and of number by appending changeable double zero to the end of price

How to do input masking something like this by appending doube zero by default to the end of price using js library imask.js or with plain javascript : 3.380.321,00 $ var currencyMask = IMask( document.getElementById('price'), { mask:…
Andreas Hunter
  • 4,504
  • 11
  • 65
  • 125
5
votes
1 answer

Assign custom field price as product price to specific user role in WooCommerce

I created a new role called "Wholesaler". The role works as expected. I also created a custom price field called "Wholesaler price". It also works as expected. I check the user role, if they are assigned as a wholesaler, I give them the custom…
user1822824
  • 2,478
  • 6
  • 41
  • 65
5
votes
1 answer

Display the default variation price and savings amount on Woocommerce 3

I need to display default variation price & with regular price & savings amount on my Woocommerce Homepage & Category Page I found following code on this links answer Display lowest variation price and discounted percentage in…
DVJy
  • 107
  • 1
  • 11
5
votes
3 answers

Change Order item prices in Woocommerce 3

I need to change the item price in a woocommerce order but everything I found is to changing the price in the cart but this is not what I need because I need to change after the checkout process. Does somebody can give me a clue on how to do that?
Sergio Ríos
  • 71
  • 1
  • 1
  • 3
5
votes
1 answer

Overriding properly WooCommerce function WC_Price() in a clean way

What is the best way to properly override a pre-existing WooCommerce function? In this case I want to modify the wc_price() function. I don't need to do anything crazy with it, I literally just need to add an HTML attribute around the…
Leo C
  • 93
  • 1
  • 1
  • 9
5
votes
2 answers

How to use Etsy's updateInventory() call to update Stock/Price for a listing

It is not at all clear to me how to update the price/stock for a listing once it has been created initally using listing->createListing(). To update the stock/price, Etsy's documentation says to call listing->updateInventory(). However, this call…
err1
  • 499
  • 9
  • 22
5
votes
1 answer

How often does Firebase phone authentication require verification?

as of May 17, digits.com released a statement: http://get.digits.com/blog/introducing-firebase-phone-authentication Stating that digits.com auth becomes obsolete and firebase takes over. Firebase description is other…
5
votes
5 answers

JavaScript; How to set dot after three digits?

I have the following JavaScript code: var calculation = $('select[name=somevalue1] option:selected').data('calc')-($('select[name=somevalue1] option:selected').data('calc')/100*$('select[name=somevalue2]…
user6771756
5
votes
1 answer

Does Google Cloud Compute Engine pricing depend on processor usage?

I've been using the Google Cloud Compute Engine for the past couple of months, but haven't had to pay for anything yet due their 60-day crediting system. However now that I'm considering actually paying for the service, I'm trying to get a better…
jon_simon
  • 370
  • 7
  • 18
5
votes
1 answer

Show discount in Schema.org

I have a product which has reduced price. I want to show both prices - original and discounted. Is there a way to mark this in Schema.org? For now I have something similar:
1
2
3
60 61