• Resolved Derek Wilcox

    (@themassapothecary)


    First of all let me say thank you to all the developers as using Google pay and Apple pay at checkout was one of the things that I think this plug-in real you act so I’m very appreciative that you guys took the time to add the functionality to the plugin. It seems to work in general oh, I have Google so it doesn’t show me Apple pay as an option but when I use the Google pay as a quick by on a single product page if it’s a variable product it always defaults to the cheapest product to charge the customer for whether I select the most expensive or the middle one it doesn’t matter.. How can I fix this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author mattdallan

    (@mattdallan)

    Hi @themassapothecary,

    Thanks very much for opening this ticket and reporting this issue to us!
    I’m able to replicate this bug on my own test store and will work on a fix now.

    Thread Starter Derek Wilcox

    (@themassapothecary)

    @mattdallan no problem. Thank you for the prompt response.

    Thread Starter Derek Wilcox

    (@themassapothecary)

    @mattdallan by any chance can you add any features to make adjustable the alignment of buttons like Google Pay on product pages? And placement of where button goes for options?

    Plugin Author mattdallan

    (@mattdallan)

    Hi @themassapothecary,

    We’ve just released 2.3.1 which fixes this bug you found.
    Thanks for reporting it to us so quickly and sorry for any inconvenience it may have cuased!

    > add any features to make adjustable the alignment of buttons like Google Pay on product pages? And placement of where button goes for options?

    Can you share more details on what you mean by “alignment of the buttons” and “placement of where buttons goes for options”?

    The current placement of these buttons is in-line with our other gateways that add Apple Pay and Google Pay, that said there are some options available for customizing this.

    For alignment and CSS-related requests, you could change the style of the buttons by adding some custom CSS to #wc-square-digital-wallet (the button container) and #wc-square-google-pay (the GPay button).

    As for placement, if you don’t want the Google pay button on the cart or checkout page, you can remove them using the custom code explaine in our documentation: https://docs.woocommerce.com/document/woocommerce-square/#section-37

    If you’re looking to move the buttons on the page, there’s no easy way to do this at the moment. We currently render the buttons on action hooks like the following:

    
    add_action( 'woocommerce_after_add_to_cart_quantity', array( $this, 'render_button' ) );
    

    So technically with custom code, you could remove this action hook and attach the render_button function to another hook.

    Let me know if I’ve understood your request properly and also please confirm the issue you’ve reported is fixed in v2.3.1.

    Thanks again.

    kmmathis

    (@wereallthieves)

    @mattdallan I’m also trying to change the location of the digital wallet buttons. I’m familiar with using remove_action for unhooking functions and then using add_action to put them back in, however the render_button function is a method of the SV_WC_Payment_Gateway_Apple_Pay_Frontend class and I’m not sure how to remove it since I don’t have access to that class outside of the plugin.

    I attempted to follow a few of the proposed solutions here to no avail: https://wordpress.stackexchange.com/questions/36013/remove-action-or-remove-filter-with-external-classes

    Thanks!

    Hi @wereallthieves,

    The location changing of the digital wallet buttons is, as mentioned, not very easy ?? If the steps that @mattdallan provided are not working, it may be best to reach out to another developer and have them help with this. One set of developers is at the Facebook community:

    Advanced WooCommerce group on Facebook: https://www.facebook.com/groups/advanced.woocommerce/

    another is Codeable, at:
    https://woocommerce.com/customizations

    I hope this helps!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Google Pay problem on variable products’ is closed to new replies.