Size of popup window

  • Posts: 209
  • Thank you received: 18
11 years 10 months ago #84480

Hi, I have set url's (to articles) for my product options that open in a popup. However in J25 the popup is not wrapping the article content as it did in J15 and I end up with vertical and horizontal scroll bars in the popup which look awful. Is there a way to size the popup or get it to wrap the article contents?

Thanks.

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

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

Hi,

Can you tell me exactly where is the link for this popup ?
In the views (HikaShop > Display > Views) you can edit the size of the popup.

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

  • Posts: 209
  • Thank you received: 18
11 years 10 months ago #84622

Thanks Xavier,

I have a product called "Optional Extra" that I have put an url like this into the "URL" field:

index.php?option=com_content&view=article&id=73&tmpl=component

The url is to a Joomla article.

I have added the Optional Extra product as an "option" on my main product. This adds the extra product as a yes/no dropdown on the main product page so the user can choose to add it if wanted. Because there is an url on the extra product Hikashop puts an info icon next to the dropdown which is great. When you click on the info icon it opens the article in a popup which is not wrapping the article text and shows all scrollbars. Same with my T&C article which is also not wrapping.

I know I can change the size of the popup in the view checkout/terms for T&C but it does not afftect the wrap, nor does it seem to alter the size of the other popups. Maybe it's to do with the format of the url?

Thanks - any help appreciated.
J

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

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

You have to edit the view "product / option" in HikaShop > Display > Views, and change the size parameters in the line:

$options='<a class="hikashop_option_info_link modal" rel="{handler: \'iframe\', size: {x: 450, y: 480}}" title="'.$description.'" href="'.$optionInfo->product_url.'">'.$options.'</a>';

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

  • Posts: 209
  • Thank you received: 18
11 years 10 months ago #84789

Hi Xavier, that changes the size of the popup but does not wrap the contents to fit horizontally. I'm happy with having a vertical scroll bar but don't want the horizontal.

Any other suggestions? Maybe I just have to manually alter the article content to avoid the user having to scroll horizontally even though the horizontal scroll bar will still show. Sad, it used to work in Joomla 15.

Thanks.
J

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

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

Hi,

Have you website a responsive design ? If the width is fixed, then I think that you can change the width of the popup to the width of the content of this one.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum