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
5
votes
2 answers

Screen reader is not reading the price ("$47.49") properly

I am trying to make the screen reader (NVDA) to read my currency value (US dollar) $47.49 as "47 Dollars 49 Cents", but the screen reader is reading my currency value as "Dollar 4749".
Ramkumar
  • 446
  • 1
  • 14
  • 30
4
votes
1 answer

Display single item price html below product title in checkout page

From Display on sale cart item formatted prices range in WooCommerce answer to my previous question, I was able to display on sale cart item formatted prices. Unfortunately I was not able to use the product title filter to add the single product…
evavienna
  • 1,059
  • 11
  • 29
4
votes
1 answer

Display on sale cart item formatted prices range in WooCommerce

I try to show the subtotal price and sale price in the Cart and Checkout page for each individual product. I already managed to add the sales price (24TL) to the regular price (33TL) with the following code: /** * Show sale prices on the Cart and…
evavienna
  • 1,059
  • 11
  • 29
4
votes
2 answers

Does AWS has cross account data transfer cost if both service are in same region?

I want to transfer data from an EC2 machine in one account to an S3 bucket on another account. Here, both the services are in the same region. Is the transfer of data happening over the internet as both are on different accounts?
Neron Joseph
  • 1,675
  • 22
  • 39
4
votes
2 answers

How to apply Azure Hybrid Benefit to Managed Instance?

With Azure Hybrid Benefit (AHB), the existing on-premises SQL Server licences can be converted into `40% discount on the price of Azure SQL Managed Instance. If a Managed Instance is already created without AHB, how to apply Azure Hybrid Benefit on…
Jovan MSFT
  • 13,232
  • 4
  • 40
  • 55
4
votes
1 answer

Product regular price calculation based on 2 custom fields in Woocommerce 3

In Woocommerce I have set 2 custom fields in the admin in the pricing section under Woocommerce default prices fields: Margin rate and Purchase price. I am trying to figure out how can I auto update the product price (regular price field) based on…
S M
  • 41
  • 4
4
votes
1 answer

Custom cart item price set from product hidden input field in Woocommerce 3

In Woocommerce, I used jQuery to calculate a custom price on a single product pages, and now need to pass this value to the cart. The desired behavior is to pass the new price retrieved from the hidden field to the cart item price. Here is my actual…
logos_164
  • 736
  • 1
  • 13
  • 31
4
votes
1 answer

Change cart item prices based on specific product attribute value in Woocommerce

I am trying to change product price in cart using the following function: add_action( 'woocommerce_before_calculate_totals', 'add_custom_price', 10); function add_custom_price( $cart_obj ) { foreach ( $cart_obj->get_cart() as $key => $value ) { …
ehsan
  • 43
  • 2
4
votes
3 answers

Display price on add to cart button from the functions.php file in Woocommerce

Been trying to find something about this, but the solutions I found so far here do not work. I need, in the single product page, to display the add to cart button like this: ADD TO CART - JUST $PRICE It needs to be done from the functions.php file…
Juan
  • 143
  • 2
  • 12
4
votes
1 answer

Add a custom product calculated price to Woocommerce cart

In woocommerce I have added an extra text field before add to cart button to add custom charge on product purchase. This plugin will add extra text field to single product page and calculates total plus the extra charge. My problem is that I cant…
DHL17
  • 123
  • 2
  • 10
4
votes
2 answers

Change product variation prices via a hook in WooCommerce 3.3

I´m using hooks for customizing variable product prices. However, this answer does not seem to be working for Woocommerce 3.3.5. I use following (from the previous post) on my functions.php file: add_filter('woocommerce_variation_prices_price',…
Daisy
  • 43
  • 1
  • 1
  • 4
4
votes
1 answer

Enable Wholesale prices in Woocommerce 3

In wooCommerce, I have added a custom meta field with a custom price (wholesale price) in edit product pages settings. Everything works well. When I set a wholesale price it works fine everywhere. But if I try to change this wholesale price it…
Aleks Pvn
  • 151
  • 1
  • 2
  • 12
4
votes
3 answers

Hide additional excluding tax price if product is not taxable in Woocommerce

I need to disable displaying the price excluding tax when I set the product without tax. I made a modification in price.php file to add price without VAT.

get_price_excluding_tax()); ?>…

Pat
  • 697
  • 3
  • 11
  • 30
4
votes
1 answer

Increase all Woocommerce products prices by a percentage

I am using Woocommerce in my website and I should need to add 24% extra to all my products prices. How this can be done in an easy way? Using a database Query will be the best way my be. Any help is appreciated.
Vachos
  • 347
  • 1
  • 8
  • 17
4
votes
4 answers

Display product prices with a shortcode by product ID in WooCommerce

IN WooCommerce I am using the code of this tread to display with a short code the product prices from a defined product ID. But it don't really do what I want. Here is that code: function so_30165014_price_shortcode_callback( $atts ) { $atts =…
Gaou
  • 43
  • 1
  • 1
  • 3
1 2
3
60 61