WordPress.org

Ready to get started?Download WordPress

Forums

Squelch Tabs and Accordions Shortcodes
[resolved] Tabs run together when buy now button is entered in tab content section (10 posts)

  1. mdesafey
    Member
    Posted 8 months ago #

    hello,

    we have a website in which we are using the squelch tabs. We are using 5 tabs and we would like to include a buy now button in the content section of each tab.

    As soon as the code is entered for the buy now buttons:
    code example below:
    Tab1:
    ...Senior Executives who purchase the Senior Executive Deluxe Resume Package get all of this for just $329.00.
    [wp_cart:Senior Executive Deluxe Resume Package:price:329.00:end][/tab]

    [tab title="Resume Only"]Senior Executive Resume ......We offer our Senior Executive Resume to professionals at the low cost of $299.00[wp_cart:Senior Executive Resume Package:price:229.00:end][/tab]

    The two tabs run together and become one once both sections buy now buttons are placed.

    Can you tell me if their is a workaround for this or how to correct?

    Thanks

    http://wordpress.org/plugins/squelch-tabs-and-accordions-shortcodes/

  2. mdesafey
    Member
    Posted 8 months ago #

  3. Matt Lowe
    Member
    Plugin Author

    Posted 8 months ago #

    Hmm... Hi mdesafey,

    Have you tried breaking the [wp_cart] tag away from the [/tab] tag? Like:

    ...Senior Executives who purchase the Senior Executive Deluxe Resume Package get all of this for just $329.00.
    [wp_cart:Senior Executive Deluxe Resume Package:price:329.00:end]
    [/tab]
    [tab title="Resume Only"]Senior Executive Resume ......We offer our Senior Executive Resume to professionals at the low cost of $299.00[wp_cart:Senior Executive Resume Package:price:229.00:end]
    [/tab]

    I'm not 100% sure why the two tabs would run together but it certainly looks like a bug somewhere, the only question is whether the bug is in my code or Simple PayPal Shopping Cart plugin's code. It's silly o'clock here and I should really be getting some sleep so I'd appreciate it if you could give that a try and let me know if it helps. If it doesn't I'll have to investigate further, but I'm going on holiday tomorrow for a week so it probably won't be until after then that I will get chance to look at it.

  4. mdesafey
    Member
    Posted 8 months ago #

    Hi,

    I just tried breaking away the wp-cart tag from the rest of the content and it still seems to do the same thing.

    Please see example on sample page: http://www.webuildresumes.com/resume-writing/senior-executive-resume-writing-packages/

    If it is possible for you to take a quick look at it, it would be greatly appreciated, as we are trying to finalize this.

    Thanks.

  5. Matt Lowe
    Member
    Plugin Author

    Posted 8 months ago #

    OK, I'll take a look in the morning and see what I can do. Really need sleep right now or I'll be no use to anybody.

    In the meantime I'd appreciate it if you could post the full code you're using to generate the tabs so I can test it on my dev platform. If you don't feel comfortable posting it publicly then feel free to email it to me (hi@squelch.it).

  6. mdesafey
    Member
    Posted 8 months ago #

    Great.

    Thanks for all your help. I will send you the code now to hi@squelch.it

    Thanks

  7. Matt Lowe
    Member
    Plugin Author

    Posted 8 months ago #

    Hi mdesafey ... still not made it to bed yet!

    I had a quick look at the code you sent and then another closer look at the page. The issue is that the add to cart button is not closing its tags correctly, which then breaks the markup of the tab widget (which appears to be being generated correctly).

    For example in the page markup I'm seeing:

    <input type="hidden" name="price" value="349.00<BR></div>

    The <input /> tag does not get closed, not even the double quotes on the value. I will investigate further as to what is causing this, as I cannot rule out the possibility that Squelch Tabs & Accordions is to blame here, so I'll take a proper look in the morning and get back to you when I know more.

  8. mdesafey
    Member
    Posted 8 months ago #

    Great...Thanks Matt.

  9. Matt Lowe
    Member
    Plugin Author

    Posted 8 months ago #

    Hi mdesafey, there was indeed a bug in Squelch Tabs & Accordions. Thanks for letting me know. I've got a fix in place and ready to go into the next release. Would you be able to test this for me? You can download the latest development version from http://downloads.wordpress.org/plugin/squelch-tabs-and-accordions-shortcodes.zip

    Be sure to remove your existing copy first and then upload the new version. I think that should solve your issue. If all is well I'll roll the new version out for automatic updates after I get back off my holiday next week.

  10. mdesafey
    Member
    Posted 8 months ago #

    Matt,

    The Update works great. Thanks for all your help.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.