Page 1 of 2

Change working ours status

Posted: 27 Apr 2016, 04:46
by MS-POWER
Dear

Im asking is it possible to put code in context that will show open status of our salon working time open or closed according to time .?

Can be worked or not?

Re: Change working ours status

Posted: 27 Apr 2016, 05:25
by mjau-mjau
MS-POWER wrote:Im asking is it possible to put code in context that will show open status of our salon working time open or closed according to time .?
I am not quite sure what you mean "code in context". Can't you add it to a page with some html?

... or do you want to make some dynamic that would display either "We are currently closed" or "we are open!"? That would require some custom javascript.

Re: Change working ours status

Posted: 27 Apr 2016, 06:25
by MS-POWER
thanks

you are right.... this what i want

Re: Change working ours status

Posted: 27 Apr 2016, 06:53
by mjau-mjau
It would take some custom javascript. It would take a developer an hour or so to make ...

Re: Change working ours status

Posted: 27 Apr 2016, 07:16
by MS-POWER
almost done now it will show open or close according to days and times I set.

http://retalcenter.com/x3/workingstatus.php


in which file I need to include workingstatus.php to show it above the logo in right side menu ?


http://retalcenter.com/x3/

thanks

Re: Change working ours status

Posted: 27 Apr 2016, 13:38
by mjau-mjau
There is no "include" function in html, and X3 is more advanced than just a "PHP" where you can include other PHP files. Furthermore, X3 caches pages, so it wouldn't work just "including" something into a template ... Even if it was, it means your pages would be much slower.
in which file I need to include workingstatus.php to show it above the logo in right side menu ?
You would need to load it via a custom AJAX javascript, into an element above the logo. I could probably write something like that in less than 30 minutes, but you can't just insert anything above the logo ... The website is supposed to be responsive, and you would need to style it etc.

Re: Change working ours status

Posted: 27 Apr 2016, 17:40
by MS-POWER
thanks a lot

really I like to keep :
http://retalcenter.com/x3/workingstatus.php

on the main page at any place if possible without any problem...if you can help I appreciate .
..................................................................................
at present I created an external page (pop window) and I link it to Menu.

http://retalcenter.com/x3/

just click working time


regards

Re: Change working ours status

Posted: 28 Apr 2016, 02:38
by mjau-mjau
Send me a link and login to your panel, and I will try to fix something for you ...

Re: Change working ours status

Posted: 28 Apr 2016, 03:50
by MS-POWER
thanks

already sent to you

Re: Change working ours status

Posted: 28 Apr 2016, 05:14
by mjau-mjau
Done
Image

I had to modify your workingstatus.php file, because it was outputting a full html page. In ajax, it just needs to load a fragment of HTML. You can moderate some styles in your settings -> custom -> custom CSS:
Image

Re: Change working ours status

Posted: 28 Apr 2016, 08:00
by MS-POWER
:D :D :D :D :D :D :D

Great

thank you very much
:D

Re: Change working ours status

Posted: 28 Apr 2016, 09:28
by MS-POWER
Dear

I have questions

1. is it possible to relocate the workingstatus top of the menu or not?... how to determine present location of workingstatus from where?
2.next new release of images x3 will effect this change or not? should I take backup of some files?
3.the workingstatus not appear on the mobile!

thanks

Re: Change working ours status

Posted: 28 Apr 2016, 11:56
by mjau-mjau
MS-POWER wrote:1. is it possible to relocate the workingstatus top of the menu or not?... how to determine present location of workingstatus from where?
Yes. It's technical. Someone who knows javascript could figure it out. But then you would probably need to change the CSS also.
MS-POWER wrote:2.next new release of images x3 will effect this change or not? should I take backup of some files?
It will be fine.
MS-POWER wrote:3.the workingstatus not appear on the mobile!
No. You asked for it under the sidebar menu. The mobile menu is different, and why would you want "opening hours" there anyway? Its not visible until they try to navigate.

Sorry, but I can't spend hours on a custom project for free. Im busy with an X3 update.

Re: Change working ours status

Posted: 28 Apr 2016, 12:08
by MS-POWER
great done by you and Im more satisfy with all.

I will keep it like this for present , and we will come back for any thing needs payment after some time , its not big issue for me.


regards

Re: Change working ours status

Posted: 28 Apr 2016, 13:37
by MS-POWER
I think about it some time , then I relocated it to top.


thanks for you



Image