Modal pop up add to cart stay in pop up

  • Posts: 6
  • Thank you received: 0
9 years 7 months ago #227553

-- Browser(s) name and version -- : Mozilla

Hi guys,

I'm trying to make an article. Inside the article i place images with a link to a Hikashop product. It's supposed to open in a modal pop up. When the pop up opens i can see the product and press "add to cart" after that i want it to either stay on the same page or close the modal pop up.

But this is what happens: after i click add to cart and i use the Hikashop : stay on the same page" option. It opens the modal pop up in full screen, so i only see the product page full screen. But i want it to return to the first page with a modal opened of the product. Or i want it to close the modal pop up.

I can't get it to work.

This it he link i used to open a product in a modal pop up: <a class="modal" href="index.php/component/hikashop/product/5-black-shoes?tmpl=component">

I attached a screenshot of the modal op up and a screenshot after i clicked add to cart.

Any ideas?

Attachments:
Last edit: 9 years 7 months ago by crazy_mikew.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
9 years 7 months ago #227567

Hi,

See : www.hikashop.com/support/documentation/1...ize-the-display.html

If you take a look at the page DOM ; you will see that the popup does not contains an iframe with the product page into.
The popup directly contains some HTML with the page elements.
That is very different than a popup using an iframe pointing to the product page link.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 6
  • Thank you received: 0
9 years 7 months ago #227634

Thank you for your respons.

I'm trying to figure it out yet. Do you know how to get a result that it seems like a modal pop up or something similar.

I want to click on a image within an article -> open product in a modal pop up or something like that -> after i clicked add to cart -> return to the pop up or the article.

I hope you could help me out.

Last edit: 9 years 7 months ago by crazy_mikew.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
9 years 7 months ago #227656

Hi,

Would it be possible to know which HikaShop version number you are using and how exactly are you adding the HikaShop product in your article ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 6
  • Thank you received: 0
9 years 7 months ago #227768

I use HikaShop version: 2.6.1.

Within an article i place the following link: "<a class="modal" href="index.php/component/hikashop/product/5-black-shoes?tmpl=component"><img src="images/collectie/collectie.jpg" alt="" width="336" height="504" /></a>". So when i click the image a pop up opens with the product.

Greetings Mike

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
9 years 7 months ago #227782

Hi,

In that case, I suggest you to check with the module which create the modal popup directly.
Your current issue is not related to HikaShop ; as long as the HikaShop content is placed into an iframe ; it will work (as you can see when viewing the link in a separated tab).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 6
  • Thank you received: 0
9 years 7 months ago #227915

Hmm oke, one last question on the productpage my image is not aligned to the left. I've searched in the documantation and found i have to look into views- show_block_img. I don't know what command to add so the image is aligned to the left.

Attachments:
Last edit: 9 years 7 months ago by crazy_mikew. Reason: Adding screenshot

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
9 years 7 months ago #227935

Hi,

Which "image" are you talking about exactly ?
If you're talking about the "image" in the popup ; it is logical that there is no CSS applied to it because the content of the popup is not into an iframe ; we are then returning to the original issue of that post ; and I have to give you the exact same answer than my previous one.

At the moment when you will insert a working popup to display the product page like it should be display, the result will be correct.
Otherwise, the content you currently have is not the content in the HikaShop context ; so it cannot work properly.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 6
  • Thank you received: 0
9 years 7 months ago #228192

Alright thanks, it fixed the problem. Thanks for the support.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum