Removing Links in Product Catergory List

  • Posts: 214
  • Thank you received: 1
11 years 9 months ago #88435

Hi There,

Really loving the plugin, and the support on the forum is absolutely phenomenal, so kudos to all of you!

My boss really likes the format of the Category view (as demonstrated here - www.breakoutbox.co.uk/index.php/home/products ) and he's asked if we can use the same format for an 'Examples page', as shown here www.breakoutbox.co.uk/index.php/bespoke-...cts/bespoke-examples

However, the problem is he's looking to just populate the catergories with text from the description, which means there is no product to actually link to, so anyone clicking a link will get a 404 error.

So, in a nutshell, my question is how can I remove the link in the text 'Example 1' to just have it as a header and remove the 'Click to see all Example 1' link altogether, so essentially this can just be a page of plain text.

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

  • Posts: 214
  • Thank you received: 1
11 years 9 months ago #88477

I've since added more information, but my question still applies.

How can I remove the links, or change the link to say a PDF document?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 9 months ago #88611

Hi,

I do not understand your question or your requirement.
I am quite sure that you need to make a view override but I really don't know of what you want to do.
So, it should be the "product listing" view, or the "category listing" view.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 214
  • Thank you received: 1
11 years 9 months ago #88626

Hi There,

Basically I want to keep this catergory view,

www.breakoutbox.co.uk/index.php/bespoke-...cts/bespoke-examples

But these are examples of products, so the links do not actually go anywhere (and thus generate 404 errors when you click on them) - so, my requirement is just to remove the links and leaving them just as text, if this can be done?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #88649

Hi,

To remove the links, you can disable the option "Link to the product page" in your module options.
If you have the listing from a menu, then edit the menu, click on the associated module, and there disable the option.

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

  • Posts: 214
  • Thank you received: 1
11 years 9 months ago #88656

Hi There,

I believe I've unticked the correct box, but I still seem to be getting links.

I've taken a screenshot of how it all looks...

www.barmanager.co.uk/TextPages/bespoke_examples_001.PNG
www.barmanager.co.uk/TextPages/bespoke_examples_002.PNG

Thank you very much for your reply, and your help.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #88756

Hi,

You can try to untick the option in the general parameters (HikaShop > Config > Display > Options for products > "Link to the product page").
Have you edited the view "product / listing_img_desc" ?

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

  • Posts: 214
  • Thank you received: 1
11 years 9 months ago #88857

Hi There,

I unticked that option but it still looks the same. I can see the previous user has added a customisation but I'd be wary of removing it incase it breaks another part of the site. Here is the code for listing_img_desc if that makes sense to anyone...

<?php
/**
* @package HikaShop for Joomla!
* @version 1.6.0
* @author hikashop.com
* @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<?php $link = hikashop_completeLink('category&task=listing&cid='.$this->row->category_id.'&name='.$this->row->alias.$this->menu_id);?>
<table>
<tr>
<!-- CATEGORY IMG -->
<?php if($this->config->get('thumbnail',1)){ ?>
<td width="<?php echo $this->image->main_thumbnail_x+30;?>px">
<div class="hikashop_category_left_part" style="text-align:center;">
<div style="height:<?php echo $this->image->main_thumbnail_y;?>px;width:<?php echo $this->image->main_thumbnail_x;?>px;text-align:center;margin:auto" class="hikashop_product_image">
<a href="<?php echo $link;?>" title="<?php echo $this->escape($this->row->category_name); ?>">
<?php
echo $this->image->display(@$this->row->file_path,false,$this->escape($this->row->file_name), '' , '' , $this->image->main_thumbnail_x, $this->image->main_thumbnail_y);
?>
</a><h3>Click to see all <?php echo $this->escape($this->row->category_name); ?></h3>
</div>
</div>
</td>
<?php } ?>
<!--EO CATEGORY IMG -->
<td valign="top">
<div class="hikashop_category_right_part">
<h2>
<!-- CATEGORY NAME -->
<span class="hikashop_category_name">
<a href="<?php echo $link;?>">
<?php
echo $this->row->category_name;
if($this->params->get('number_of_products',0)){
echo ' ('.$this->row->number_of_products.')';
}
?>
</a>
</span>
<!-- EO CATEGORY NAME -->
</h2>
<!-- CATEGORY DESC -->
<span class="hikashop_category_desc" style="text-align:<?php echo $this->align; ?>;">
<?php
echo preg_replace('#<hr *id="system-readmore" */>.*#is','',$this->row->category_description);
?>
</span>
<!-- EO CATEGORY DESC -->
</div>
</td>
</tr>
</table>

Thank You

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #88935

To remove the links to the products in a listing you have check the view "listing_img_desc" of product and not category.

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

  • Posts: 214
  • Thank you received: 1
11 years 9 months ago #88939

I may have to end up creating these products and making them not available, as removing these links is providing much more complex then I originally thought.

In this case, if I wanted to change the text of "Click to see all etc" in the link under the picture to just "Click to see etc" or "Click to read about etc" where abouts could I edit that text?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #89106

The text "Click to see all ..." don't come from HikaShop, does anyone have already edited the view "product / listing_img_desc" ?

Because all the encountered problems don't seem to come from us, but from an old modification already made in this view.
To change that text, you have to edit this view too.

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

  • Posts: 214
  • Thank you received: 1
11 years 9 months ago #89252

Hi Xavier,

Yes I've taken over the account from someone else, and it doesn't help he didn't leave any documentation about his changes!

I've gone with an alternatively route for this page now, but thank you so much for your help.

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

Time to create page: 0.074 seconds
Powered by Kunena Forum