WordPress.org

Ready to get started?Download WordPress

Forums

YAK for WordPress
Add Product into the shopping cart from (2 posts)

  1. Xpto
    Member
    Posted 1 year ago #

    Hi,

    I would like to know if it's possible to add product from a price box page? For like this sample:
    http://dreamthemedesign.com/themes/u-design/features/convenient-code-snippets/price-boxes/.

    The idea is to click in o "buy" button, add to shopping cart and redirect into check-out page.This is possible?

    I added these lines of code:
    [yak_buy_begin]

    <input type="hidden" name="category" value="11"/>
    <input type="hidden" id="buynow" name="buynow" value="247"/>
    <input type="hidden" id="buynow_param" name="buynow_param" value="p"/>
    <input type="hidden" id="p" name="p" value="247"/>
    <button id="addbutton" name="addbutton" style="display:none;" class="yak_button" type="submit">xxx</button>
    [yak_buy_end]

    <script>
    function comprar(prodid)
    {
    debugger
    jQuery('#buynow').val(prodid);
    jQuery('#p').val(prodid);
    return validateBuy(jQuery('#addbutton'), 0,0, 0, 1, true, 'http://info.balcaoexpress.pt')
    }
    </script>

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

  2. nolongeractive
    Member
    Plugin Author

    Posted 1 year ago #

    You can include buy buttons for different products on a single page using:

    [yak_buy id="247"]

    And you can control redirecting to the checkout in the basic options.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.