How can i remove the cart button on every page?

This topic has 10 replies, 3 voices, and was last updated 1 years, 2 months ago ago by Rose Tyler

  • Avatar: Laskowidz
    Laskowidz
    Participant
    February 1, 2023 at 08:32

    This may be a simple question but I can’t find it anywhere…how can I remove it?

    https://drive.google.com/file/d/1R8JPBzalgwVCduHguvwJGXEm0dBwOlfD/view?usp=sharing

    9 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    February 1, 2023 at 08:46

    Hello @Laskowidz,

    We would appreciate it if you could provide us with your website URL and WordPress admin credentials in the private content area of this topic so that we can review and assist you accordingly.

    The information we require is as follows:

    – WordPress Admin URL
    – WordPress Admin Username
    – WordPress Admin Password

    Thank you for your cooperation.

    Best regards,
    8Theme’s Team

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 1, 2023 at 08:46

    Hello, Laskowidz

    Thank you for your inquiry.
    Could you please provide the URL of the page where you took the screenshot?

    Kind Regards,
    8theme team

    Avatar: Laskowidz
    Laskowidz
    Participant
    February 1, 2023 at 08:54

    Please check

    Please contact administrator
    for this information.
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    February 1, 2023 at 09:19

    Hello @Laskowidz,

    Thank you for providing the login details. I have reviewed your website and determined that the cart button comes from the Cashier for WooCommerce plugin. I have deactivated the plugin, and the cart button has been removed from your site.

    Best regards,
    8Theme’s Team

    Please contact administrator
    for this information.
    Avatar: Laskowidz
    Laskowidz
    Participant
    February 1, 2023 at 13:49

    I used this plugin because thanks to it I can create a direct link to purchase a product, i.e. directly to the checkout. Then I can also attach the link to an additional button on the page, which is exactly what I used.

    Is it then possible to create an additional buy button in the product description? in tabs section?

    Avatar: Laskowidz
    Laskowidz
    Participant
    February 2, 2023 at 08:44

    Let me clarify what I mean:

    It’s about building a link as described on this page:
    https://isotropic.co/woocommerce-direct-checkout-link/

    i.e. using a link like:

    https://www.yourwebsite.com/checkout/?add-to-cart=ID

    where instead of ID we enter the ID of the product from our store does not work using xStrore.

    What link building formula should I use? or some other plugin?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 2, 2023 at 12:35

    Hello, Laskowidz

    Let us know more information about your request.
    1/ Would you like to redirect the customer on add to cart button click (on shop page) to checkout page ?
    2/ Or do you want to change the link of each ?add-to-cart=ID to /checkout?add-to-cart=ID ? – if so then it does not give any garranty that customer will be redirected to checkout because adding to cart is working by ajax from woocommerce (according to this option enabled -> https://prnt.sc/uqdkdV5Igcda ) and no redirects will be done then anyway.
    3/ What about single product add to cart button then? How do you imagine it should work? – we have our own buy now button which redirects automatically to checkout page on click -> https://prnt.sc/cYomolD2agNy
    4/ Do you want to make all add to cart buttons everywhere to redirect automatically just like Buy now button works ?

    Excuse us that we want to know more details about your question because it is better to dig inside the question and suggest good solution rather that make a few times with no success.

    Also, Woocommerce has built-in option to redirect to Cart page on adding product to cart -> https://prnt.sc/VRKZ3kCk2ugk so maybe it is (almost or fully) what you asking us for?

    Kind Regards,
    8theme team

    Avatar: Laskowidz
    Laskowidz
    Participant
    February 2, 2023 at 13:12

    I want create additional ,,Buy now” button in product description.

    Like this:

    https://prnt.sc/GeHMRbCvQ_jJ

    As for point number 3:
    Or how to make this button appear additionally in the product description?

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 2, 2023 at 13:58

    Hello, Laskowidz

    Thanks for the details!
    As you know we are not providing customization services but can only give some snippets filters or direct our customers where some files are located.
    We can suggest you next php snippet which you may add to your child-theme/functions.php ( https://prnt.sc/ry2TlXOEE0T1 )

    add_action('woocommerce_after_shop_loop_item', function() {
        global $product;
        echo '<a href="'.home_url('?buy-now='.$product->get_ID().'&qty=1&coupon=&ship-via=flat_rate&page=11&with-cart=0').'" class="button wp-element-button product_type_'.$product->get_type().'">'.esc_html__('Kup teraz', 'xstore-child').'</a>';
    }, 30);

    We checked the link of the button you shared with us by screenshot and modified it according to universal parameters.
    Frontend results -> https://prnt.sc/NAE0IQ_5iB-q

    Kind Regards,
    8theme team

  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.