Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2011
    Posts
    65
    Plugin Contributions
    0

    Default 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!!

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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

  3. #3
    Join Date
    Jun 2011
    Posts
    65
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default 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.

  6. #6
    Join Date
    Jun 2011
    Posts
    65
    Plugin Contributions
    0

    Default 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!

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,690
    Plugin Contributions
    11

    Default 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.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default 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.

  10. #10
    Join Date
    Jun 2011
    Posts
    65
    Plugin Contributions
    0

    Default 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!!

 

 

Similar Threads

  1. v139d How to add two add to cart buttons on one product listing. See example below..
    By completespray in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Jun 2014, 12:37 AM
  2. v139h How to add Numinix Product Fields (MSRP) to Product Listing Pages
    By Angeltown in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 7 Nov 2013, 11:00 PM
  3. how to add freeshipping listing as new product listing and special listing
    By zeme_09g in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 15 Apr 2010, 10:35 AM
  4. Replies: 2
    Last Post: 9 Jan 2009, 12:33 PM
  5. how to put a add to cart button on every product in product listing page??
    By lastpirate007 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 11 Sep 2007, 05:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg