1.0.9.2 is almost all changes in the Admin Side

Open to all! Ask other shopowners for help.
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: 1.0.9.2 is almost all changes in the Admin Side

Post by raiwa »

bonbec wrote: Mon Apr 29, 2024 7:20 am This sort of thing will be very easy to do if admin/catalog.php could be modularized like the Pi modules in product_info.php
Additional product characteristics and settings can already be easy added in additional tabs with productTab and updateProductAction hooks.
See my addons "Ajax Attributes Manager" and "QtPro" for examples.
Last edited by raiwa on Mon Apr 29, 2024 8:58 am, edited 1 time in total.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27


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

Re: 1.0.9.2 is almost all changes in the Admin Side

Post by burt »

bonbec wrote: Mon Apr 29, 2024 7:20 am On my current site (Ms2.2) I did this (in red the English translation) but as a radio button, which allows more possibilities.
For example when "Product status is in stock" and "supplier stock is permanent shutdown", the text on a yellow background appears: "last items available, manufacturer permanent shutdown".
moto.jpg
This sort of thing will be very easy to do if admin/catalog.php could be modularized like the Pi modules in product_info.php
I assume that you use the core product_status as 1 (in stock) and 0 (out of stock).
Then you have some other flag(s);
supplier_stock: 1 OK, 2 Shutdown, 3 Blah blah, 4 Whatever
Or
Have you got it all running through "product_status" ? 1 (in stock) 0 (oos), 2 supplier OK, 3 Shutdown
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: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: 1.0.9.2 is almost all changes in the Admin Side

Post by burt »

MyGamesShop wrote: Mon Apr 29, 2024 1:12 am Have a product 'status' as a drop down {editable reasons like order status allows user to define them} to allow more status like 'Obsolete' 'Do Not Reorder' 'Archived' etc. instead of just
in stock/out of stock, maintain existing core comparability by each of the new Status's being in-stock/out of stock.

This way there's more info about why an item is not in stock and an expanded admin search could be made ..later on.. baed on the status of items with some items status to determine if be left from searches both admin and client side. The use of this could be very helpful to plugin authors.
This is a similar question in my post above, replying to Fred.

Using the product_status like this...seems a mistake.
Just make a new flag (or multiple flags) and you have all you need to do what you want.
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: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: 1.0.9.2 is almost all changes in the Admin Side

Post by burt »

Xpajun wrote: Sun Apr 28, 2024 3:38 pm Put specials entry boxes in catalog page along with Products Price
What's wrong with this Addon:
app.php/addons/free_addon/set_specials_on_product_edit
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: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: 1.0.9.2 is almost all changes in the Admin Side

Post by burt »

MyGamesShop wrote: Sun Apr 28, 2024 1:03 am Remove input of 'Products Quantity' from Edit Product and New Product and make a product receiving module with input of Supplier, Cost, stock location, Invoice number and date.
What's stopping ya getting this made, then offering it back to Core.
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
bonbec
Contributor
Posts: 190
Joined: Mon Oct 26, 2020 12:23 pm
Phoenix Version: V1.1.0.7
Has thanked: 54 times
Been thanked: 40 times

Re: 1.0.9.2 is almost all changes in the Admin Side

Post by bonbec »

burt wrote: Mon Apr 29, 2024 1:09 pm I assume that you use the core product_status as 1 (in stock) and 0 (out of stock).
Then you have some other flag(s);
supplier_stock: 1 OK, 2 Shutdown, 3 Blah blah, 4 Whatever
Or
Have you got it all running through "product_status" ? 1 (in stock) 0 (oos), 2 supplier OK, 3 Shutdown
Yes I use the core product_status as 1 (in stock) and 0 (out of stock).
For the others flags, this is the same system : 1 (yes) and 0 (no)
Then in the code, different scenarios:

Product_status : 0 don't show the product
Product_status : 1 show the product

Product_status : 1 and Sale out of stock: 1 : I sale the product if out of stock (On-demand product manufacturing, for example)
Product_status : 1 and Sale out of stock: 0 : I don't sale the product if out of stock but the product is show (Out of stock product at home)

Product_status : 1 and Sale out of stock: 0 and Supplier Stock : 1 : The product is shown
Product_status : 1 and Sale out of stock: 0 and Supplier Stock : 0 : The product is not in stock at the supplier and i show a message to tell that this is the last items (It's to boost sales like an emergency situation if you need absolutely this product)
Old MS2.2 PHP7.4 site being converted to CE Phoenix v1.1.0.6 PHP 8.3
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: 1.0.9.2 is almost all changes in the Admin Side

Post by burt »

This is the correct way to do it :thumbsup:
Multiple flags allow you to do some very interesting things.

This can be achieved for some years with no core code changes, I think.
I am not here to build for you.
I am here to build with you. Let's help each other.
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Re: 1.0.9.2 is almost all changes in the Admin Side

Post by Xpajun »

burt wrote: Mon Apr 29, 2024 1:15 pm
Xpajun wrote: Sun Apr 28, 2024 3:38 pm Put specials entry boxes in catalog page along with Products Price
What's wrong with this Addon:
app.php/addons/free_addon/set_specials_on_product_edit
Not come across it - will be down loading it now and adding it
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18


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