Popup Width & Checkout Product List Not Responsive

  • Posts: 84
  • Thank you received: 1
11 years 6 months ago #100145

The popup, after 'add to cart', is wider than the mobile device width. I enabled 'use bootstrap design' and set 'popup=bootstrap' but still the popup is wider than width of iphone. Any suggestions?

I can try and change the width via CSS, but I just wanted to know if that will work, and why it is not responding to the settings.

Also, same thing with the product list in the checkout page. It is wider than Iphone width. This is probably because there are many elements displayed (pic,name,unit price,quantity,total).

Is there a way I can hide the 3 letter currency code on the front end only? We'd only use one currency. That might help squeeze it a bit. I tried deleted the 3 letter code but got a message saying that the payment gateway uses it to recognize the currency.

Please advise. Thanks.

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
11 years 6 months ago #100207

Hi,

The add to cart popup notice always use the mootools popup as the code for its handling was not modified to handle the bootstrap popup system as it is quite complex to do. I don't have a ready-made solution besides not using it at all. With custom CSS, using the @media method, you might be able to do it but since it's done in javascript, I don't think that it will work.

Regarding the cart listing on the checkout, it really depends on your products data, and how you display the prices. On our tests it displayed fine but then we had not activated the image display.
You won't be able to remove just the currency code.
I would recommend to hide the image or the name column for small devices with such CSS:
@media only screen and (max-width: 640px) {
#hikashop_checkout_cart .hikashop_cart_product_image_title, #hikashop_checkout_cart .hikashop_cart_product_image_value{ display: none; }
}

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

  • Posts: 84
  • Thank you received: 1
11 years 6 months ago #100222

Then what is the "popup mode" in the Hika config? It can be set to bootstrap, and I assumed that this would fix the problem. What is this field for then?

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

  • Posts: 84
  • Thank you received: 1
11 years 6 months ago #100224

Even with the image column disabled, on Iphone portrait mode, the total price for each item overflows, and the total price at the bottom overflows more, is way off to the right.

Is there a way to text-wrap the 3 letter currency code and the price? I have them separated by a space, and tried 'text-wrap: none' but they won't wrap.

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 6 months ago #100289

Hi,

The "popup mode" option is for the moment and option for Joomla 3 in order to use the classical mootools popup instead of the bootstrap popups.
But, as Nicolas explained, all popups in HikaShop are not migrated to the popup helper, so some popup still have the mootools popup.

About your currency, you have to use a non-breaking space:

 

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.
Last edit: 11 years 6 months ago by nicolas.

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

  • Posts: 84
  • Thank you received: 1
11 years 6 months ago #100371

The spacing between the currency code and the amount, is defined in the currency config within Hikashop currencies. How can I specify a non-breaking space? It's a yes/no option in the config.

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

  • Posts: 84
  • Thank you received: 1
11 years 6 months ago #100441

I didn't understand what you mean regarding the popups. Ive disabled the popup for cart.

But in any case the popup width is a major issue, since many other things use the popup, including "adding addresses" for logged in users in control panel. Why does adding an address need to be a popup? Is there a way to change this? In addition, also address popup on checkout page if there is no default address.

Not to mention the image zoom, when you click on thumbnail. How do I deal with this?

Last edit: 11 years 6 months ago by goloon.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #100737

The popup sizes can be changed in the views which are calling the popup.
For example, the add/edit address in the user control panel use the view "address / lisitng", you can edit this view and change the width / height values in this code:

			<?php echo $this->popup->display(
				'<img src="'. HIKASHOP_IMAGES.'edit.png" alt="'. JText::_('HIKA_EDIT').'" />',
				'HIKA_EDIT',
				hikashop_completeLink('address&task=edit&address_id='.$address->address_id.'&Itemid='.$Itemid,true),
				'hikashop_edit_address_popup_'.$address->address_id,
				760, 480, '', '', 'link'
			); ?>
width: 760, height: 480

For the image zoom, are you talking about the zoom on a image in a listing ?
If it is, you can edit the desired view (generally product / listing_img_title) and edit the line:
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);
And replace "false" by "true", it's working this way for all the thumbnails.

Concerning the space between currency code and amount, you can edit the currency via the menu System > Currencies.

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

  • Posts: 84
  • Thank you received: 1
11 years 6 months ago #100880

I edited the view "address/listing", and it did change the width of the popup (on the address listing page only, when trying to add a new address, not on the proceed to checkout page where the address popup pops up when there is no default address). In any case it is still impossible to navigate on mobile, since you can't scroll the popup because it's overlayed on top of the page. Popups are not a very good idea as far as mobile, especially since adding an address is essential and not something I can disable. This needs to be an actual page. Please advise as this is becoming a real headache.

Regarding the image zoom, yes I am speaking of the product page. Will this disable the popup zoom completely? If so then this is not what I want. I would like to disable it based on @media CSS in order to allow desktop users to popup zoom, where as mobile users it's not important to zoom.

Regarding currency spacing, I know that I can enable/disable space between currency code and amount. The problem is I can't get the text to wrap on the "Proceed to Checkout" page. The product list on the Checkout page is too wide on mobile and overflows to the right. If I can get the 2 columns (Unit Price and Total Price) to wrap the text within them, then it would show in the right width on an Iphone portrait mode. How do I get the text to wrap as follows?

Unit
Price

USD
12.99

USD
29.99


etc. and same for the total price column.

Last edit: 11 years 6 months ago by goloon.

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
11 years 6 months ago #101201

For the address popups on the checkout, it's in the file "address_view" that you need to change the code:
rel="{handler: 'iframe', size: {x: 450, y: 480}}"

There are two places in the file that you need to change (one of the edit, one for the new).

When we started HikaShop, mobile ecommerce was not yet available and thus it wasn't something we thought about. Normally, responsive popups should be a solution but as we already said, these address popups were not yet moved to the responsive system.
I agree that it would be great to not have popups anymore and directly edit the addresses but it's not easy to change all that and it's not something I can provide you like that on the forum. It will require days of development in order to do a correct solution in the future to not have these popups.

Regarding the image popup, you can't disable it based on @media. Either you don't use it at all, or you do. You can't deactivate javascript with CSS. You would have to modify the javascript to not trigger the popup based on the width of the screen that can be retrieved in js.
That s code would have to be added in the code:
onclick="SqueezeBox.fromElement(this,{parse: \'rel\'});return false;"

in the file administrator/components/com_hikashop/helpers/image.php
Maybe something like that (not tested):
onclick="if(window.clientWidth>500){ SqueezeBox.fromElement(this,{parse: \'rel\'}); } return false;"

Regarding the cart word wrapping, I think that you only need to remove the CSS:
.hikashop_cart_title {
white-space: nowrap;
}
from the frontend CSS file of HikaShop so that the column titles of the cart get wrapped

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

  • Posts: 84
  • Thank you received: 1
11 years 6 months ago #101211

Thanks Nicolas.

Regarding word wrap, I override it by adding this into my template.css:

.hikashop_cart_title, .hikashop_product_price {
white-space: normal !important;
}

Worked well. Thanks.

Still looking into the other things. Will let you know. Thanks.

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

Time to create page: 0.089 seconds
Powered by Kunena Forum