Forums / Setting Up Categories, Products, Attributes / How to add Machform to Product Listing?

How to add Machform to Product Listing?

Results 1 to 10 of 10
07 Jun 2011, 22:46
#1
dat311 avatar

dat311

New Zenner

Join Date:
Jun 2011
Posts:
65
Plugin Contributions:
0

How to add Machform to Product Listing?

Hi!

I created a Machform that I would like to show up in my product listing page so that the customer can fill it out before adding the item to their cart.

I have the HTML Code supplied by the Machform but where do I insert so that it shows up on my product page? I inserted it in the description but it just shows the text.

Thanks so much for your help!!
08 Jun 2011, 10:40
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Posts:
19,793
Plugin Contributions:
2

Re: How to add Machform to Product Listing?

If I understand the question, Zencart strips HTML from the product listing. You should be able to search the forums for zen_clean_html for instructions on how to remove that restriction.

Here's an start in post #4:

http://www.zen-cart.com/forum/showthread.php?t=156996
08 Jun 2011, 12:13
#3
dat311 avatar

dat311

New Zenner

Join Date:
Jun 2011
Posts:
65
Plugin Contributions:
0

Re: How to add Machform to Product Listing?

Thanks so much. You are correct that Zencart strips HTML from the product listing - that is my problem. I just read the post you referred me to and unfortunately, I don't understand it all. I will continue to research this or come up with a different place to add my machform.

Thanks for your help - you've got me going in the right direction :smile:
08 Jun 2011, 13:04
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Posts:
19,793
Plugin Contributions:
2

Re: How to add Machform to Product Listing?

Post #4 is pretty simple:

First thing you need to do is open includes/modules/product_listing.php and find the three places that zen_clean_html occurs and comment them out: /*zen_clean_html*/.

Just open that file in your text editor and place the comment code (/* and */) in front of and after each instance of zen_clean_html, as above.

Then save the file to includes/modules/YOUR_TEMPLATE_NAME.
08 Jun 2011, 15:07
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: How to add Machform to Product Listing?

What exact purpose is your machform serving? And why aren't you using product attributes to collect the information so that it is saved WITH the product when the order is placed? Machform isn't gonna associate the collected data with your store transaction at all, so is just going to create more work for you.
08 Jun 2011, 16:29
#6
dat311 avatar

dat311

New Zenner

Join Date:
Jun 2011
Posts:
65
Plugin Contributions:
0

Re: How to add Machform to Product Listing?

Thank you, Stevesh! I can do that.

DrByte, I sell personalized products. I need the client to let me know the personalization they would like for the item they are purchasing. Can that be achieved using attributes??

I will try what Stevesh suggested and will report back.

Thanks!
08 Jun 2011, 16:59
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Posts:
19,793
Plugin Contributions:
2

Re: How to add Machform to Product Listing?

One of the attribute options is 'text input' which should do what you want to do without messing with the code.
08 Jun 2011, 17:22
#8
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Posts:
9,707
Plugin Contributions:
6

Re: How to add Machform to Product Listing?

Tutorials can help - https://www.zen-cart.com/tutorials/index.php?article=57

Also, consider adding an option value of "Please Select" to each that is required and for display only. That will force the customer to actually make a choice. Text fields can be set to required as well.
08 Jun 2011, 19:39
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: How to add Machform to Product Listing?

Yes, using the built-in attribute support will accomplish what you're after ... in fact it is MUCH more effective and efficient, and a better customer experience.
And way simpler to implement, not to mention will also be far more compatible with future upgrades without having to do PHP coding to do it.
08 Jun 2011, 19:49
#10
dat311 avatar

dat311

New Zenner

Join Date:
Jun 2011
Posts:
65
Plugin Contributions:
0

Re: How to add Machform to Product Listing?

Adding the text fields as attributes worked beautifully!!!! Thank you SO very much for advising that - I like it much better than adding the Machform. Perfect, thanks a million!!