WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Multiple external links (2 posts)

  1. carletto0282
    Member
    Posted 1 year ago #

    Hi guys,
    your plugin is simply impressive!

    I just need one info I can't find by myself.

    I trying to setup an ecommerce site to sell some ebooks.
    I don't wanna sell my product by myself but from external suppliers (like itunes, amazon, googleplay...)

    I love the setup of external product right in the product setup of woocommerce but I not able to find a way to add several external link to a single product.

    Is there a way to do this?
    Maybe you know an add-on/plugin that could help?

    Any suggestion would be appreciated!
    Thanks again!

    Best regards
    Carloalberto Fornea

    http://wordpress.org/extend/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 1 year ago #

    The way I would do this is create custom meta box for the products. One for each external link you want. The meta fields could just be an input field where you enter the external URL of the supplier.

    Then in your frontend just hook into the area where you want these buttons to display and go from there.

    Here is a reference on how to create the meta boxes
    http://codex.wordpress.org/Function_Reference/add_meta_box

    And the hooks you're looking for assuming you want these buttons to show on the single product's page is:

    'woocommerce_before_add_to_cart_button'
    'woocommerce_after_add_to_cart_button'

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic