[Support request] I want to change the link of a Woocommerce button

Home Forums Support [Support request] I want to change the link of a Woocommerce button

Home Forums Support I want to change the link of a Woocommerce button

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #559554
    Nick

    Hi – I was wondering if you could do me a favor and look at my shop page for a minute. The “add to cart” button under the Trump movie obviously adds the item to the cart, but I want to change it. If a person clicks that “add to cart” button I want to send them to the product description page, the same way that clicking on the picture does. Can we do that?

    #559616
    Leo
    Staff
    Customer Support

    Hi there,

    I believe you would have to use a WooCommerce filter like this one:
    https://generatepress.com/forums/topic/woocommerce-cart-in-primary-menu-how-to-change-url-from-cart-to-checkout/#post-559278

    You’d have to check with their support to see how you can link it to the product description ๐Ÿ™‚

    Let me know if this helps.

    #559622
    Nick

    Leo, that looks pretty similar to what I’m trying to do, only I’m trying to set the link to the description page instead of the checkout page. I spoke with Woo and they said they don’t give out code for their plugin, so I was hoping you could help me. Can you at least tell me if I would need CSS or PHP to achieve this goal? Thanks, Leo!

    #559709
    Leo
    Staff
    Customer Support

    Sorry WooCommerce said they don’t give out code for their own plugin?

    That sounds a bit strange haha

    It will definitely be PHP. I would recommend asking on this site: https://stackoverflow.com/

    #560136
    Nick

    Leo, Woocommerce doesn’t have very good service. Anyway, I noticed Tom gave that other guy some PHP code for his problem. Is there any way that you or Tom could do the same for me? I have Code Snippets installed, so I could just throw the code in there and be done. No problem if you can’t done it, I just thought I’d ask. Thanks for everything…

    #560225
    Tom
    Lead Developer
    Lead Developer
    #560278
    Nick

    Thanks for the link, Tom. I appreciate it.

    #560299
    Nick

    Actually, Tom, the code on that website doesn’t work. It gives me an error code when I ut it in Code Snippets. Perhaps it’s outdated, or something. Anyway, I’m still stuck…

    #560608
    Tom
    Lead Developer
    Lead Developer

    Actually, perhaps this will work better: https://stackoverflow.com/a/36309400

    #561092
    Nick

    Thanks, Tom. I really appreciate it…

    #561093
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.