Skip to main content

More info in product list

9 years 5 months ago #271430 by marketingfocal
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 7.7.2
-- PHP version -- : 7

Hello,
We need to put a button of "more info" in each product of product list. When the user press this button open a popup with the product information. How can we do that?
Regards,

Leo

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

9 years 5 months ago #271439 by nicolas
Replied by nicolas on topic More info in product list
Hi,

You'll have to edit the file "listing_img_title" of the view "product" via the menu Display>Views. In there, add your image with a modal tag around it extensions.joomla.org/extension/modals/ with the URL being $link plus an extra &tmpl=component parameter added to it so that it does display the modules around the main area of the product page in the popup.
If you need a developer to help you with that, you can contact our partners here:
www.hikashop.com/home/our-partners.html

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

9 years 5 months ago #271512 by marketingfocal
Hi Nicolas,

We have installed the modals plugin as you has recommended. This is the code that we are using and works perfect:

{modal url="<?php echo $link; ?>"}
<?php echo $product_title; ?> Ver detalle
{/modal}

Could we open only the details instead of the complete page? Whe need only the details becouse the page in popup shows the buttons an when you clic its open the producto page. We need that the add to cart button only works in the producto list.
This message contains confidential information

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

9 years 5 months ago #271544 by nicolas
Replied by nicolas on topic More info in product list
Hi,

You would have to edit the view files corresponding to the elements you don't want to display (check them with the "Display view files" setting of the HikaShop configuration), and add such code:
Code:
if(@$_GET['tmpl']=='component') return;
When you add such code in a view file, all the code after it in the view file won't execute when the page is being looked at with the $tmpl=component parameter.

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

9 years 5 months ago #271820 by marketingfocal
Hi Nicolas,

Thanks for your help. We've tried to use your last code but it doesn't work (perhaps we did an incorrect thing). We found a workaround hidding the elements in the popup with this code for each element. Ecample:

#cboxLoadedContent .hikashop_product_vote_mini {
display: none;
}

We are seeing that it's working. Could you confirm us if it correct? Regards, Leo.

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

9 years 5 months ago - 9 years 5 months ago #271824 by Philip
Replied by Philip on topic More info in product list
Hello,

Your Css code seems right, especially because you add in your selector your specific view Id(#cboxLoadedContent) and so that won't affect other pages, and so that the good way to process.

Regards
Last edit: 9 years 5 months ago by Philip.
The following user(s) said Thank You: marketingfocal

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

Time to create page: 0.055 seconds
Powered by Kunena Forum