Skip to main content

how to displayed "all product" link in products md

More
11 years 1 month ago #213073 by aminweb
-- url of the page with the problem -- : localhost
-- HikaShop version -- : busines
-- Joomla version -- : 3
-- PHP version -- : 5

hi
please help me,
i want displayed "all products" link in products module,
for example:
i set latest products module to show 10count product ,but we have 30 products in categories
I want one linke named"all products" in top position module when click on go to categories and show all of 30 products

Joomla Developer | am.ebrahimzadeh[at]gmail.com

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

More
11 years 1 month ago #213076 by nicolas
Hi,

You can edit the file "listing" of the view "product" via the menu Display>Views and add custom HTML code there near the top:
Code:
<a href="http://mywebsite.com/link/to/all/products/page">all products</a>
You'll probably want to add PHP code around it so as to only display that link in some cases and not on all the products listings.

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

More
11 years 2 weeks ago #214675 by aminweb
thnx
but this code for all module similar link
for ex: i have 2 module for displaye product categories
>1-tablet 2-pc
i want all product link in per module different link to all product url

Joomla Developer | am.ebrahimzadeh[at]gmail.com

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

More
11 years 2 weeks ago #214699 by nicolas
Hi,

Then adapt the code:
Code:
<?php if($this->params->get('id') == XXX){ ?> <a href="http://mywebsite.com/link/to/all/products/page/for/module/with/id/XXX">all products</a> <?php }elseif($this->params->get('id') == YYY){ ?> <a href="http://mywebsite.com/link/to/all/products/page/for/module/with/id/YYY">all products</a> <?php } ?>
The following user(s) said Thank You: aminweb

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

Time to create page: 0.206 seconds
Powered by Kunena Forum