Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

2 Neutral

About SaranacLake

  • Rank
    Advanced Member

Profile Information

  • Gender
  • Location
    New York
  • Age

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Okay, glad my thinking was correct! Thanks for the feedback!
  2. What I was uncomfortable with was how I went from loading up the product catalog page, then having the user click on different links, changing the URL, but basically staying on the same page, and then loading different items based on what was selected. In explaining (and re-explaining) to all of you what I was doing I think I answered my own questions.
  3. @Zane, So it sounds like you think the use-case I described above is okay...
  4. Not gonna answer my questions, huh?
  5. I have been asking if the way I am going about this - from a use-case/process-flow standpoint makes sense. Never have I asked about the effort involved. Never have i asked how to do it all. I simply asked if the way I am going about this makes sense. (Maybe there is a different way you would load up different products based on some discriminating factor like "Category"? When you go to any e-commerce site and start shopping, what do you call that area of the website? I have been using the term "product catalog". Agree? I know how to query the database for every product i have and display them all on a single page. What I have been asking about is how to make it so a user can click on different "categories" in a side menu and see the related products in that category/group/whatever. I suppose you could call that "filtering". Right. So I'm trying to put pieces of knowledge together, and seeing if I am doing this in a logical way. So am I? 🙂 Step 1: Use lands on www.mystore.com Step 2. User navigates to the e-commerce store Step 3: User clicks on a "category" link in the left margin (e.g. <a href="www.mystore.com/music/">Music</a>) Step 4: Apache mod_rewrite translates that request to: www.mystore.com?category=music and reloads the web page - still showing the pretty: www.mystore.com/music/ Step 5: My script grabs the (syntax?) _GET['category'] = music or whatever Step 6: My script queries the database for all records where category = "music" Step 7: My script displays those products in the right pane Step 8: The user navigates that result set and hopefully clicks on some music to buy Step 9: A product details page loads with more details for the chosen item. Does that sound like a logical approach??? Like ten times so far... 😉
  6. Never having rolled my e-commerce site before, and having been away from PHP for several years, sometimes I'm not sure what I'm talking about?! 😐 Right now, I am trying to lay out (and ultimately code) a web page that looks like the link I pasted above - well not that fancy! To your question... Because this is a startup business and thus small, I just need a way to be able to sell a handful of items in a handful of categories. Like maybe 4-5 categories each containing a dozen or so products. Down the road, my website will need to grow and provide shopper a more sophisticated way to search for items, but for now I just need something simple like this... Category1: - Product1 - Product2 : -Product12 Category2: more products Category3: more products Category4: and so on... So I was thinking if I added a left column to my earlier gallery, and added say 4-5 hyperlinks wit category names, and when you click on a category link, it would reload the page and the url would change like this... originally: www.mystore.com user clicks on "Music" category in left margin: www.mystore.com/music/ then the user decides to check out movies and clicks on "Movies" and the page reloads with the updated url: www.mystore.com/movies/ How does that part sound? Then assuming that is okay, I guess in the right pane, I would have my PHP code query products based on what in in the url, so in the last example above it would go to my database and retrieve products that have a category of "Movie". How does that sound? And to your question, for now, I do *NOT* need any fancy filtering beyond category, so no: Music + Vinyl Records + Classic Rock + 1970s + Live Albums
  7. Well, with my free gallery I am just hardcoding the query, so not really. Now I need to set up a normal product catalog where you can choose between different categories or I suppose even just see the entire product selection. Something like this... https://www.amazon.com/s?i=popular&k=&ref=nb_sb_noss&url=search-alias%3Dpopular
  8. As I said, it builds off the earlier example. Before I was creating a gallery of thumbnails for a set number of products that I am giving away free with a subscription. Here I am trying to build the actual product catalog for my e-commerce site, i.e. *all* products. So I'm not entirely certain how an e-commerce product catalog should work.
  9. Hi. This question is building off of things you all helped me with earlier in my other two threads. (I go no sleep last night, so sorry if my thinking is a bit off!) Now that I know how to create a gallery page - as far as HTML goes - to display a listing of free add-on items you get when you subscribe, I need to extend those concepts to my next project. I need to create a product catalog page for my e-commerce site. (Not sure if there is a better name?) This is the page you would see if you went to an e-commerce site and started shopping. At the top of the page would be my company mast. And beneath that, on the left side of the screen would be a menu listing different areas of my online store. And to the right, would be the area where you see the actual products. (And I would be using the same techniques to display items on the right hand side as I did in my earlier gallery. So here is where I could use some hep with the logic of this page... Let's say my website is located at www.mystore.com And in the left menu bar, I have these categories: Music, TV Shows, Movies, Gear And in the right pane I want to display items for the chosen section. So if you chose "Music", I am thinking the hyperlink behind it might read; www.mystore.com/music/ with a mod_rewrite to www.mystore.com?category=music And then I would have PHP code that would fire when the page is reloaded to www.mystore.com?category=music and it would query MySL and display all music related products in the right pane. (Note: It is understood I am only using HTML and PHP with no Javascript.) How does the above approach sound?
  10. I am not using JavaScript on my site.
  11. I understand how to do mod_rewrites. I was simply trying to understand why ginerjm was saying one of my steps was unnecessary.
  12. I didn't write any code yet as to avoid hanging myself if I was going about this totally wrong! 🙂 Does the use-case i outline above sound like a reasonable approach?
  13. Sorry, but I still don't think I am understanding you... My user starts off on this page... www.mysite.com/store/product-gallery.php (Technically, I could chop off the ".php" to make it totally "pretty", but I'm not so concerned about that.) A gallery of thumbnails appears. The user clicks on one of those thumbnails - which represents a product - to learn more about the product. Here is where I'm not sure if we are following each other... I don't care about the format of the URL behind that thumbnail that the user clicked, HOWEVER, when the product details page laods for sku 4571, I want the user to see the following URL... www.mysite.com/store/products/4571 Clear? It's a one-way street in that you can't have an "ugly" URL and then load a page displaying a "pretty" URL. If you want a "pretty" URL to appear when the page loads, you need to have a "pretty" URL in the hyperlink behind the image. Right? So I'm not following you when you say I am taking an extra unnecessary step.... If I am wrong about something or am misunderstanding you, please correct me. But it seems like your suggestion wouldn't work like I need it to work. 🙂
  14. Didn't need to. My point is that there *IS* value in "pretty URLs" although a lot of techies disagree. Back back on track.... So does it sound like I am approaching things the correct way in my OP - besides differeing opinions on what URLs should look like?
  15. Most people would not find this URL to be intuitive... www.mystore.com/store/products.php?category=clothing&gender=mens&type=outerwear&season=winter-coats This, by contrast is more intuitive... www.mystore.com/store/products/clothing/mens/outerwear/winter-coats/
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.