This snippet will be your first or one of your first places. You have to get the product information. The variables are global. Once you get the values back you can manipulate them. This will be put on the product page. You can’t change the price of the product (???) but you can create a text box which would be the value of a text box to that of a = productPrice/15.
You’d have to format it a bit and convert it to a string - “Get this for only " + a.toString() + " per month”. That should at least get you started.
function getProductInfo () {
$w ( '#productPage1' ). getProduct ()
. then (( product ) => {
productName = product . name ;
productDescription = product . description ;
productPrice = product . price
discountedPrice = product . discountedPrice
trackInventory = product . trackInventory
inStock = product . inStock
quantityInStock = product . quantityInStock
productType = product . productType //Digital
additionalInfoTitle = product . additionalInfoSections [ 0 ][ "title" ]
additionalInfoDescription = product . additionalInfoSections [ 0 ][ "description" ]
})
}