Greasy Fork is available in English.

Discussions » Creation Requests

Changing Prices

§
Posted: 22-03-2023
Edited: 22-03-2023

Hi there I have not coded HTML, Javascript, CSS in a few years so this may be a simple mistake, but I am unsure why my code is not working. I have a website for work that we look up prices of products. I would like to add $30 to each product. This website will be customer facing so I want to make sure we have a markup automatically. The $30 will cover our shipping expenses plus the cost of cutting the keys.

Example webpage: https://nitrouskeys.com/pages/product-result?rq=mk_chrysler~md_300~yr_2015

Here is my code.

var prices = document.getElementsByClassName("ymm-product-price");

for (let i=0;i

My for loop is not executing either.

§
Posted: 23-03-2023

Got it figured out.

Post reply

Đăng nhập để bình luận