I
I
iPod4g2016-06-21 20:49:42
JavaScript
iPod4g, 2016-06-21 20:49:42

How to add additional currency for a product (without conversion)?

It is necessary to add a currency to choose from when adding a product, but the currency must be without conversion, i.e. the currency that is selected should be displayed on the product page, I found several modules but they did not help, they still display only one currency, which way is it possible to implement?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2015-11-17
@denisbookreev

var wheelEvt = (/Firefox/i.test(navigator.userAgent)) ? 'DOMMouseScroll' : 'mousewheel';
document.querySelector('.port').addEventListener(wheelEvt, function (e) {
    var evt = e.originalEvent ? e.originalEvent : e,
        delta = evt.detail ? -evt.detail : evt.wheelDelta;
    this.scrollTop += (delta < 0 ? 1 : -1) * 40;
    e.preventDefault();
}, false);

Sandbox example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question