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

How to add Machform to Product Listing?

Started by dat311 on 7 Jun 2011, 10:46 PM · Views: 1,785

Results 1 to 10 of 10
7 Jun 2011, 10:46 PM
#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!!

8 Jun 2011, 10:40 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
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

8 Jun 2011, 12:13 PM
#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:

8 Jun 2011, 1:04 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
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.

8 Jun 2011, 3:07 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Jun 2011, 4:29 PM
#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!

8 Jun 2011, 4:59 PM
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
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.

8 Jun 2011, 5:22 PM
#8
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,890
Plugin Contributions:
20

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.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

8 Jun 2011, 7:39 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Jun 2011, 7:49 PM
#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!!