Skip to main content

Add a read more button near add to shopping cart

More
11 years 5 months ago #197783 by excellentbreda
-- 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

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

More
11 years 5 months ago #197807 by nicolas
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.

More
11 years 5 months ago #197873 by excellentbreda
Sorry where can i find that in teh css?

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

More
11 years 5 months ago #197894 by Mohamed Thelji
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.

More
11 years 5 months ago - 11 years 5 months ago #198446 by excellentbreda
Sorry i can't find 'listing_img_title' in the frontend_custom.css

Where can i find that.
Last edit: 11 years 5 months ago by excellentbreda.

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

More
11 years 5 months ago - 11 years 5 months ago #198460 by excellentbreda
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
Code:
<?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: 11 years 5 months ago by Xavier. Reason: Use of [code]...[/code] tags

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

More
11 years 5 months ago #198467 by nicolas
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.

More
11 years 5 months ago #198527 by excellentbreda
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.

More
11 years 5 months ago #198563 by Xavier
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.258 seconds
Powered by Kunena Forum