• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: No-one
  • Private: No
  • Open Date: 02.09.16, 21:02
  • Opened by: Alex
  • Closed by: Marek
  • Closed on: 09.06.17, 23:38
  • Reason: Closed
  • Comment: Glad to help!

Ticket #9888 - al4.5 Flex menu with items in 2 lines breaks slider, no product name if disabled price

1) Flex menu with items in 2 lines breaks slider
http://prntscr.com/cdf50v
Fix:
add to the CustomCSS

#index #minic_slider {clear:left}

2) If price disabled (catalog mode) no product name

FIX:
file \modules\pk_flexmenu\pk_flexmenu.php line 1157

if ($product->show_price && !(bool)$pscatmode){
		$this->_menu .= '<span class="price">'.( !$priceDisplay ? Tools::displayPrice(Tools::ps_round($product->price*(0.01*$product->tax_rate)+$product->price, 2)) : Tools::displayPrice(Tools::ps_round($product->price, 2))).'</span>'.(($reduction) ? ' <span class="old_price">'.Tools::displayPrice($product->getPriceWithoutReduct(false)).'</span>' : '').'<a href="'.htmlentities($product->getLink()).'" class="menu-product-name">'.$nm.'</a></li>'.PHP_EOL;}

change to

$this->_menu .= '<a href="'.htmlentities($product->getLink()).'" class="menu-product-name">'.$nm.'</a>';
			if ($product->show_price && !(bool)$pscatmode){
				$this->_menu .= '<span class="price-container'.(($reduction) ? " reduction" : "").'"><span class="price">'.( !$priceDisplay ? Tools::displayPrice(Tools::ps_round($product->price*(0.01*$product->tax_rate)+$product->price, 2)) : Tools::displayPrice(Tools::ps_round($product->price, 2))).'</span>'.(($reduction) ? ' <span class="old_price">'.Tools::displayPrice($product->getPriceWithoutReduct(false)).'</span>' : '').'</span>'.PHP_EOL;}

Comments

No comments yet