Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi,

    I wanted to Place the Paypal or GPay button below add to cart button, although you plugin provide many customization option but not this one.

    The plugin by default is designed to display the buttons below the add to cart button but if your theme has customized the order in which the actions are triggered that can affect the ordering.

    The actions are woocommerce_after_add_to_cart_button and woocommerce_before_add_to_cart_button. Their names describe the positioning.

    There should be an option to place it above/below the add to cart button according to our needs.

    Yes, that option already exists on the Edit Product page:

    Kind Regards
    Thread Starter skatesweb

    (@skatesweb)

    The actions are?woocommerce_after_add_to_cart_button?and?woocommerce_before_add_to_cart_button.?Their names describe the positioning.

    Since am not very familiar with PHP, please tell me what changes I have to make to these Hooks in order to force it show below the cart. From edit product page the option is set to below add to cart button but it still showing up above it.

    Plugin Author Payment Plugins

    (@mrclayton)

    From edit product page the option is set to below add to cart button but it still showing up above it.

    That’s because your theme is changing WooCommerce’s default ordering of those actions. Since I don’t know how your theme is constructed or coded, I can only provide guidance on what you can try.

    I recommend you go to your child theme’s directory and find the woocommerce/single-product/add-to-cart/simple.php file. In that file, you should see the woocommerce_after_add_to_cart_button action. Make sure it’s position is matching as closely as possible to the woocommerce/templates/single-product/add-to-cart/simple.phpsimple.php file located within WooCommerce.

    Kind Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Place Paypal or GPay button below add to cart button’ is closed to new replies.