Buongiorno ragazzi, avrei bisogno di un aiuto, ho questo codice in un modulo prestashop v 1.7.6, , il modulo tagga dei prodotti su un immagine in stile instagram, il problema è che continuo a visualizzare i prodotti con prezzo iva esclusa mentre tutto il sito è impostato con prezzi iva inclusa. Dove è l'errore? Premetto che non sono un programmatore e capisco poco di php. 🙂
Grazie a chiunque voglia darmi una mano
$hotspost['style'] = $style;
if (!empty($hotspost['sku'])) {
$product = new Product((int)$hotspost['sku'], false, (int)$this->context->language->id);
$price_tax_incl = Product::getPriceStatic((int)$hotspost['sku'], false);
$hotspost['name'] = $product->name;
$hotspost['link_rewrite'] = $product->link_rewrite;
$hotspost['link'] = $this->context->link->getProductLink($product);
$currency = Context::getContext()->currency;
$hotspost['price'] = Tools::displayPrice(Tools::convertPrice($price_tax_incl, $currency), $currency);
$image = Product::getCover((int)$hotspost['sku']);
$image = new Image($image['id_image']);
$hotspost['image'] = _PS_BASE_URL_._THEME_PROD_DIR_.$image->getExistingImgPath().".jpg";
if(Configuration::get('PS_SSL_ENABLED'))
$hotspost['image'] = _PS_BASE_URL_SSL_._THEME_PROD_DIR_.$image->getExistingImgPath().".jpg";
else
$hotspost['image'] = _PS_BASE_URL_._THEME_PROD_DIR_.$image->getExistingImgPath().".jpg";