for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
/**
* This file is part of the official Paga+Tarde module for PrestaShop.
*
* @author Paga+Tarde <[email protected]>
* @copyright 2015-2016 Paga+Tarde
* @license proprietary
*/
function findPriceSelector()
{
var priceDOM = document.getElementById("our_price_display");
if (priceDOM != null) {
priceDOM
null
!=
!==
return '#our_price_display';
} else {
else
if
priceDOM = document.querySelector(".current-price span[itemprop=price]")
return ".current-price span[itemprop=price]";
}
return 'default';
function findQuantitySelector()
var quantityDOM = document.getElementById("quantity_wanted");
if (quantityDOM != null) {
quantityDOM
return '#quantity_wanted';