/** * Return the image path for the add to cart button or false if no path is available */ public static function getAddToCartImagePath($attrs) { $path = false; if (isset($attrs['img'])) { // Look for custom image for this instance of the button $path = $attrs['img']; } else { // Look for common images $cartImgPath = Cart66Setting::getValue('cart_images_url'); if ($cartImgPath) { $cartImgPath = Cart66Common::endSlashPath($cartImgPath); $path = $cartImgPath . 'add-to-cart.png'; } } return $path; }