WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Edit code in woocommerce_single_product_summary (2 posts)

  1. morestar
    Member
    Posted 7 months ago #

    So I see in wp-content/plugins/woocommerce/templates/content-single-product.php the following line:

    do_action( 'woocommerce_single_product_summary' );

    This action seems to display the add to cart button, option drop downs and prices.

    Can someone tell me which file I can edit so as to edit the HTML in that area?

    Thank you,

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

  2. morestar
    Member
    Posted 7 months ago #

    Thus far, I've found the file which seems to render the add to cart button and the Sale and Regular price as well, here in;

    wp-content/plugins/woocommerce/templates/single-product/add-to-cart/variable.php

    BUT, the only line that seems to, in that file, render the add to cart button and sale/regular price, is this line:

    $terms = get_terms( $name, $args );

    I commented that out to test and it did remove it, but my question now is, where is the code coming from that renders the add to cart/etc information?

Reply

You must log in to post.

About this Plugin

About this Topic