Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about displaying and calculating product prices
0
votes
Magento 1 : How to disable product price update on the front-end when changing a product Qty
You could try
A coupon rule - e.g Buy one get one free
Change the unit cost dynamically (cost = item price / qty) - e.g Update price of item before adding to cart! … Setup tier price rule in admin
Create a custom discount on order totals - Magento Add Fee or Discount to Order Totals …
26
votes
Accepted
Format price with javascript in Magento 2
Take a look at shipping_method/price.js
define(
[
'jquery',
'Magento_Checkout/js/model/quote',
'Magento_Catalog/js/price-utils'
],
function ($,quote, priceUtils) { … formatedPrice = getFormattedPrice(price)
getFormattedPrice: function (price) {
//todo add format data
return priceUtils.formatPrice(price, quote.getPriceFormat …
1
vote
Change Product price daily
Assuming that there is a formula, then you will need to figure out if this formula should apply to the current day price or the original base product price. … You may want to consider using/changing the "special price" so you can all way know what the base price is (assuming it always more)
Module
<config>
<global>
<models>
<pricecron …
2
votes
Accepted
Send price in cart
new_price = <insert logic to check if this is the custom product and to get value from ajax>
$quote_item->setOriginalCustomPrice($new_price);
$quote_item->save();
}
See Magento dynamic product price …
1
vote
Accepted
Magento dynamic product price
this is the custom product and to get value from ajax>
$quote_item->setOriginalCustomPrice($new_price);
$quote_item->save();
}
(note that a user could always fake the post and change the item price …
1
vote
Accepted
Change product price via tabs related products
to get the related price (jQuery). … = $( "li.item-a" ).parent().find( put relate price selector here ).text()
item_base_price = item_base_price + price
});
//update display price
//format item_base_price before displaing …