WordPress.org

Forums

add a post_title automatic to a contact form with a button (1 post)

  1. PDijkgraaf
    Member
    Posted 4 years ago #

    I am working on a website for a Backer.
    He want a function for visitors to order online.
    The order does not have to be paid online but send with an email to his mail address.

    what i thought of so far is:
    i will add every product of his store to a post. the name of the product in the title and the price in the content.
    Then i run a function to display all the posts in a list.
    something like this:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <ul><li><?php the_title();?> <?php the_content();?> </ul></li>
    <?php endwhile; else: ?> 	<?php endif; ?>

    Is there a way to add a button to every post (in the list) and when you click it it will automatically be added to a contact form at the bottom of the page.
    the customer does not have to pay at the website because the order will be delivered to the customer and then they have to pay.

    I really appreciate all the help!

Topic Closed

This topic has been closed to new replies.

About this Topic