Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

customer can create their own aisle containing any number of products


breakbred101

Recommended Posts

So I'm wondering if anyone knows of an existing contribution that will allow a customer to create their own aisle. With over 20,000 products and over 100 categories on my store It would make my shoppers job alot easier if they can build there own aisle. I have yet to find a contribution of this sort, and was wondering if anyone is familiar with an existing contribution or an existing function or contribution that could be manipulated into such a specific contribution.

 

I imagine this would be as simple as duplicating/modifying the add to cart/buy now function and instead of it adding it to the customers exisiting cart it adds it to the customers aisle table. Problem is I can hack code but cant write code from scratch, I would be willing to pay for this contribution creation so long as it is released to the osc community contibutions section.

 

I'm not opposed to attempting to develop this myself, I'm just unsure of what existing contribution I should start to hack at, maybe a little guidance here alone would help.

Link to comment
Share on other sites

Thinking along the lines of simplicity and existing functions, probably the simplest way to acheive this would be to assign a new category, lets call it "My Aisle". The customer can click the "add to my aisle" button and utilizing the copy to case function existing in categories.php the products is added to the individual customers aisle. Let me know if I'm on the right track here please.

Link to comment
Share on other sites

I don't quite get what you are trying to do, can you elaborate...

 

It sounds like you have so many products, and buyers are interested only in some of them. So they can add the products of interest to a "category" that only they can see. Now when they come back to your shop next time and log in, they can see their listings of products and purchase (without having to navigate the usual shop).

 

Is that about right?

Link to comment
Share on other sites

I don't quite get what you are trying to do, can you elaborate...

 

It sounds like you have so many products, and buyers are interested only in some of them. So they can add the products of interest to a "category" that only they can see. Now when they come back to your shop next time and log in, they can see their listings of products and purchase (without having to navigate the usual shop).

 

Is that about right?

 

Correct. It doesnt even have to be a category per say as that may complicate the coding involved and be more work than necessary.

 

maybe going in the direction of favorites or past purchase??

 

I'll look into those now, thanks.

Link to comment
Share on other sites

The simplest option;

 

1. have an extra button on each product page "add this to my personal page". Button shows only when customer is logged in

2. link that button to a new action in /includes/application_top.php. That new action inserts the product ID and customer ID into a new customers_products table.

3. Make a new page (a bit like products_new.php) that is accessible only when logged in, and it lists all the products from the customers_products table, based on the logged in customer_id.

 

What's that? A total of 20 new lines of code, and a rehash of products_new.

Link to comment
Share on other sites

Proof of Concept:

 

 

Came in at about 35 lines of code. A bit more than my estimate of 20, but also had to deal with a button that removes products from the personal page.

 

Thats about as simple as i thought it would be. Unfortunateley I'm not much of a "From scratch coder". The route i was working on was simplifying & converting the wishlist contribution into just that. How do I get my hands on what you got mr. burton

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...