Lightbox for Product Listing & No Page Navigation

  • Posts: 7
  • Thank you received: 0
11 years 7 months ago #94904

I have two things I'd like to resolve:

1. The lightbox effect for the product page - I'd like to apply this to the thumbnail images on the product listing page. How do I do this?

3. I can't seem to get my page navigation to show up at the bottom of my product listing. I have the number of items set to 6 but I have over that.

Last edit: 11 years 7 months ago by j2012.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #94990

Hi,

You can edit the view "product / listing_img_title" and edit the content in the tags "<!-- PRODUCT IMG -->"
Replace the <a> link to a modal popup. You have to add the class modal. and Change the link,to link it to the picture.
It require some php knowledge.

Could you give us a link to your page ?
Have you changed the pagination settings ?

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

  • Posts: 7
  • Thank you received: 0
11 years 7 months ago #95129

justdemo.us/pam/index.php/shop

Link to the store page. I have tried to change all the setting to show the navigation with no luck.


And I've already tried that (found a possible solution on another page).

This is what my listing_img_title php file looks like for the current template I'm using

<!-- PRODUCT IMG -->
<div style="height:<?php echo $this->image->main_thumbnail_div_y;?>px;text-align:center;clear:both;" class="hikashop_product_image">
<div style="position:relative;text-align:center;clear:both;width:<?php echo $this->image->main_thumbnail_div_x;?>px;margin: auto;" class="hikashop_product_image_subdiv">
<?php if($this->params->get('link_to_product_page',1)){ ?>
<a class="modal" rel="{handler: 'iframe', size: {x: 450, y: 480}}" href="<?php echo $link;?>" title="<?php echo $this->escape($this->row->product_name); ?>" onhover="SqueezeBox.fromElement(this,{parse: 'rel'});return false;">
<?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);
$main_thumb_x = $this->image->main_thumbnail_x;
$main_thumb_y = $this->image->main_thumbnail_y;
$horizontal = '0';
$vertical = -'10';
$this->classbadge->placeBadges($this->image, $this->row->badges, $vertical, $horizontal);
$this->image->main_thumbnail_x = $main_thumb_x;
$this->image->main_thumbnail_y = $main_thumb_y;
if($this->params->get('link_to_product_page',1)){ ?>
</a>
<?php } ?>
</div>
</div>
<!-- EO PRODUCT IMG -->

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

  • Posts: 82785
  • Thank you received: 13353
  • MODERATOR
11 years 7 months ago #95276

Please make sure that the "Pagination" option of the configuration of HikaShop is not turned off, otherwise, you won't see the pagination.

I checked the HTML of your listing page but I don't see your modification. I also see that you're using the item box layout "image and description" and not the default one "image and title". So you should edit the file "listing_img_desc" of the product view, otherwise, it's normal that you don't see any difference.

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

  • Posts: 7
  • Thank you received: 0
11 years 7 months ago #95359

Okay, so I got the pagination to appear. Looks great.

I also applied the code to the correct file (img_desc). Unfortunately, the popup shows a webpage instead of the image. How do I correct this?

Secondly, I am having issues changing the number of products shown on the product listing. I have the product listing as a menu item. When I edit the number of items under the hikashop settings for that specific menu item, the number doesn't change (shows 6 no matter what I change it to). However, the other controls work (I can change the number of columns or type of layout). Am I missing something?

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

  • Posts: 7
  • Thank you received: 0
11 years 7 months ago #95395

Fixed number of items, just need help with the lightbox feature!

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

  • Posts: 7
  • Thank you received: 0
11 years 7 months ago #95537

Can anyone help fix the lightbox issue? I think it just needs a little tweaking.

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

  • Posts: 7
  • Thank you received: 0
11 years 7 months ago #95687

Just want to bump this - not sure how to correct the way the lightbox appears on the product listing page.

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

  • Posts: 82785
  • Thank you received: 13353
  • MODERATOR
11 years 7 months ago #95921

Hi,

You should avoid bumping your messages as it goes back at the top of the queue on our end and thus you will have to wait more for us to answer you which is the opposite of what you want :)

Regarding the lightbox, instead of the line:

<a class="modal" rel="{handler: 'iframe', size: {x: 450, y: 480}}" href="<?php echo $link;?>" title="<?php echo $this->escape($this->row->product_name); ?>" onhover="SqueezeBox.fromElement(this,{parse: 'rel'});return false;">

which will display the full product page in the lightbox, you should instead use:
<a class="modal" rel="{handler: 'iframe', size: {x: 450, y: 480}}" href="<?php echo $link;?>?tmpl=component" title="<?php echo $this->escape($this->row->product_name); ?>" onhover="SqueezeBox.fromElement(this,{parse: 'rel'});return false;">
which will only display the content of the product page without the template.

The following user(s) said Thank You: j2012

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

  • Posts: 7
  • Thank you received: 0
11 years 7 months ago #95973

Thank you. It looks great. How do I change the color of the popup box?

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

  • Posts: 82785
  • Thank you received: 13353
  • MODERATOR
11 years 7 months ago #96225

That is no handled by HikaShop but Joomla.

You will have to change the code:

#sbox-window {
position: absolute;
background-color: #fff;
text-align: left;
overflow: visible;
padding: 10px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}

in the file justdemo.us/pam/media/system/css/modal.css

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

Time to create page: 0.079 seconds
Powered by Kunena Forum