Add to cart shortcode

  • Add to cart shortcode
    Viewing 9 posts - 1 through 9 (of 9 total)

  • Omar
    Keymaster
    #4178

    Created on behalf of lwdeddie;

    I’m having a difficult time adding shortcode for woocommerce products outside of the standard product page. We have a series of small services we’d like listed in tabular form on one page and would like to add “add to cart” buttons for each.

    The standard syntax is [add_to_cart id=”xyz”] but it does not work. We’ve tried this in the shortcode module as well as the text module.

    How can I add shortcode for products without using the product page itself?


    Omar
    Keymaster
    #4185

    Hello lwdeddie,

    Sorry for the late response
    Please add the following CSS to your custom CSS panel at Theme Options >> General >> Advanced >> Custom CSS


    .aq-block .itemMore, .aq-block .addToCart {
    position: static;
    opacity: 1;
    width: 100%;
    text-align: center;
    }
    .aq-block .flatBtn p {
    float: none;
    }
    .aq-block .flatBtn span {
    display: none;
    }
    .aq-block .addToCart:hover p, .aq-block .itemMore:hover p {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
    }

    This will available on the next update for all users 🙂

    Cheers


    lwdeddie
    Participant
    #4188

    Added code but button still doesn’t work. I used [add_to_cart id=”130”] in a text module/block. Am I doing something wrong.


    Omar
    Keymaster
    #4189

    nope, it should work

    Can you please share the page url with us?

    Regards


    lwdeddie
    Participant
    #4190

    Yes, but before I do, the page is not published. If you would like/need login access I’d prefer to provide that and not publish the page. If you only want to see the page, I’ll publish it and then return it to draft when you’re done. Which works better for you?

    Sorry for the back and forth.


    Omar
    Keymaster
    #4194

    Hello lwdeddie,

    Sorry for the late reply
    No problem, please allow me access and I’ll check it

    Regards


    lwdeddie
    Participant
    #4199

    Your access is already setup. How can I send you the login info?


    Omar
    Keymaster
    #4200

    Hello,

    You can either send it to support@creiden.com
    or include it in a private message here

    Regards


    lwdeddie
    Participant
    #4201

    Sent to the email support@creiden.com.

    Thanks.

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Add to cart shortcode’ is closed to new replies.