Amazon programming problem

3 replies
Hi there I am sorry but I am no programmer but I will try to explain my problem the best I can. i would go to amazon customer support but i tend to find that people help on here a lot faster!!

I am trying to install an amazon Astore on my website.
now i want to do this by using frameset. so it looks more like a shop on my site.
to do that i add this code.

<frameset rows="80,*" border="0">
<frame src="INSERT_YOUR_PAGE_HERE" name="topFrame" frameborder="no" scrolling="no" noresize="noresize" />
<frame src="http://astore.amazon.co.uk/prsh-21" name="mainFrame" frameborder="no" />
</frameset>

now where it says InSERT YOUR PAGE HERE, what do I putis it the full web address of my site.
I will tell you why i am asking. If I leave it i get a 404 Error.
and if i put my webpage address in it copys the header from the page that i want to put it on so i land up with 2 headers on 1 page :/ can anyone help i have been at this all day lol
Thank you in advance
Owen
#amazon #problem #programming
  • Profile picture of the author Mkj
    Why don't you use an iframe installation of the Amazon script instead? To do this all you need to do is use the iframe to display the script within any page you create on your site. The code for an iframe solution would be something like this:

    Code:
    <iframe src="http://astore.amazon.co.uk/prsh-21" width="put width here" height="put height here" frameborder="0"></iframe>
    Create a normal page with a header, footer and whatever else you need and put the iframe where you would want the shop to display.
    {{ DiscussionBoard.errors[7457226].message }}
  • Profile picture of the author Owen Mailer
    Thank you Mjk,
    when i do that it keeps adding the categories on the shop and I am trying not to have them. I want the menu for navigation round the shop within the main menu on my site as it looks cheap on the page. if you can advise of a way to do this I would really appreciate it
    Owen
    {{ DiscussionBoard.errors[7458217].message }}
    • Profile picture of the author Mkj
      Originally Posted by Owen Mailer View Post

      Thank you Mjk,
      when i do that it keeps adding the categories on the shop and I am trying not to have them. I want the menu for navigation round the shop within the main menu on my site as it looks cheap on the page. if you can advise of a way to do this I would really appreciate it
      Owen
      Well to acheive what you want you would have to get rid of them on the shop itself. which I doubt you are allowed to do.

      To use your own menu the links you create need to target the iframe (or frameset). First of all you have to give your iframe a name by adding something like this to the code:

      Code:
      <iframe src="http://astore.amazon.co.uk/prsh-21" width="600" height="183" frameborder="0" name="myshop"></iframe>
      Then your menu links would look something like this:

      <a target="myshop" href="http://astore.amazon.co.uk/prsh-21">Menu Link</a>

      If the shop links you want to hide are say on the left you could put the iframe inside a div and then give the div a minus margin setting. Something like this:

      Code:
      <div style="margin-left: -100px;"><iframe src="http://astore.amazon.co.uk/prsh-21" width="600"  height="183" frameborder="0" name="myshop"></iframe></div>
      As long as the above is inside another div then the left 100px will not show thereby hiding the shop menu. This is a horrible solution and I wouldn't recommend it.

      You can alter the amazon shop until it doesn't look cheap, which is probably the best solution of all, and keep the shop links else you are just creating a lot more unnecessary work for your self - and probably a lot of headache too.
      {{ DiscussionBoard.errors[7459467].message }}

Trending Topics