Search…

X3 Photo Gallery Support Forums

Search…
 
MS-POWER
Experienced
Topic Author
Posts: 38
Joined: 16 Mar 2016, 14:41

Change working ours status

27 Apr 2016, 04:46

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?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Change working ours status

27 Apr 2016, 05:25

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.
 
MS-POWER
Experienced
Topic Author
Posts: 38
Joined: 16 Mar 2016, 14:41

Re: Change working ours status

27 Apr 2016, 06:25

thanks

you are right.... this what i want
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Change working ours status

27 Apr 2016, 06:53

It would take some custom javascript. It would take a developer an hour or so to make ...
 
MS-POWER
Experienced
Topic Author
Posts: 38
Joined: 16 Mar 2016, 14:41

Re: Change working ours status

27 Apr 2016, 07:16

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
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Change working ours status

27 Apr 2016, 13:38

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.
 
MS-POWER
Experienced
Topic Author
Posts: 38
Joined: 16 Mar 2016, 14:41

Re: Change working ours status

27 Apr 2016, 17:40

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
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Change working ours status

28 Apr 2016, 02:38

Send me a link and login to your panel, and I will try to fix something for you ...
 
MS-POWER
Experienced
Topic Author
Posts: 38
Joined: 16 Mar 2016, 14:41

Re: Change working ours status

28 Apr 2016, 03:50

thanks

already sent to you
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Change working ours status

28 Apr 2016, 05:14

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
 
MS-POWER
Experienced
Topic Author
Posts: 38
Joined: 16 Mar 2016, 14:41

Re: Change working ours status

28 Apr 2016, 08:00

:D :D :D :D :D :D :D

Great

thank you very much
:D
 
MS-POWER
Experienced
Topic Author
Posts: 38
Joined: 16 Mar 2016, 14:41

Re: Change working ours status

28 Apr 2016, 09:28

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
Last edited by MS-POWER on 28 Apr 2016, 11:58, edited 1 time in total.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Change working ours status

28 Apr 2016, 11:56

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.
 
MS-POWER
Experienced
Topic Author
Posts: 38
Joined: 16 Mar 2016, 14:41

Re: Change working ours status

28 Apr 2016, 12:08

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
 
MS-POWER
Experienced
Topic Author
Posts: 38
Joined: 16 Mar 2016, 14:41

Re: Change working ours status

28 Apr 2016, 13:37

I think about it some time , then I relocated it to top.


thanks for you



Image