Move Product Name Above Price

  • Posts: 120
  • Thank you received: 14
  • Hikashop Business
8 months 4 weeks ago #359913

-- HikaShop version -- : 5.0.3 [2403141732]
-- Joomla version -- : 4.4.3

Did an update to latest and Product Name is now below Price
Something simple changed but no idea where?

Thanks

Attachments:
Last edit: 8 months 4 weeks ago by yerg55.

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

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
8 months 3 weeks ago #359917

Hi,

I don't think it is linked to your update of HikaShop.
Go in the menu Display>Views, and edit the product / listing_img_title.php view file for your template.
There, you'll have a drag & drop editor where you can move the elements up and down.

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

  • Posts: 120
  • Thank you received: 14
  • Hikashop Business
8 months 3 weeks ago #359994

I don't think it is linked to your update of HikaShop.

Agree Nicholas
Never been there before ... so all new to me and certainly never edited

What I see when I go there


<?php
/**
 * @package	HikaShop for Joomla!
 * @version	5.0.3
 * @author	hikashop.com
 * @copyright	(C) 2010-2024 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><!-- IMAGE -->
<div class="hikashop_category_image">
	<a href="<?php echo $this->row->link;?>" title="<?php echo $this->escape($this->row->category_name); ?>">
		<?php
		$image_options = array('default' => true,'forcesize'=>$this->config->get('image_force_size',true),'scale'=>$this->config->get('image_scale_mode','inside'));
		$img = $this->image->getThumbnail(@$this->row->file_path, array('width' => $this->image->main_thumbnail_x, 'height' => $this->image->main_thumbnail_y), $image_options);
		if($img->success) {
			$html = '<img class="hikashop_product_listing_image" title="'.$this->escape((string)@$this->row->file_description).'" alt="'.$this->escape((string)@$this->row->file_name).'" src="'.$img->url.'"/>';
			if($this->config->get('add_webp_images', 1) && function_exists('imagewebp') && !empty($img->webpurl)) {
				$html = '
				<picture>
					<source srcset="'.$img->webpurl.'" type="image/webp">
					<source srcset="'.$img->url.'" type="image/'.$img->ext.'">
					'.$html.'
				</picture>
				';
			}
			echo $html;
		}
		?>
	</a>
</div>
<!-- EO IMAGE -->
<br/>
<!-- NAME -->
<span class="hikashop_category_name">
	<a href="<?php echo $this->row->link;?>">
		<?php
		echo $this->row->category_name;
		if($this->params->get('number_of_products',0)){
			echo ' ('.$this->row->number_of_products.')';
		}
		?>
	</a>
</span>
<!-- EO NAME -->
<?php
if($this->rows[0]->category_id == $this->row->category_id){
	$mainDivName = $this->params->get('main_div_name');

	$doc = JFactory::getDocument();
	$doc->addStyleDeclaration('
#'. $mainDivName.' .hikashop_category_image {
	height: '. $this->image->main_thumbnail_y.'px;
	text-align: center;
	clear: both;
}');

}

Attachments:

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

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
8 months 3 weeks ago #359995

Hi,

The view file you're looking at is category / listing_img_title.php and not product / listing_img_title.php

The following user(s) said Thank You: yerg55

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

Time to create page: 0.092 seconds
Powered by Kunena Forum