Login
Remember
Register
PHPOnlineSupport
Questions
Unanswered
Tags
Categories
Ask a Question
Ask a Question
How to dynamically modify product price in Magento?
0
votes
1.9k
views
asked
May 12, 2016
in
Magento
by
jithesh
(
150
points)
Hi,
I would like to modify product price on the go. I don't want them to change in inventory, but need to be shown on the front-end, may or may not be based on customer who logged in. Any clue on how to achieve this ?
magento
Your comment on this question:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
1
Answer
+2
votes
answered
May 12, 2016
by
Shabeer
selected
May 14, 2016
by
mithun
Best answer
You need to do this using three observers here, and they are
1. rewrite_finalprice_product
2. catalog_product_collection_load_after
3. checkout_cart_product_add_after.
More detailed article can be found on this blog for reference.
http://phponlinesupport.com/blog/modify-product-price-dynamically-on-the-go-magento/
commented
May 24, 2016
by
mithunrockey
(
620
points)
Wonderful solution. I used this for different purpose, to set discounts on the fly for customers which was assigned from a 3rd party application outside magneto. Thank you...
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Related questions
+1
vote
1
answer
1.8k
views
How to hide a configurable product own price? In Magneto
asked
May 11, 2016
in
Magento
by
mithunrockey
(
620
points)
magento
configurable
associated
0
votes
3
answers
3.3k
views
How to Encrypt and decrypt information in Magento
asked
Nov 16, 2016
in
Magento
by
Suraj
encrypt
decrypt
magento
0
votes
1
answer
1.5k
views
How to get the current category/product/cms page
asked
Jun 22, 2016
in
Magento
by
Daisy Dee
magento
category
product
+1
vote
2
answers
9.1k
views
How to call .phtml file in magento 2.2?
asked
Jan 30, 2018
in
Frameworks
by
Doumeki
(
480
points)
magento
0
votes
1
answer
7.4k
views
How to know if my magento shop is safe?
asked
Nov 1, 2016
in
Magento
by
Carl
magento
attacks
virus
0
votes
0
answers
1.0k
views
How to configure Magento with the APC cache for performance
asked
May 30, 2016
in
Magento
by
Kiosk
magento
apc
cache
performance
All categories
General
(56)
CMS
(21)
Frameworks
(21)
eCommerce
(58)
Magento
(55)
Modules
(7)
Themes
(0)
Opencart
(1)
Prestashop
(0)
WooCommerce
(1)
IOT - Internet Of Things
(10)
Javascript
(10)
Databases
(5)
Categories
All categories
General
(56)
CMS
(21)
Frameworks
(21)
eCommerce
(58)
Magento
(55)
Modules
(7)
Themes
(0)
Opencart
(1)
Prestashop
(0)
WooCommerce
(1)
IOT - Internet Of Things
(10)
Javascript
(10)
Databases
(5)
Most popular tags
magento
php
wordpress
wp
laravel
category
database
module
product
arduino
kohana
js
jquery
admin
date
url
sing
birds
json
javascript
cms
cache
error
configurable
love
mac
xbee
serial1
serial
seo
encrypt
recaptha
phalcon
truncate
fishpig
include
backend
function
email
plugin
post
arduinojson
popup
mongodb
security
migrate
editor
decrypt
python
iot
map
shipping
password
core
log
mage
pear
string
replace
extension
import
php7
form
order
day
google
image
youtube
https
http
customer
syntaxerror
datatables
nested
x-ctu
xctu
pan-id
mesh
coordinator
esp
baud
esp8266
esp32
path-issue
site-links
adblocker
qr-code
barcode
samsung
newsletter
feed
auto-numbering-column
datatable
admin-bar
adminbar
toolbar
address16
address64
301
302
...