dchun / QuoteManager

Saas App for Managing Quotes and getting paid
https://quotemanager.boopis.com
0 stars 0 forks source link

Remove Shopify Specific Logic In Form-Inline.js #72

Closed dchun closed 9 years ago

dchun commented 9 years ago

Make form-inline.js file platform agnostic.

For example extract the following:

a = document.getElementsByClassName('coll-prod-price');
for (var i=0; i<a.length; i++) { 
    if ( a[i].innerHTML.match(/ 0\./) ) { 
        a[i].parentNode.previousElementSibling.innerHTML = 'Quote';
        a[i].innerHTML = 'Request Quote'; 
    } 
}

and add it as an option under the javascript tab of the form#new/edit view as a pre-populating option from a radio form under the label 'shopify'. And do something similar for similar platforms like woocommerce and opencart.

phuong3030 commented 9 years ago

https://github.com/boopis/QuoteManager/pull/109 https://github.com/boopis/QuoteManager/pull/110 multi

phuong3030 commented 9 years ago
phuong3030 commented 9 years ago

https://github.com/boopis/QuoteManager/pull/251