s07e05 - Open All Hours QUESTIONS/SUPPORT

Open to all! Ask other shopowners for help.
Post Reply
villameschik

s07e05 - Open All Hours QUESTIONS/SUPPORT

Post by villameschik »

Addon:
Allows shopowner to set opening and closing times.

Download:
viewtopic.php?f=28&t=330

--

Very interesting, thanks @Burt, isn't there a solution that with the shop closed the customer can only see the items without being able to buy? thank you

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: s07e05 - Open All Hours

Post by burt »

villameschik wrote: Thu Mar 04, 2021 1:51 pm Very interesting, thanks @Burt, isn't there a solution that with the shop closed the customer can only see the items without being able to buy? thank you
If you want to disable checkout, you should look in the header_tag module, where you will find this (twice):

Code: Select all

if (basename($PHP_SELF) != 'closed.php') {
and change to:

Code: Select all

if (basename($PHP_SELF) == 'checkout_shipping.php') {
The system will now redirect to closed.php when they hit checkout_shipping.php.
I am not here to build for you.
I am here to build with you. Let's help each other.
villameschik

Re: s07e05 - Open All Hours

Post by villameschik »

Dear as always, thanks @burt
lambro28
Member
Posts: 62
Joined: Sun Jan 03, 2021 2:47 pm
Phoenix Version: v1.1.0.6
Has thanked: 11 times
Been thanked: 8 times

Re: s07e05 - Open All Hours

Post by lambro28 »

Thanks for the latest update.

I cant see why an online shop would want to close?

Not moaning, just asking a question as curious to learn.
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: s07e05 - Open All Hours

Post by ecartz »

lambro28 wrote: Sat Mar 06, 2021 9:24 pm I can't see why an online shop would want to close?

Not moaning, just asking a question as curious to learn.
From his original post:
burt wrote: Wed Mar 03, 2021 11:59 am It would be very useful for a shop where online ordering is available part-time (eg a pizza or fried chicken shop).
I.e. in shops where they deliver immediately (probably locally). And yes, I've ordered pizza (delivered) and sandwiches (for pickup) that way. At a guess, he has a single client who has this particular need and so has filled it.

If you primarily deliver via mail order, it probably won't be helpful to you as is. A similar mod, that instead of closing the whole store, just showed a "currently closed" or "open for walkins" message might be useful.
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: s07e05 - Open All Hours

Post by burt »

With some coding attention, it could also be used for something else, for example some shops have "online chat" between 9am and 5pm monday to friday.
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
ReneH4
Contributor
Posts: 145
Joined: Mon Oct 26, 2020 12:00 pm
Phoenix Version:
Has thanked: 13 times
Been thanked: 17 times

Re: s07e05 - Open All Hours

Post by ReneH4 »

I know of one company here in the Netherlands, that has it's website closed on sundays because of religious reasons.

Yes, the website is closed on sundays. This is not a typo. :-)
lambro28
Member
Posts: 62
Joined: Sun Jan 03, 2021 2:47 pm
Phoenix Version: v1.1.0.6
Has thanked: 11 times
Been thanked: 8 times

Re: s07e05 - Open All Hours

Post by lambro28 »

Thanks for educating me, my main learning point was read before you post :D :D


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply