Problem with PopUp image on variants

  • Posts: 260
  • Thank you received: 25
11 years 10 months ago #54860

Hi HikaShop,

A bit of a curly one that I just cannot nut out.

I am using Joomla 2.5.6, JCE with Mediabox.

I am setting up my shop and all going well except I am have an issue with pop up images with my variants in that the first one will work then subsequent ones will open in new page/tab.

My product setup is probably slightly different to the norm in that in my description area for each product/varient I am using {loadposition xxx} and loading a custom HTML module in place of the description (for ease of editing and info replication throughout the site and import/export for product editing etc)

Here is the issue:
Shop site

On first landing on the page, the popup in the description area works, but if another variant is selected, it will open in a new tab.

Any suggestions on this would be greatly appreciated.

Regards

Simon B

EDIT... I have just tried an alternative. Instead of using {loadposition xxx} for description I have put the description in as normal but still no difference... any variant from parent will not allow popup.


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'
Last edit: 11 years 10 months ago by sambob.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #54908

Hi sambob,

What happen if you try to set the description on each variants ?
> Not using the default description in the variants.

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

  • Posts: 260
  • Thank you received: 25
11 years 10 months ago #54946

Hi Xavier, thanks for your reply.

Description of each variant doesn't make any difference...

It seems that as soon as a variant is called the pop-up functionality is broken.

Everything was going so well on this build ... really must get this to work.


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

  • Posts: 260
  • Thank you received: 25
11 years 10 months ago #54962

Still trying on this..

If you look here:
Shop site

1) Notice the product name is 'Standard Head - 19mm'
2) Click on 'System Diagram' - Pop up works as expected.
3) Select Duo option - Notice the product name is 'Standard Head - 19mm: Duo'
4) Click on 'System Diagram' - Popup opens in new window.
5) Hit refresh (F5) - Notice the product name reverts to 'Standard Head - 19mm' (Even though the Duo variant is selected - also, adding to cart will in fact add Duo to cart)
6) Click on 'System Diagram' - Pop up works as expected.

Yet, through all this, the (Hika generated) product image popup works fine.

Really need to get a solution on this. ( :( )


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
11 years 10 months ago #54997

That's because HikaShop can handle different descriptions for each variant and that your popup system doesn't handle new content which is dynamically added to the page after the page is loaded.

You can edit the file "show" of the view "product" via the menu Display->Views and remove that code in order to avoid the problem:

<div id="hikashop_product_description_<?php echo $variant_name;?>" style="display:none;">
				<?php echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$variant->product_description));?>
			</div>

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

  • Posts: 260
  • Thank you received: 25
11 years 10 months ago #55004

Hi Nicolas, thanks for your reply, appreciate it!

When you say edit that file, What do I need to edit?

I had a play and tried just removing '<?php echo $variant_name;?>', doing that does make it work on all variables BUT.. it is the same description for all variants (thus the popup is the same)

I want to have a unique description for each variant. Is that possible?

Regards

Simon B


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
11 years 10 months ago #55051

When you say edit that file, What do I need to edit?

Like I said:

remove that code in order to avoid the problem:
...


If you want different descriptions then you should not do that modification and the description will switch when you change the characteristic selection. But since your popup system doesn't handle dynamic loading, I'm afraid you want be able to use it in the variants descriptions.

Last edit: 11 years 10 months ago by nicolas.

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

  • Posts: 260
  • Thank you received: 25
11 years 10 months ago #55055

Hi Nicolas,

Thanks for your reply. Yes, thought that might have been the case. But I have found a solution (I think)

Override the JCE Mediaboz and use the same onclick command is you have in Hikashop. Is that ok to do?


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
11 years 10 months ago #55059

If it works then go ahead...

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

  • Posts: 260
  • Thank you received: 25
11 years 10 months ago #55061

Yep seems to be working...

This is what I am using (should anyone else be looking at it).

Instead of the JCE... <a class="jcepopup" type="image" target="_blank" etc etc...

<p><a title="YOUR-TITLE" rel="{handler: 'image'}" target="_blank" href="POPUP-IMAGE.jpg"onclick="SqueezeBox.fromElement(this,{parse: 'rel'});return false;" id="FIX-STD 19mm"><img style="vertical-align: top;" alt="FIX systems-diagram" src="INITIAL-DISPLAY-IMAGE.jpg" width="200" height="47" /></a><p>

Will test further and report back.


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'
Last edit: 11 years 10 months ago by sambob.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum