• Resolved eeprom_one

    (@eeprom_one)


    Hi Richie KS!, congrats for your code program and work

    can you help me to put an “add to cart” button in category view?

    In my theme i already check the “woo integration in theme” and its so pretty.

    Can you tell me some Customm Css code to help my question?

    sorry for my english and best year from southern spain.

    my blog-shop: https://www.atundetarifa.es

    thanks a lot in adventage

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Richie KS

    (@rkcorp)

    try add this to child theme functions.php or wp-content/meso-custom-functions.php if had one.

    <?php
    add_action('woocommerce_inside_product_right','meso_add_post_buy_now',20);
    function meso_add_post_buy_now() {
    global $post;
    $add_to_cart = do_shortcode('[add_to_cart_url id="'.$post->ID.'"]');
    echo '<a class="buybutton" title="Add this product to cart" href="'.$add_to_cart.'">' . __('Add to Cart','mesocolumn') . '</a>';
    }
    ?>
    Thread Starter eeprom_one

    (@eeprom_one)

    hi, thank you for your fast response.

    The code send:

    Parse error: syntax error, unexpected ‘<‘ in /homepages/34/d587279792/htdocs/ATUN/wp-content/themes/mesocolumn/functions.php on line 95

    i put the code in my functions.php

    thank you for your support Richie ??

    Theme Author Richie KS

    (@rkcorp)

    make sure you did not include the above <?php and ?> if added to already exsit functions.php

    Thread Starter eeprom_one

    (@eeprom_one)

    oh sorry… its OK!

    tank you very much Richie… cheers and kisses from Spain

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to put "add to cart" button in category view’ is closed to new replies.