Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Design Category For Shopping System

Featured Replies

hi ,

I'm New on php , I want design a online sale for laptop , accessories and gaming console ok ?

each of parent categories has a child for example :

laptop

>dell

>sony

>etc .

and i also design the database nicely . you can see ERD herehttp://zarrinweb.com/htgroup/HT-group.png

1 - Let Me Know if my database design is normal and ok ? if not what's the problem .

2 - after define the category and also subcategory

2-1 : How can i determine it's Parent Category or child ?

2-2 : How Can I show that to user ? and after click on each parent categories Then Show childs . (like OSC )

 

Tanks For Helping .

your database design is not good.

 

if you want to have a parent->child relationship with the categories, you need to add a "ParentID" field, which contains the CatID of it's parent, or 0 for a top-level category.

  • Author

ok , i have fix the database by adding one row to category table (parent_cat_id).

now , i must show to admin a form to fill category table but how can i understand the admin add a category or subcategory ? and after that how can i retrieve this information from database and show the user as a category ?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.