Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
Hi,
I was trying to add a purchase button to an auto index page but am using the information from the write in buttons of CE3.
It doesn't seem to be working as the product doesn't display when the button is clicked. Is there new information as to how to create purchase buttons in CE4?
thank you!
Offline
it's the same as CE3, at least the link in the CE4 Cart documentation leads to the CE3 docs.
http://ce4.theturninggate.net/docs/doku … in_buttons
It's worked for me in tests
Make sure the shipping charges for your product are filled out in the cart settings. That one always bites me in the butt.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thank you Rod, I will check it out again in a little bit. I had the shipping charges but maybe was missing something else.
Those darn shipping charges HAVE bitten me in the butt though too! lol
I'll let you know if it works . have to step out to my nieces bday party!
Offline
Hi Kristen, if you still can't get it working, please provide a link for us to try.
Offline
Hi Ben and Rod,
Still not working and I've checked shipping. .. here is a link
http://kristenwestlake.net/prints/mock- … -mock-ups/
Thank you!
Kristen
Offline
Kristen,
I get a product not found error.
check your shipping methods. International Shipping is showing as incomplete
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Did you try with the default pricing category?
data-price=“default”
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
I tried default earlier and it didn't work either.
I just changed all the international shipping to 0 for this product but still is not working. I actually dont have international complete for my other products but the cart still works, so that is odd.
Anyway, this is what the cart should look like and the product Mockup works if I add it as a cart as seen here (click on the cart for this picture):
http://kristenwestlake.net/prints/mock- … single.php
So it seems that the product is working, but something in the way I'm doing the code for the buttons is not working ..
Offline
Looks to me like you're having issues with your quotation marks. Some of them are curled, and some are not. So this is your source code:
<button class="add-to-cart" data-item=“mockup" data-name=“mockup" data-price=“Mockup”>Purchase a Mockup</button>
And where the curled quotes are, the browser isn't seeing them as quotes, so it's rendering to the page:
<button class="add-to-cart" data-item="“mockup"" data-name="“mockup"" data-price="“Mockup”">Purchase a Mockup</button>
The solution, I think, is simply to write the button in a PLAIN text-editor, then copy and paste it into wherever it needs to be.
Offline
Wow, you have good eyes, Matt!
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Lucky I looked at this at the start of my day, rather than at the end of it, when I'm blurry-eyed from coding all day long. ;-)
Offline
Wow Matt, thank you!
That worked! .. how in the world I had both "curlyq" quotations and normal ones is really odd!
Thank you!
Kristen
Offline
It's the browser trying to be intelligent. It didn't recognize the curly quotes as coded quotes, so it thought you had provided poorly syntaxed attributes, values without having wrapped them in quotes. So it was trying to add the quotes for you.
To wit, curly quotes are the devil. Typographers love them; coders hate them.
Offline
LOL, darn curly quotes .. Now I don't like them either!
Offline
Pages: 1