Product Types

Open to all! Ask other shopowners for help.
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: Pre Order

Post by burt »

I've changed this idea.

From
"is this product a preorder"
- yes
- no

To
"what is the product type"
- normal
- preorder

This allows the possibility in the future of adding in other types, eg backorder, subscription, giftcard, donation
should anyone be interested enough to extend.
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
puddlec
Member
Posts: 31
Joined: Mon Dec 07, 2020 3:11 pm
Phoenix Version:
Has thanked: 1 time
Been thanked: 7 times

Re: Pre Order

Post by puddlec »

What if you know the exact date new stock is going to come in?
e.g. new stock comes in on 23 july how would this system handle that
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: Pre Order

Post by burt »

puddlec wrote: Wed Jul 16, 2025 11:48 am What if you know the exact date new stock is going to come in?
e.g. new stock comes in on 23 july how would this system handle that
That is already handled in Phoenix, right ?
I am not here to build for you.
I am here to build with you. Let's help each other.
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: Pre Order

Post by burt »

I've hit a roadblock on this, so I'm flowcharting again.
I think it can be done in a more fexible way, which would avoid the blockage, and make the system more extensible.
I am not here to build for you.
I am here to build with you. Let's help each other.
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: Product Types

Post by burt »

OK, it's take all day but I am back to where I started, with the roadblock cleared.

Here is where I'm at;

https://youtu.be/zBBdV3goxTw
Note that this is only a "preorder" product type video...

There's some hard_coded language bits in the admin, but it gives a general idea of my direction of travel.

So far...all this done with NO core code changes.



Best of all, that roadblock is out of the way - users can just upload (properly formatted) files when they want to add in a new product type ( eg a product with a fixed date @puddlec ). Which would be one controller file (a "product_type") and helper hooks to change things that need changing.

In the example video, that is 3 "helper" hooks;

siteWide
- adds the extra card details
- 0:24 in the video

product_info
- updates schema
- adds message
- changes button icon and colour
0:28 in video

shopping_cart
- adds message
- changes button icon and colour
0:41 in video
I am not here to build for you.
I am here to build with you. Let's help each other.
ArtcoInc
Contributor
Posts: 119
Joined: Fri Oct 25, 2019 4:19 pm
Phoenix Version: v1.0.3.0
Has thanked: 86 times
Been thanked: 17 times

Re: Product Types

Post by ArtcoInc »

(I haven't looked, so forgive me if this has already been addressed)

How could I indicate that I have, say, 100 pieces on order. And, can accept combined pre-orders of only those 100 pieces, and no more?

M
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: Product Types

Post by burt »

ArtcoInc wrote: Wed Jul 16, 2025 4:32 pmHow could I indicate that I have, say, 100 pieces on order. And, can accept combined pre-orders of only those 100 pieces, and no more?
Update products_quantity to 100 <--- product adding/editing page
Disallow buying at 0 in stock <--- somewhere in admin

I *think* that is covered already in Phoenix?
I don't remember the exact setting (it's somewhere in Admin).
I am not here to build for you.
I am here to build with you. Let's help each other.
ArtcoInc
Contributor
Posts: 119
Joined: Fri Oct 25, 2019 4:19 pm
Phoenix Version: v1.0.3.0
Has thanked: 86 times
Been thanked: 17 times

Re: Product Types

Post by ArtcoInc »

If a customer buys both an 'available' item *and* a 'pre-order' item in a single order, how would you handle shipping? Assuming that the 'available' items ship now, and the "pre-order" items later, would you have only one shipping charge? If not, how would you handle the two shipping charges?

M
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: Product Types

Post by burt »

ArtcoInc wrote: Wed Jul 16, 2025 9:15 pm If a customer buys both an 'available' item *and* a 'pre-order' item in a single order, how would you handle shipping? Assuming that the 'available' items ship now, and the "pre-order" items later, would you have only one shipping charge? If not, how would you handle the two shipping charges?

M
burt wrote: Tue Jul 15, 2025 11:12 am Assumption that a MIXED order will delay the order until the furthest out date.

Otherwise, as you rightly say, shopowner get into the realms of double shipping charge, potential payment and invoicing problems etc.

Unfortunately I'm not able to take the time to solve all that.
I am not here to build for you.
I am here to build with you. Let's help each other.
LeeFoster
Contributor
Posts: 263
Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
Has thanked: 1 time
Been thanked: 5 times

Re: Product Types

Post by LeeFoster »

I sometimes order from a site that offers mixed in stock and pre-order items, they ship it all at once when the pre-order item comes in. I'd say as long as you make it clear they will be waiting for all items to be in stock most people will understand.

@burt have you also considered moving digital items to being a product type?


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