how to displayed "all product" link in products md

  • Posts: 138
  • Thank you received: 4
10 years 2 weeks ago #213073

-- 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
Attachments:

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

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 1 week ago #213076

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:

<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.

  • Posts: 138
  • Thank you received: 4
9 years 11 months ago #214675

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.

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
9 years 11 months ago #214699

Hi,

Then adapt the 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.066 seconds
Powered by Kunena Forum