want to add more than one HTML to a...

User 2008453 Photo


Registered User
111 posts

Hello all,
I'm putting Amazon buy buttons on pages and the HTML in the buttons seem to be linked. There are 2-4 buttons on a page but when you click on any of them they all read the same item.

I know it's not the buttons because I have randomly tried different ones on a blank page that I published and they all read the correct item when clicked on to buy.

Here's a page you can see the buttons, and all the links to the left are also pages that have the buttons.

http://www.useitagainsam.com/sakura.html

if you click the first button that is supposed to buy 3 Sakura bags you get the wrong item

it has you buying Nae's Earth Bags - 4 Pastel Paisley Pack

thanks very much for any advice!!!
User 38401 Photo


Senior Advisor
10,951 posts

Well VSD isn't my forte, but from what I see, you have the exact same code for each of the buttons. I would imagine there are 3 different codes that have at least something different about them for each of the buttons, but the code on the page is exactly the same for them all so,... yeah that would mean they open the same product page since they are the same button. So it is the buttons, and somewhere along the line you're putting the same code in each spot for them.

I would also take a good look at the rest of your page as it's laid out quite overlapping in many areas that the text isn't setup right and some of the stuff on the left column is overlapping other text.
User 187934 Photo


Senior Advisor
20,271 posts

I see the the random string in the script is different but I pulled the buttons code and placed them on a html page in the editor and they still all went to the same item. I would go with JoAnns suggestion and dbl check the button buys script for each item to make sure your grabbing the proper one.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2008453 Photo


Registered User
111 posts

thanks all. I have redone the buttons 3 times on Amazon and how strange that is happening. I have been refreshing the page in between each button I create, wow - I guess I'll have to redo them again and be extra extra careful.:mad:

the thing about my alignment problem is you have to have the screen the exact same size as mine is and then the text doesn't overlap -- I've noticed that too.

Thank you so much.
User 464893 Photo


Ambassador
1,611 posts

You have to watch VSD, It can sometimes mix buttons especially ones created with the program, It seems the way it identifies the buttons as images. I use PayPal buttons, basically the same thing. I fiddle till they match up.
I use VSD as I am creating sites fast but do use the editor in conjunction to add special needs. The correct way to add an extra html to a page is make sure you have the full opening and closing tags. This applies to any script be it JavaScript or php.

I use a PayPal button encryption program that way I do not have to create them in my account, maybe you can get something similar with Amazon. I am working to add a button within my CMS system that way I can change prices, information etc without modifying the page. There has to be an advantage in controlling the dots and dashes.
The Guy from OZ


User 38401 Photo


Senior Advisor
10,951 posts

Hiya Nadine,

Check to make sure when you're making these buttons that you are referencing the correct locations for them or products etc too. Not hard to accidentally repeat a button without realizing it :) That doesn't really sound like what you did though from your first post saying you tried it on other pages and they worked, but something to also keep in mind.
User 2008453 Photo


Registered User
111 posts

Yes Jo Ann I have really tried to be careful. I have a written checklist and am really methodical, although there may be a few mistakes but...........Prism you have it right what's going on with me. I rechecked again by putting a button on a blank page by itself and it read correctly.

Can you tell me what is an encryption program? I.Or can you tell me how to create full opening and closing tags????

this button is for 1 desert bag for 6.95 and it's correct

http://www.useitagainsam.com/2.html

but if you try it on the page here for 1 desert bag, its wrong!!!

http://www.useitagainsam.com/desert.html

thank you all very very much, as you know this is extremely maddening :/
User 271657 Photo


Ambassador
3,816 posts

Can you change the name of each button so they're not all 'cbaxmlButton'?

From the WC3 Validator:
Error Line 244, Column 10: ID "CBAXMLBUTTON" already defined

<div id="cbaxmlButton">

An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

http://validator.w3.org/check?uri=http% … mp;group=0
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 2008453 Photo


Registered User
111 posts

ohhhh paintbrush, I'll try that, maybe with <div id="cbaxmlButton1"> <div id="cbaxmlButton2"> etc.

btw I Iove that quote about deadlines I'm gonna steal it, how funny!!!!!
User 2008453 Photo


Registered User
111 posts

OMG Paintbrush you are a freaking genius, that worked!!!!!! I'm soooooo grateful, that was a LOT of work to create those buttons 3 times!!! wow. thank you thank you.:D:D

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.