• Resolved masta76

    (@masta76)


    I am about to buy marketpress e-commerce plugin, as I am looking to replace the buggy wp e-commerce plugin on some of my sites.

    Before buying marketpress e-commerce I downloaded the free trial to see if it was what I was looking for.

    My question is as follows:
    – On a web site that sells only one product I have a button on the front page, saying “add to chart”.
    – Once the customer pushes that button the product is added, and the customer is redirected to the chart.
    – There he checks his order, fills in his contact details, chooses payment gateway, pushes “buy now” and the order is sent.

    On my test site (http://kompensera.se/test/) I have tried to adding the shortcode [mp_buy_button product_id=”496″] (496 being the id of my product), but it only displays the shortcode “[mp_buy_button product_id=”496”] “, i.e. no button.

    thanks in advance

    http://wordpress.org/plugins/wordpress-ecommerce/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi there masta76,

    Thanks for posting this here. I believe you’re adding that shortcode in the midst of another shortcode (a column shortcode I’m guessing by the ‘one_third last’ class).

    And I think the reason it’s not rendering properly is related to that. Could you try, for the moment, including the shortcode in a bare page or post, without being included in another shortcode?

    It would help to see how that renders first off. 🙂

    Thanks,
    David

    Thread Starter masta76

    (@masta76)

    Hi David, and thanks a lot for your reply.

    I have now deactivated all plugins, so the only plugin running is “MarketPress Lite”, version 2.5.1, and my wordpress installation is 3.6

    I tested to put the code on a blank page, but still got the same results; here is the page: http://kompensera.se/test/testpage/ – the only content is the text [mp_buy_button product_id=”496″]

    the product I am trying to “buy” is this one: http://kompensera.se/test/tienda/productos/ferula-de-descarga/ ,which has post number “post=496”.

    any more ideas? Do you think an upgrade to wordpress 3.7.1 could do the trick?

    thanks again, regards
    /Marek

    Thanks for that further info, I don’t think the WP version would affect the shortcode display. That would be worth checking later if needed.

    Could I get you to try the following in that same page?
    [mp_list_products]

    Also, do you have any other plugins utilizing shortcodes on your site? Do they display properly if so?

    If not, could you maybe try a simple one like the Extra Shortcodes plugin?
    http://wordpress.org/plugins/extra-shortcodes/

    Thanks for your patience! 🙂

    Thread Starter masta76

    (@masta76)

    Thanks for the attention David!

    Yes, when adding [mp_list_products] it displays the product like it should.

    I have now installed the Extra Shortcodes plugin and tested the shortcode [bloginfo show=”name”] and it works well.

    I think the theme I am using (Hero 1.0.2) has shortcodes, like the column shortcode you mentioned.

    I also had wp e-commerce installed before (the plugin I am looking to replace) and it used shortcodes that worked fine.

    I have now also updated to WordPress 3.7.1 (Spanish version).

    In fact, I now also tested to switch themes to Twenty Thirteen, to eliminate the possibility of a theme conflict.

    However, as you can see (http://kompensera.se/test/testpage/), the problem persists…

    running out of ideas… do you have any left?

    thanks again
    /Marek

    Jack K

    (@jack-kitterhing)

    Hi there Marek,

    Hope your well today and thanks for the additional information.

    I’ve taken a look at this and it should be working from what I can see, when your adding the shortcode are you adding it via the visual editor or the text editor?

    Could you try using the text editor please? If that still doesn’t work, could you send me some WP admin login details please to contact(at)wpmudev.org with the subject line Attn: Jack Kitterhing

    Thank you!

    Kind Regards
    Jack.

    Thread Starter masta76

    (@masta76)

    Hi Jack and thanks for your help.

    I am using the text editor, not the visual.

    I just sent you the admin details by mail. It’s a test site, so feel free to do whatever you want 🙂

    I also installed another plugin: WP native dashboard, so that you can chose to see the admin area in English.

    thanks in advance for your help!

    /Marek

    Hi again masta76,

    Sorry that I didn’t catch this sooner but this being the Lite version of MarketPress, it doesn’t include the shortcode option for the buy button.

    Given the confusion surrounding the matter, I’ve thrown together a quick shortcode for you to use for that though, as follows:

    // [mp_custom_buy_button product_id="foo-value"]
    function mp_buy_button_shortcode( $atts ) {
    	extract( shortcode_atts( array(
    		'product_id' => NULL
    	), $atts ) );
    	return mp_buy_button(false, $context, $product_id);
    }
    add_shortcode( 'mp_custom_buy_button', 'mp_buy_button_shortcode' );

    I changed the name of the shortcode to [mp_custom_buy_button] in order so that it wouldn’t conflict with the official one.

    And potentially you could include that snippet in your site with the following:
    http://wordpress.org/plugins/code-snippets/

    Or you could paste it into you theme’s functions.php file. It’s up to you.

    Could you let us know how that will work for you?

    Thanks,
    David

    Thread Starter masta76

    (@masta76)

    Hi David.

    Thanks for the help.

    I’ll just go ahead and buy the paid version; I need more payment gateways anyways.

    A suggestion that will avoid much frustration, support mails and lost potential customers in the future: either enable all shortcodes for the free version so that people can try it out, get hooked and then buy, OR, write out all shortcodes, but with a “PRO ONLY”-text in the free version (just like in the “Payments” tab) – that way people will know that they will get the functionality once they pay.

    In any case, thanks for really great support 🙂

    /Marek

    Hi again Marek,

    Point taken, we’ll be looking into that. And glad to hear you’ll be getting the Pro version, it’s quite a beast! 🙂

    Cheers,
    David

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘mp_buy_button shortcodes not working’ is closed to new replies.