WordPress.org

Ready to get started?Download WordPress

Forums

YAK for WordPress
Element Postioning in Firefox - yak-view-confirm.php (3 posts)

  1. oldbrit
    Member
    Posted 1 year ago #

    This is dependent on the theme being used, but the fix is so simple, I'm hoping you might add it to the next release. I've tested it in Firefox, Chrome, IE, and Safari on Windows.

    I was having a problem with the confirmation table jumping over to the right in Firefox. After NUMEROUS attempts to fix it using CSS, I finally ended up hacking yak-view-confirm.php.

    I've seen this before and it has to do with the way the FORMS are handled.

    All I did is add:
    <br>
    After the opening FORM tag - Nothing else.

    Here's the surrounding code:

    <h3><?php _e('Confirm your order', 'yak'); ?></h3>
    <?php
    include 'yak-view-address-snippet.php';
    ?>
    <p>&nbsp;</p>
    <h3><?php _e('Order Detail', 'yak'); ?></h3>
    
    <form name="confirm2" method="post" action="<?php echo yak_get_permalink('stage=confirm') ?>">
    <strong><br></strong>
        <table class="yak_order">
            <tr>
                <th><?php _e('Item', 'yak'); ?></th>
                <th class="yak_numeric"><?php _e('Price', 'yak') ?></th>
                <th class="yak_numeric"><?php if (!$hide_quantity) { _e('Qty', 'yak'); } ?></th>
                <th class="yak_numeric"><?php _e('Subtotal', 'yak') ?></th>
            </tr>

    http://wordpress.org/extend/plugins/yak-for-wordpress/

  2. oldbrit
    Member
    Posted 1 year ago #

    I GOOFED in putting in the surrounding code. Here is again.

    As I said, the only change to the yak-view-confirm.php code is the addition of '
    ' after the opening ',form.':

    <h3><?php _e('Confirm your order', 'yak'); ?></h3>
    <?php
    include 'yak-view-address-snippet.php';
    ?>
    <p>&nbsp;</p>
    <h3><?php _e('Order Detail', 'yak'); ?></h3>
    
    <form name="confirm2" method="post" action="<?php echo yak_get_permalink('stage=confirm') ?>">
    
    <br>
    
        <table class="yak_order">
            <tr>
                <th><?php _e('Item', 'yak'); ?></th>
                <th class="yak_numeric"><?php _e('Price', 'yak') ?></th>
                <th class="yak_numeric"><?php if (!$hide_quantity) { _e('Qty', 'yak'); } ?></th>
                <th class="yak_numeric"><?php _e('Subtotal', 'yak') ?></th>
            </tr>
  3. nolongeractive
    Member
    Plugin Author

    Posted 1 year ago #

    Looks like you've got a <br> there which I don't have... so are you sure the blank line will fix the problem?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic