Support » Plugin: Jigoshop » add to cart button shortcode not showing button

  • Resolved llamaza

    (@llamaza)


    Hi,

    I’m trying to place the add to cart button to my single post pages using the [add_to_cart id=”1″ sku=”1″] or [add_to_cart_url id=”1″ sku=”1″ price=”no” class=”yourClass”] but it only displays the url or the price of the desire product. No button is displayed at all.

    What am i doing wrong?

    https://wordpress.org/plugins/jigoshop/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @llamaza,
    as described on http://forum.jigoshop.com/kb/customize-jigoshop/shortcodes
    you should use
    [add_to_cart_url id="1" sku="1" price="no"]
    If it doesn’t show up the button – please check with standard theme as most probably it’s styling issue.
    If you’d need help with that – let us know via support@jigoshop.com

    Thread Starter llamaza

    (@llamaza)

    Hi Optart,

    Between my answer and your reply I decided to take a workaround to this situation and I’ve just made a button “add to cart” by myself.

    <div style="font-size: x-large; text-align: center;"><form class="cart" action="loadept/shop/?add-to-cart=4055&_n=287d514021" method="post"><button class="btn-cart" type="submit">Add to cart</button> Price: </form></div>

    i’ve also given style to this “btn-cart” class so now i’ve got a pretty slick button in my post.

    Thread Starter llamaza

    (@llamaza)

    Unfortunatelly, this solution does not work. Actually it works only the first time I put the ?add-to-cart=4055&_n=287d514021
    After that, my button doesn’t make anything whenever is pressed.
    And the shortcode doesn’t work neither.
    Any help?

    Hi llamaza, this bit has to be added dyanmically (_n part will differ every time). Isn’t my solution working for you?

    Thread Starter llamaza

    (@llamaza)

    No, the solution you gave me does not work, no button is shown across the page. Check the picture.
    http://1drv.ms/QC6SDx

    if it generates such link – can’t you use
    <div style="font-size: x-large; text-align: cente<blockquote>r;"><a href="[SHORTCODE]" class="btn-cart" type="submit">Add to cart</button> Price: </div>

    Thread Starter llamaza

    (@llamaza)

    Now it’s solved. The button works properly at the end. I did take the following actions.
    1.Take a fresh backup of my webpage (Jigoshop has not been installed previously)
    2. Install the shop plugin again in local using backup files
    3. Use [add_to_cart id=”4123″ sku=”1″ price=”no”] shortcode (4123 is the code to a product test)
    4. Give style the button class to match my site style.

    And that’s all.

    I’m still developing the shop but thank you very much for your support.

    Good to hear!
    Let me know in case of any other issues.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘add to cart button shortcode not showing button’ is closed to new replies.