WordPress.org

Forums

Simple Cart & Buy Now
Final Checkout items on checkout page is very strange. Not right at all. (6 posts)

  1. aztecinternet
    Member
    Posted 1 year ago #

    Hi there Bluey80,
    I'm having a very strange issue on the final checkout page on our site. If you add several different items to your cart the sidebar shows them beautifully and you can update the quantities easily. Very nice. However once you go through to the final checkout page the items are laying out in one row not multiple rows like they are supposed to and only one quantity box appears there for the first item only. Very weird indeed.

    The site URL is http://www.bjc2014.co.uk/tickets/. Try adding few items to the cart and then go through to the checkout and you'll see what I mean.

    Any ideas what is going wrong and how I can fix it please?

    Cheers and keep up the great work.

    Paul

    https://wordpress.org/plugins/simple-cart-buy-now/

  2. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    The html looks right -- the checkout page is just a html table:

    <table>
    <tbody>
      <tr>
        ..headers
      </tr>
      <tr>Item one info</tr>
      <tr>Item 2 info</tr>
      ...
    </tbody>
    </table>

    And your site looks like it has that too. I think you've got some css in maybe your theme that is making the rows very close to each other or otherwise collapsing them. You can look at http://iguanaworks.net/ for a reference of SCABN generating the checkout page correctly. I think you'll see that the html is basically the same, which I why I think it is a css issue.

  3. aztecinternet
    Member
    Posted 1 year ago #

    Hi Bluey,

    Thanks for getting back o me quickly.
    I've managed to figure out what is wrong with the table. For some reason the anchors have either a single quote at one end and a double quote at the other end of their href parameters e.g.

    <td align='right'>£ 15.00<br /><a href="/bjc-checkout/?remove=womens-t-shirt-purple-sml&randomid=277617560' class ='remove_item' name = 'womens-t-shirt-purple-sml'>Remove</a></td>
    </tr>
    <tr class = 'ck_content'>
    <td><input type='hidden' name='item_1' value='womens-t-shirt-black-sml' /><input type='text' name='qty_1' size='2' value='1' class = 'qty_womens-t-shirt-black-sml' title='womens-t-shirt-black-sml' /></td>
    <td><a href='http://www.bjc2014.co.uk/?page_id=1574" ><strong>Womens T-Shirt Black</strong><br />Sml</a></td>

    As It looks kind of random and I am not sure where in the plugins code the checkout page is generated I'm not sure how to sort this one out but it looks like a minor bug in your plugin. Maybe a typo :-)

  4. aztecinternet
    Member
    Posted 1 year ago #

    Actually I guess you would prefer to see both cart item rows for comparison.

    <tr class = 'ck_content'>
    <td><input type='hidden' name='item_0' value='womens-t-shirt-purple-sml' /><input type='text' name='qty_0' size='2' value='1' class = 'qty_womens-t-shirt-purple-sml' title='womens-t-shirt-purple-sml' /></td>
    <td><a href="http://www.bjc2014.co.uk/?page_id=1574" ><strong>Womens T-Shirt Purple</strong><br />Sml</a></td>
    <td align='right'>£ 15.00<br /><a href="/bjc-checkout/?remove=womens-t-shirt-purple-sml&randomid=277617560' class ='remove_item' name = 'womens-t-shirt-purple-sml'>Remove</a></td>
    </tr>
    <tr class = 'ck_content'>
    <td><input type='hidden' name='item_1' value='womens-t-shirt-black-sml' /><input type='text' name='qty_1' size='2' value='1' class = 'qty_womens-t-shirt-black-sml' title='womens-t-shirt-black-sml' /></td>
    <td><a href='http://www.bjc2014.co.uk/?page_id=1574" ><strong>Womens T-Shirt Black</strong><br />Sml</a></td>
    <td align='right'>£ 15.00<br /><a href='/bjc-checkout/?remove=womens-t-shirt-black-sml&randomid=277617560' class ='remove_item' name = 'womens-t-shirt-black-sml'>Remove</a></td>
    </tr>

    Cheers

    Paul

  5. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    I don't understand why you are seeing what you are seeing. I'm pretty sure the relevant line of code is:

    $output .= "<td><a href='". $item['url']."'><strong>".$item['name']."</strong><br />";

    in classes/display.php

    But that code should quote the url in href= in double quotes (").

    Also, it is the same code to generate the table for the sidebar widget as on the checkout page. The only difference is if/else line to control the id of the containing div. So if it were a bug in that code, I'd expect the same problem in the sidebar widget.

    My only guess is that your theme or maybe a different plugin is filtering the output the SCABN for some reason and it is causing problems. Can you try using a default 2013 or 2014 theme and seeing if that makes a difference?

  6. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    Not sure if it will help, but try 2.1.2 version of SCABN (just released). I tweaked a few lines of code to hopefully bypass some filtering by theme's that might be causing the problems.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Cart & Buy Now
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic