Topic: Customized Products

I've seen two older posts with no replies on this, so here it goes. Is it possible to have customized notes with each product that is ordered? I'll use the example someone else put , of having t-shirts with colors/text that the user can put in, and once its added to cart the notes go with it. Is this doable with phpshop? Thanks

Daniel

Re: Customized Products

Not sure what you mean by "notes", however, product attributes ( though rudimentary ) are part of the default  phpShop installation.

There are two types of products. A product and a product item.

Attributes such as color, size, etc.. are defined as a product attribute and stored as an additional product in the database along with all your other products.

The downside to this method is that for every color, size etc... attribute there will be a product that corresponds.

Parent Product T-Shirt
-- Child Product: T-Shirt, color red, size s
-- Child Product: T-Shirt, color red, size m
-- Child Product: T-Shirt, color red, size l

The above illustrates how attributes are handled.

To have one product available in one color but three sizes, you end up with 4 products in the database. Only one of which ( the parent product ) is displayed in your storefront.

The attributes for which are displayed in a select box. Regardless how many attributes you have, you will always have only a single select box with all the various child products listed as options.

Hope that clarifies how product attributes are handled.

Re: Customized Products

I saw that you could attach attributes, but what I want goes a bit further. ie

T-Shirt (which can be red/green/blue), AND have customized text that will be printed on it, that the user types in.
I dont want to get this done at checkout because Id like to have a preview done of the item before hand, but I didnt see an easy way to attach things like text that a user inputs to be added with the item at the time they add the item to the cart.

The options and attributes wouldnt quite work, because I cant have all the possible letter combinations as items in the database smile

I hope that clarifies what my question is. Thanks

Re: Customized Products

That makes more sense. smile

The default installation of phpShop has no optional fields for additional information. However, its really not all that difficult to add an additional field.

In a nutshell:

1. Using phpMyAdmin create a new field in the product table for storing your information
2. Modify the add / update routines in ps_product.inc to accept the additional field
3. Modify product_form.ihtml to display the additional field in an input element
4. Modify shop/flypage to display the addtional input element
5. Modify order/order_print to include the additonal field
6. Modify the email_reciept method in ps_checkout.inc to send the additional field

I don't think I forgot anything. But that should be enough to get you started.

Re: Customized Products

I can certainly try this. I've been looking at zencart, but its way more complex , and I dont see an easy way of simply using the cart and checkout functions like I can with phpshop, given that I wont be using any of the "store" functions (like browsing, searching selecting) for the products. I will play with it and see what I can do to get this working. Thanks for the input.

Re: Customized Products

After looking at how the structure of phpshop is setup, is it possible to pass arguments to fill the extra product items in the database? basket.ihtml and order are the ones that I also have to modify. flypage and product_info.ihtml aren't necessary for what I am looking to do (which is just to use the cart/order portion) - I am beginning to wonder though, would it be easier to just use a cart application? My php skills are rusty, and my sql is non -existant.  Thanks

Re: Customized Products

I realize now exactly what you are trying to accomplish.

Basically, what you are needing to do is allow the customer to dynamically create a product on the fly and have it stored as an attribute of a parent product. Hmm, tricky.

I am sure it could be accomplished, however, giving the customer that level of control ( either direct or indirect ) of your product table is not a good idea.

Looking at this from a different angle, I don't see why you couldn't simply add an additional text input to the checkout process that allows the customer to attach a note to their order. This could be stored with the order in the orders table.

Its not the most elegeant solution but it would provide a means to end.

Re: Customized Products

I think there was a mod for this a while back. The trick is to find a keyword to search for it. I'll see if I can find it.

If I recall, it doesn't really create a new attribute on the fly but it adds a text entry into a table keyed (I think) by session and product.

That which is, is; that which is not, is not; that which is, is not that which is not; that which is not, is not that which is.

Re: Customized Products

That would be ideal, since having the user type in their options to customize and preview, and have them to re-add it later isnt really a good option. I will search the forums to see if I can locate it,thanks.