Home Forums Academy BUY – button

BUY – button

  • Omid

    Hi Igor

    We would like to move the [BUY] button to different locations in the webpage. For example when there is a plan, it appears at the very end of the list of courses, but we want it to appear right after the price listed.

    I can put [Submit] buttons, but not the [Buy] one. Is there a special code I have to put?

    Thanks, Omid.

    ihor Staff

    Please sign in or register to view replies from the support staff.


    Thanks Ihor! Worked like magic! 🙂
    I actually wanted it in the content_plan to appear right after the price, so I moved the entire checkout
    <?php if(!ThemexWoo::isCheckout()) { ?>)
    right after the price:
    <div class="plan-price product-price">

    Does that work? Should I take out the footer? Although I do want it to stay grayed out and it looks great and seems to work!

    Here is what it looks now:

    <div class="widget aligncenter">
    <div class="widget-title">
    <h1 class="nomargin aligncenter"><?php the_title(); ?></h1>
    <div class="plan-preview">
    if(!empty($price)) {
    <div class="plan-price product-price">
    <?php echo $price; ?>
    <?php if(!ThemexWoo::isCheckout()) { ?>
    <footer class="plan-footer">
    <form action="<?php echo themex_url(true, ThemexCore::getURL('register')); ?>" method="POST">
    menu_order!=1) { ?>secondary<?php } ?>"><?php _e('Subscribe Now', 'academy'); ?>
    <input type="hidden" name="course_action" value="subscribe_user" />
    <input type="hidden" name="plan_id" value="<?php echo $post->ID; ?>" />
    <input type="hidden" name="user_redirect" value="<?php echo $post->ID; ?>" />
    <input type="hidden" name="nonce" class="nonce" value="<?php echo wp_create_nonce(THEMEX_PREFIX.'nonce'); ?>" />
    <input type="hidden" name="action" class="action" value="<?php echo THEMEX_PREFIX; ?>update_course" />
    <?php } ?>
    <div class="plan-description">
    <?php the_content(); ?>

    <?php } ?>

    ihor Staff

    Please sign in or register to view replies from the support staff.


    Great. Wasn’t sure, but seems to work fine. The ‘BUY’ button is now right after the PRICE. 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.