Xstore "Add to cart button" takes user to homepage

This topic has 12 replies, 3 voices, and was last updated 1 years, 1 months ago ago by Tony Rodriguez

  • Avatar: ygayle
    ygayle
    Participant
    November 24, 2017 at 10:25

    Hi guys,

    I’ve created an “add to cart button” through the XStore Shortcodes and I’m having 2 issues that I need help solving:

    1) The button works to add an item to the cart. However, instead of allowing the customer to remain on the page and continue shopping, no matter what I select as a target (blank or current window), it bounces the customer over to the homepage after adding the product to the cart.

    What I’m using as the URL is (https://www.mywebsite.com/?add-to-cart=123). Could the issue be the url that I’m using (of course, I’m using my actual website url and an appropriate id#)?

    What I’m doing is creating unique pages for individual customers where I would like the to have the ability to add more than 1 produce to their carts “before” heading over to their cart to checkout. How can this be done?

    2) I’m fine with the “hover-over” colour of red, but how can I change the colour of the initial state? It’s a very light-gray/almost white, which doesn’t work for me when used up against a light background. How can I change this?

    Thanks,
    Yohan

    Please, contact administrator
    for this information.
    11 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    November 24, 2017 at 11:31

    Hello,

    1) If you use to link to your home page then, of course, you’ll be redirected to home page. Use the link to page where you added Add to cart button if you want to stay on that page.

    2) Are you talking about button background color? You can change it in Theme Options > Styling > Content > Buttons > light buttons

    Regards

    Avatar: ygayle
    ygayle
    Participant
    November 24, 2017 at 15:22

    Hi Olga,

    Thanks for the quick response. In the examples I found on how to create an “add to cart” url, they all provided the main domain address. I didn’t realize it should be specific to the page, or the page you wanted loaded. Thank you.

    With respect to the button, I’ve tried changing the colour several times, through the path you provided, and the main state background colour, for the light button, will not change on the page when I load it. I’ve even tried adjusting it to the dark button, just in case, and it isn’t working. Would you mind taking a look?

    Avatar: ygayle
    ygayle
    Participant
    November 24, 2017 at 16:39

    Just to further clarify, I did some more fiddling around, and the button colours did change. However, not the button created through the shortcode.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    November 25, 2017 at 10:15

    Hello,

    I see. Ok, then try this custom code

    .btn {
        border-color: blue;
        background-color: blue;
        color: white;
    }

    Regards

    Avatar: Alfi
    Alfi
    Participant
    August 31, 2023 at 07:05

    2) In wich settings I need to go to set url when the add to cart button. gets pressed so that the customers can shopping more products before they go to cart and checkout?

    I would be happy for help! 🙂

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 31, 2023 at 12:04

    Hello, Alfi,

    Thank you for contacting us and for using XStore.

    “Add to cart” button on what exactly page do you mean? Please describe your request in more detail, with dome screenshots or examples.

    Thank you for your cooperation and we look forward to hearing from you soon.

    Kind Regards,
    8theme team

    Avatar: Alfi
    Alfi
    Participant
    August 31, 2023 at 21:45

    I would like the add to cart Button on the page where every product is listed that is named shop page like here in that screenshot
    ( https://drive.google.com/file/d/1bpjftianWgIP833b2-eP1R6fNbdba7Lj/view?usp=sharing )
    Not like in that screenshot here these round thing!!!:
    ( https://drive.google.com/file/d/14dSREFreiuQSnPUxHxy0M78NF3xTOZQ4/view?usp=sharing )

    I have another problem with the variation swatches I want the same variations watch like the standard from woocommerce on the product page on the shop page over the add to cart button ! is that possible? If you need to understand for that problem a screenshot let me know please!

    For the Variation swatches I did the exact the same liken the tutorial!!

    Avatar: Alfi
    Alfi
    Participant
    August 31, 2023 at 22:19

    I thing the Variation Switches settings in the customizer doesn’t work or I do something wrong because if I activate it there is no difference!!!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 1, 2023 at 10:46

    Hello, Alfi,

    We appreciate your prompt response.

    Unfortunately, it is not possible to display swatches on the shop page in the same way as on the single product page. You may try to reconfigure the ‘Add to Cart’ block using options from the following section: Customizer -> WooCommerce (Shop) -> Products Design.

    Please do not add new questions here, please open new topics for new questions – https://www.8theme.com/forums/xstore-wordpress-support-forum/
    After submitting a new topic with your question “I thing the Variation Switches settings in the customizer doesn’t work or I do something wrong because if I activate it there is no difference!!!”, provide URL of your site and temporary wp-admin access via the Private Content area, so we can check your settings.

    To provide wp-admin access, you can create a new user account with administrator role via the Dashboard, and provide us with the username and password via the Private Content area.

    Kind Regards,
    8theme team

    Avatar: Alfi
    Alfi
    Participant
    September 1, 2023 at 21:03
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    September 2, 2023 at 09:20

    Hello, @Alfi,

    We appreciate your understanding and thank you for reaching out to us.

    We hope you have a pleasant weekend ahead.

    Please do not hesitate to contact us at any time should you have any new inquiries. We are always available to assist you.

    Best Regards,
    8Theme’s Team

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

The issue related to '‘Xstore "Add to cart button" takes user to homepage’' has been successfully resolved, and the topic is now closed for further responses

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