Add a read more button near add to shopping cart

  • Posts: 9
  • Thank you received: 0
10 years 1 month ago #197783

-- url of the page with the problem -- : www.excellentbreda.nl
-- HikaShop version -- : lastest
-- Joomla version -- : 2.5.28

How can i add a read more button near Add to shopping cart button
see picture.

Thanks Robbert

Attachments:

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

  • Posts: 83777
  • Thank you received: 13561
  • MODERATOR
10 years 1 month ago #197807

Hi,

Edit the file 'listing_img_title' of the view "product" via the menu Display>Views and add such code at the end:
<a href="<?php echo $link; ?>">Read more</a>

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

  • Posts: 9
  • Thank you received: 0
10 years 1 month ago #197873

Sorry where can i find that in teh css?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 1 month ago #197894

As it's said on the documentation : www.hikashop.com/support/documentation/1...the-display.html#css
You can add your CSS code via "Hikashop->System->Configuration->Display"

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

  • Posts: 9
  • Thank you received: 0
10 years 1 month ago #198446

Sorry i can't find 'listing_img_title' in the frontend_custom.css

Where can i find that.

Last edit: 10 years 1 month ago by excellentbreda.

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

  • Posts: 9
  • Thank you received: 0
10 years 1 month ago #198460

Hi i find the file listing_img_title.php but i add the tekst at the end but it is no working

See copy tekst of my css

<?php
/**
 * @package	HikaShop for Joomla!
 * @version	2.4.0
 * @author	hikashop.com
 * @copyright	(C) 2010-2015 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php $link = hikashop_contentLink('product&task=show&cid='.$this->row->product_id.'&name='.$this->row->alias.$this->itemid.$this->category_pathway,$this->row);?>
<!-- PRODUCT NAME -->
<span class="hikashop_product_name">
	<?php if($this->params->get('link_to_product_page',1)){ ?>
		<a href="<?php echo $link;?>">
	<?php }
		echo $this->row->product_name;
	if($this->params->get('link_to_product_page',1)){ ?>

	</a>
	<?php } ?>
</span>
<!-- EO PRODUCT NAME -->
<!-- PRODUCT CODE -->
	<span class='hikashop_product_code_list'>
		<?php if ($this->config->get('show_code')) { ?>
			<?php if($this->params->get('link_to_product_page',1)){ ?>
				<a href="<?php echo $link;?>">
			<?php }
			echo $this->row->product_code;
			if($this->params->get('link_to_product_page',1)){ ?>

				</a>
			<?php } ?>
		<?php } ?>
	</span>
<!-- EO PRODUCT CODE -->
<!-- PRODUCT PRICE -->
<?php

if($this->params->get('show_price')){
	$this->setLayout('listing_price');
	echo $this->loadTemplate();
} ?>
<!-- EO PRODUCT PRICE -->
<!-- ADD TO CART BUTTON AREA -->
<?php

if($this->params->get('add_to_cart') || $this->params->get('add_to_wishlist')){
	$this->setLayout('add_to_cart_listing');
	echo $this->loadTemplate();
} ?>
<!-- EO ADD TO CART BUTTON AREA -->
<?php
if(JRequest::getVar('hikashop_front_end_main',0) && JRequest::getVar('task')=='listing' && $this->params->get('show_compare')) { ?>
	<br/><?php
	if( $this->params->get('show_compare') == 1 ) {
		$js = 'setToCompareList('.$this->row->product_id.',\''.$this->escape($this->row->product_name).'\',this); return false;';
		echo $this->cart->displayButton(JText::_('ADD_TO_COMPARE_LIST'),'compare',$this->params,$link,$js,'',0,1,'hikashop_compare_button');
	} else { ?>
	<input type="checkbox" class="hikashop_compare_checkbox" id="hikashop_listing_chk_<?php echo $this->row->product_id;?>" onchange="setToCompareList(<?php echo $this->row->product_id;?>,'<?php echo $this->escape($this->row->product_name); ?>',this);"><label for="hikashop_listing_chk_<?php echo $this->row->product_id;?>"><?php echo JText::_('ADD_TO_COMPARE_LIST'); ?></label>
<?php }
} ?>
<a href="<?php echo $link; ?>">Read more</a>

Last edit: 10 years 4 weeks ago by Xavier. Reason: Use of [code]...[/code] tags

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

  • Posts: 83777
  • Thank you received: 13561
  • MODERATOR
10 years 4 weeks ago #198467

Hi,

Then it means that you edited the listing_img_title view file for another template than the template you're using on your frontend ( so please make sure that it's the correct template ), or you have some caching on your website preventing you from seeing the change (so please clear the cache of your website).

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

  • Posts: 9
  • Thank you received: 0
10 years 4 weeks ago #198527

Hi Nicolas.

It is the same template, other changes can be seen on the site.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 4 weeks ago #198563

Hi,

If the other changes on that same view can be seen so the given code must work, or at least display the "read more" text.
If it is not on the same view, please check the settings of the module with the id "147" in order to be sure that the used view is well "listing img title".

Else as Nicolas said, it is potentially a cache issue.

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

Time to create page: 0.083 seconds
Powered by Kunena Forum