Community @ The Turning Gate

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.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2014-11-14 07:04:41

kristenwestlake
Member
From: Wisconsin
Registered: 2012-12-14
Posts: 397
Website

Write-in Purchase Buttons for CE4?

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

#2 2014-11-14 07:27:04

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Write-in Purchase Buttons for CE4?

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

#3 2014-11-14 07:44:56

kristenwestlake
Member
From: Wisconsin
Registered: 2012-12-14
Posts: 397
Website

Re: Write-in Purchase Buttons for CE4?

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

#4 2014-11-14 09:03:14

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Write-in Purchase Buttons for CE4?

Hi Kristen, if you still can't get it working, please provide a link for us to try.

Offline

#5 2014-11-14 10:43:58

kristenwestlake
Member
From: Wisconsin
Registered: 2012-12-14
Posts: 397
Website

Re: Write-in Purchase Buttons for CE4?

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

#6 2014-11-14 10:57:14

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Write-in Purchase Buttons for CE4?

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

#7 2014-11-14 11:00:03

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Write-in Purchase Buttons for CE4?

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

#8 2014-11-14 11:13:00

kristenwestlake
Member
From: Wisconsin
Registered: 2012-12-14
Posts: 397
Website

Re: Write-in Purchase Buttons for CE4?

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

#9 2014-11-14 12:09:33

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Write-in Purchase Buttons for CE4?

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.


Matt

The Turning Gate, http://theturninggate.net

Offline

#10 2014-11-14 12:46:35

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Write-in Purchase Buttons for CE4?

Wow, you have good eyes, Matt!


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#11 2014-11-14 13:59:33

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Write-in Purchase Buttons for CE4?

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. ;-)


Matt

The Turning Gate, http://theturninggate.net

Offline

#12 2014-11-14 22:39:08

kristenwestlake
Member
From: Wisconsin
Registered: 2012-12-14
Posts: 397
Website

Re: Write-in Purchase Buttons for CE4?

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

#13 2014-11-17 11:56:15

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Write-in Purchase Buttons for CE4?

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.


Matt

The Turning Gate, http://theturninggate.net

Offline

#14 2014-11-19 02:42:37

kristenwestlake
Member
From: Wisconsin
Registered: 2012-12-14
Posts: 397
Website

Re: Write-in Purchase Buttons for CE4?

LOL, darn curly quotes .. Now I don't like them either!

Offline

Board footer

Powered by FluxBB