[solved] Disable show of products images in shipping block

  • Posts: 136
  • Thank you received: 7
7 years 2 months ago #277044

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.5
-- PHP version -- : 7.0.10
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : none

Hi Hikashop

I cannot find the option in back-end to disable view of product images in shipping block (show_block_shipping.php)

if($several_groups && !empty($this->options['show_shipping_products']))

Should I then just delete line 43-64?
if($several_groups && !empty($this->options['show_shipping_products'])) {
?>
<ul class="hikashop_shipping_products">
<?php
	foreach($group->products as $product) {
		if($product->cart_product_quantity <= 0)
		continue;

		$thumbnail = '';
			if(!empty($product->images))
				$thumbnail = $product->images[0]->file_path;
				$image = $this->imageHelper->getThumbnail($thumbnail, array(50,50), array('default' => true), true);
				$name = $this->escape(strip_tags($product->product_name));
?>
		<li class="hikashop_shipping_product"><img src="<?php echo $image->url; ?>" alt="<?php echo $name; ?>" data-toggle="hk-tooltip" data-title="<?php echo $name; ?>"/></li>
<?php
	}
?>
</ul>
<?php
		}
?>

Regards,
Henrik


.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building
Last edit: 6 years 8 months ago by flexsus.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
7 years 2 months ago #277047

Hello Henrik,

Using the some CSS code like display:none; on the "hikashop_shipping_products" will probably do the job
www.hikashop.com/support/documentation/1...the-display.html#css

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum