No screen refresh on save in Windows 7

  • Posts: 256
  • Thank you received: 21
9 years 3 months ago #211212

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5.23
-- Browser(s) name and version -- : Chrome 44.0.2403.130

When editing variants in Chrome on Windows 7 after save, the screen doesn't refresh properly and the list of variants is not displayed. It is necessary to hit f5 then return to the variants tab before you can see the variants again. This only seems to happen in Windows 7.
In Firefox the list of variants displays after saving a change but the changes are not displayed. Again you need to hit f5 in order to refresh the screen. Again, only appears to happen on Windows 7.

Edit: This also seems to be a problem on Windows 8

Last edit: 9 years 3 months ago by rodfarrell.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 3 months ago #211224

Hi,

I use Google Chrome myself on my computer which is on Windows 7 ( will upgrade to 10 soon :) ), and I can't reproduce the issue you're describing with the latest version of HikaShop.
Can you try to download again the install package of HikaShop on our website and install it on yours ? Does that help ?
If not, do you get any javascript error in your browser console (F12 key) on the page when doing the same procedure ? What exact errors do you get in that case ?

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

  • Posts: 256
  • Thank you received: 21
9 years 3 months ago #211333

When in developer mode with caching off it works fine. It is when the developer panel is closed for normal use changes cannot be saved to variants and new variants can only be seen after using the f5 key to refresh

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 3 months ago #211366

Hi,

Thanks for the information.
Please edit the file "administrator/components/com_hikashop/controllers/product.php" and replace

	public function variants() {
By
	public function variants() {
		hikashop_nocache();
It should fix the cache issue that you have with your browser & web server.

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: 256
  • Thank you received: 21
9 years 3 months ago #211493

Thanks Jerome but unfortunately this hasn't fixed the problem. I now realise that the original issue reported was when a new variant was added but in addition we can't edit variants at all once they have been created. FYI, I have made the changes on two sites on two different servers. Both are still unable to edit variants so its getting critical now.

Last edit: 9 years 3 months ago by rodfarrell.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 3 months ago #211517

Hi,

Can you reproduce the issue in our demo website ?

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: 256
  • Thank you received: 21
9 years 3 months ago #211576

The problem described above is not happening but I just noticed that the descriptions field in variants no longer works (this is on all browsers and all operating systems including the demo site)

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 3 months ago #211594

Hi,

Which Joomla editor are you using ?
We added some javascript in order to handle specific situations with some Joomla editors, like TinyMCE : If you have an issue with one of them, you should see some information in your browser javascript (error) console.

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: 256
  • Thank you received: 21
9 years 3 months ago #211641

We use JCE editor. Firebug shows no errors.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 3 months ago #211716

Hi,

Here a patch to force the editors to synchronize the content when you submit the full page.
Because I don't have enough information to understand your issue or what you're doing ; because I am not able to reproduce what I understood.. It's the best I can do.

Please edit the view "backend / product / form" and replace

<form action="<?php echo hikashop_completeLink('product');?>" method="post"  name="adminForm" id="adminForm" enctype="multipart/form-data">
By
<form action="<?php echo hikashop_completeLink('product');?>" method="post" onsubmit="window.productMgr.prepare();" name="adminForm" id="adminForm" enctype="multipart/form-data">

Then
<?php echo $this->editor->display(); ?>
By
<?php echo $this->editor->display(); ?>
<script type="text/javascript">
window.productMgr.saveProductEditor = function() { <?php echo $this->editor->jsCode(); ?> };
</script>

And finally
	<?php echo JHTML::_('form.token'); ?>
</form>
By
	<?php echo JHTML::_('form.token'); ?>
</form>
<script type="text/javascript">
window.productMgr.prepare = function() {
	var w = window, o = w.Oby;
	if(w.productMgr.saveProductEditor) {
		try { w.productMgr.saveProductEditor(); } catch(err){}
	}
	if(window.productMgr.saveVariantEditor) {
		try { window.productMgr.saveVariantEditor(); } catch(err){}
	}
	o.fireAjax("syncWysiwygEditors", null);
};
</script>

If your problem persist ; please provide a full and complete explanation on how reproduce it.
Because like I wrote in the beginning of my message, it's the best I can do, but I won't be able to do more.

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: 3
  • Thank you received: 0
9 years 2 months ago #213912

здравствуйте. у меня тоже не загружаются фотографии(
съехал настройки CSS.
не могу не загрузить не удалить ранее загруженные
есть вот такие ошибки:
index.php:341 Uncaught SyntaxError: missing ) after argument list
index.php?option=com_jce&view=editor&layout=editor&task=pack&component_id=10621&wf0d07675d6d128a827…:2

'webkitMovementX' is deprecated. Please use 'movementX' instead.
index.php?option=com_jce&view=editor&layout=editor&task=pack&component_id=10621&wf0d07675d6d128a827…:2

'webkitMovementY' is deprecated. Please use 'movementY' instead.



Помогите пожалуйста!Спасибо

Attachments:

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

  • Posts: 3
  • Thank you received: 0
9 years 2 months ago #213924

Hello. I also have not downloaded the pictures(
moved CSS settings.
can't upload not delete previously uploaded
there is here such error:
index.php:341 Uncaught SyntaxError: missing ) after argument list
index.php?option=com_jce&view=editor&layout=editor&task=pack&component_id=10621&wf0d07675d6d128a827…:2

'webkitMovementX' is deprecated. Please use 'movementX' instead.
index.php?option=com_jce&view=editor&layout=editor&task=pack&component_id=10621&wf0d07675d6d128a827…:2

'webkitMovementY' is deprecated. Please use 'movementY' instead.

Attachments:

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

  • Posts: 3
  • Thank you received: 0
9 years 2 months ago #213941

Hello. I also have not downloaded the pictures(
moved CSS settings.
can't upload not delete previously uploaded
there is here such error:
index.php:341 Uncaught SyntaxError: missing ) after argument list
index.php?option=com_jce&view=editor&layout=editor&task=pack&component_id=10621&wf0d07675d6d128a827…:2

'webkitMovementX' is deprecated. Please use 'movementX' instead.
index.php?option=com_jce&view=editor&layout=editor&task=pack&component_id=10621&wf0d07675d6d128a827…:2

'webkitMovementY' is deprecated. Please use 'movementY' instead.



Помогите пожалуйста!Спасибо.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 2 months ago #213942

Hi,

I'm sorry, the support is just in English ; we do not understand Russian.
The fact that the upload inputs are visible is because you have a javascript error in your page
index.php:341 Uncaught SyntaxError: missing ) after argument list
It will be interesting to know the content of that line in order to understand more the issue (and to know if the issue is related to HikaShop or not).

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

Time to create page: 0.106 seconds
Powered by Kunena Forum