So I am creating a page for a product that has 4 lines of text & I have the text updating as the person types, but I need help getting the product & cart working together.
-Question - Do I use a product out of the product database? Right now you can only have 2 lines of custom text, or do i have to create a separate database?
This is the code I have for the cart button -
export function button19_click(event, $w) { $w('#shoppingCartIcon1').addToCart('34e7449d-5603-c01a-26dc-a0a783c1c68b8', 1); }
and i looked at the example's out there & i see that it should probably have something like this after it "customTextFields": [{ "title": "Custom Text", "value": $w('#textInput').value },
to add my custom text, but the problem is that just the basic ".addToCart" isn't working - when I click on it - it does nothing - no error & no add to cart & that's without adding any custom fields.
BTW - I can just have one line that runs "over", if that makes it easier. Thank You!