New Zenner
- Join Date:
- Sep 2005
- Posts:
- 38
- Plugin Contributions:
- 0
Adding New Product_types
Any clue on how to get the HTML editor up and running with a new product type?
Thanks
Views: 161,404
New Zenner
Any clue on how to get the HTML editor up and running with a new product type?
Thanks
New Zenner
I want to add a scheduling system to Zen Cart so that people can schedule appointments for services and pay for them. Where are the appropriate places to start adding the commands that would interact with the database on checkout, when payment has been received, etc.? Is this related to product types at all? The more I think about it, the more I'm thinking I probably just have to edit the pages involved in the checkout process, and add attributes to all of the products I want to be able to schedule to allow for user input on the dates and times they want, or something like that.
Any guidance would be appreciated.
Thanks,
New Zenner
:rolleyes: I have just written a new product type and would like to post it, but i dont know how? can you help. :rolleyes:
Obaa-san
A link for a demonstration? You can upload a .zip to your webspace or send the .zip to me at kim @ zen-cart.com
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.
New Zenner
Hi all you great thinkers!
I want to add a new prouct type called accessories, I do not want these products to show in my catalog, I only want to use this new product type in conjuction with the cross sell contribution, so that the only way a customer can purchase this item is as an add on. i.e. If they purchase a dress, they have an option of selecting matching hose.. 2-3 types...
Any suggestions on where to start to do this????
Thanks,
Figster
Zen Follower
Hmm, not sure how this would be done as a separate product and product type, but one way to do it (which might be easier overall) is just to use attributes on the original product (e.g., the dress). On the dress product page, have options for the hose (e.g., type1, type2, type3, or none). The appropriate price will be tacked on (you can configure this all in the admin), and it is a sure way to require purchase of the dress to get the hose. The only downside might be that the hose will not have their own inventory tracking or SKUs (they wouldn't appear as a separate item on the order, but just an option under the dress).
Totally Zenned
In my quest to learn the subject of adding new product types, I've created a duplicate of Product - General. Essentially I have copied and renamed the various files (for both admin & catalog). So all the files for my new product type are copies of those for Product - General with a unique name for respective directories, files, handler.
Everything seems to work fine except my 'Edit Layout' settings for the new product type. This is still being controlled by Product - General settings on the front-end catalog. I've spent quite a bit of time trying to track down the link to the product_type_layout table without success. Could someone point me in the right direction please?
New Zenner
Product type seams to mean a new layout of the product information. I.e. isolate it from the general layout. This is useful if you want: say big picture at the top of you product info page and also the attributes to show in a different style, etc.
I have already sorted all that and in a few days I will give a link to who is interested some options.
In the meantime I would like to known how to get a variable from the tpl_prducts_????????_info_display.php to the cart so I can get the variable onto the order form.
Thanks Peter
PS
Don’t forget you need to upload a SQL file to the database for your product type to work!
PPS
You need to upload all that is in the general products, if you want all the attributes content and bits.
New Zenner
Excuse me please
Get & Post please explain?
The PHP & HTML manuals give little or no explanation as if it is nothing, but it seems to be a big thing?
Please expand I am learning.
Regards
Peter
Zen Follower
I'm no expert, but here's the best explanation I have.
GET and POST are both methods of passing information from one page (usually a form) to another. They differ in how they do it.
GET does it by including the information in the URL itself. When you see URLS with "?" and "&" in them, those are usually GET variables being passed.
POST does it in a less visible way, by somehow including them in the actual HTTP request or something. They get sent "under the radar" and are invisible to the user (at least, they are not in the URL). Because of this, POST is usually preferred since it's a little more private/secure.
Totally Zenned
p1faw:
Product type seams to mean a new layout of the product information. I.e. isolate it from the general layout. This is useful if you want: say big picture at the top of you product info page and also the attributes to show in a different style, etc.
Peter,
Are you replying to my posted question? :huh:
I understand what Product Types are and do. At the moment, I just am having an issue figuring how they are relating back to the product_type_layout table. ;)
Totally Zenned
I've recently been working on product types. The product type layout table allows you to switch different things on and off and to some degree move things around differently depending on product_type being used.
For example you can have show the model number on product_general but turn it off in product_video and those settings are stored in the product type layout table. The key that relates this to your products is the product_type_id. There are other tables which tie the product_type_id to the categories and the products to the categories.
Connie
Connie Taylor
Totally Zenned
Thanks for the reply Connie. My problem is that I can't find where (or how) the query is being made for each product type, that determines which product type layout to use. (i.e which file or function is making the determination to use the layout for Product - General, Document - General, etc...) :blink:
Totally Zenned
Ok, to answer my own question...There is no link that utilizes product_type_id as I originally thought, and Connie also suggested.
My problem was in the tpl_product_[handler name]_info_display.php file that I created.
All the SHOW_PRODUCT_INFO_ ...'s needed to be changed to SHOW_PRODUCT_[handler name]INFO ...'s to properly relate to my separate set of table.product_type_layout values reside.
Problem solved.
New Zenner
huh?
Zen Follower
Greetings all:
I was wondering now that many of us have made our own Products, has anyone been able to update the search to include the new Product types.
For example i have a value called "Category" , in this category we have listing like anal, lesbians, etc...
Is there a way to update the Search so when i type in Lesbian it will search for the "keyword" in the value "Category" ?
Zen Follower
No reply in just under a week, so i will start a new topic, see if we can help that way...
New Zenner
Have just added a new product type based on document general and all OK. Does anyone know what the type_master_type in the db 'table product types' signifies? I've left it at 3 same as the document general but wonder if as I'm creating a new type totally whether I can make it unique.
Zen Follower
Xyon:
Have just added a new product type based on document general and all OK. Does anyone know what the type_master_type in the db 'table product types' signifies? I've left it at 3 same as the document general but wonder if as I'm creating a new type totally whether I can make it unique.
I found it alot easier to download the book model and converting it to what you want, some reason i didnt have much luck changing the standard Document and Product models.
New Zenner
Hi, is there any add-ons where we can customize a product catagory to default to a customized product type.
Thanks,
D
Tell staff why this post should be reviewed.