VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: allamistakeo19 on June 02, 2015, 20:47:51 PM

Title: "Ask a question" pop-up non-functional on iPhone
Post by: allamistakeo19 on June 02, 2015, 20:47:51 PM
Hi,

When clicking on the button "Ask a question about this product," a pop-up window opens, which is quite nice-looking on a large display, but turns out to be completely unusable on a mobile device such as the iPhone, because the pop-up is too small to display all its contents, and it is impossible to scroll through the contents of the pop-up (if you try to, it is the whole page behind that gets scrolled instead).

Can anyone suggest workarounds? Either in order to get the pop-up to work on mobile devices, or to disable it altogether and use a normal webpage instead.

Thanks in advance

VirtueMart 3.0.8
Joomla! 3.4.1
Title: Re: "Ask a question" pop-up non-functional on iPhone
Post by: jenkinhill on June 03, 2015, 11:57:04 AM
You can simply deselect "Display modal popup upon 'Add to cart'" in VM Configuration/Checkout.

Or override the popup template components/com_virtuemart/views/cart/tmpl/padded.php to show something simple like "Product added to cart" and add some js to fade out the popop after a couple of seconds or so.
Title: Re: "Ask a question" pop-up non-functional on iPhone
Post by: allamistakeo19 on June 03, 2015, 21:15:03 PM
Quote from: jenkinhill on June 03, 2015, 11:57:04 AM
You can simply deselect "Display modal popup upon 'Add to cart'" in VM Configuration/Checkout.

Or override the popup template components/com_virtuemart/views/cart/tmpl/padded.php to show something simple like "Product added to cart" and add some js to fade out the popop after a couple of seconds or so.

Thanks for your input.

You are talking about the "Add to cart" pop-up, which I have already disabled (as you indicated) because it is buggy on multi-language sites.

The pop-up I am talking about, however, is the "Ask a question" pop-up...
Title: Re: "Ask a question" pop-up non-functional on iPhone
Post by: jenkinhill on June 03, 2015, 22:08:44 PM
Ah. I'm sure that can just be rewritten to show the form as a page. Maybe with some js to detect the screen size.  Or maybe resize the popup with screen conditional css.