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
2
votes
1
answer
798
views
Magento 2 I want to set a custom price of a product programmatically but only for this one s...
But I also need to change the price of this products I add. The problem about that is, that I only want to change the price for this session. Afterwards the price should be the same as before. … (EDIT) One other idea would be to add a custom temporary discount price but not a discount of coupon code in the controller. Any Idea? …
9
votes
6
answers
2k
views
Magento 2: Changing Price of Product in Controller doesn't work at the moment!
I tried to change the Price of my Products like this:
Controller.php:
[EDIT]
<? … $item->getParentItem() : $item );
$price = 100; //set your price here
$item->setCustomPrice($price);
$item->setOriginalCustomPrice($price); …