- Posts: 9
- Thank you received: 0
Add a read more button near add to shopping cart
- excellentbreda
-
Topic Author
- Offline
Less
More
11 years 5 months ago #197783
by excellentbreda
Add a read more button near add to shopping cart was created 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
-- 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.
11 years 5 months ago #197807
by nicolas
Replied by nicolas on topic Add a read more button near add to shopping cart
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>
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.
- excellentbreda
-
Topic Author
- Offline
Less
More
- Posts: 9
- Thank you received: 0
11 years 5 months ago #197873
by excellentbreda
Replied by excellentbreda on topic Add a read more button near add to shopping cart
Sorry where can i find that in teh css?
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
11 years 5 months ago #197894
by Mohamed Thelji
Replied by Mohamed Thelji on topic Add a read more button near add to shopping cart
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"
You can add your CSS code via "Hikashop->System->Configuration->Display"
Please Log in or Create an account to join the conversation.
- excellentbreda
-
Topic Author
- Offline
Less
More
- Posts: 9
- Thank you received: 0
11 years 5 months ago - 11 years 5 months ago #198446
by excellentbreda
Replied by excellentbreda on topic Add a read more button near add to shopping cart
Sorry i can't find 'listing_img_title' in the frontend_custom.css
Where can i find that.
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.
- excellentbreda
-
Topic Author
- Offline
Less
More
- Posts: 9
- Thank you received: 0
11 years 5 months ago - 11 years 5 months ago #198460
by excellentbreda
Replied by excellentbreda on topic Add a read more button near add to shopping cart
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
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.
11 years 5 months ago #198467
by nicolas
Replied by nicolas on topic Add a read more button near add to shopping cart
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).
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.
- excellentbreda
-
Topic Author
- Offline
Less
More
- Posts: 9
- Thank you received: 0
11 years 5 months ago #198527
by excellentbreda
Replied by excellentbreda on topic Add a read more button near add to shopping cart
Hi Nicolas.
It is the same template, other changes can be seen on the site.
It is the same template, other changes can be seen on the site.
Please Log in or Create an account to join the conversation.
11 years 5 months ago #198563
by Xavier
Replied by Xavier on topic Add a read more button near add to shopping cart
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.
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