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.
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.
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:
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.
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.
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.
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.
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.
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!!
Moderation
Destination thread ID and reason are required when shown.
Report Post
Tell staff why this post should be reviewed.
Manage cookie preferences
Our cookie policy has been updated, so we need you to review your preferences and consent again.