WordPress.org

Ready to get started?Download WordPress

Forums

amazon aStore as a page (28 posts)

  1. navigadget
    Member
    Posted 7 years ago #

    I just integrated the new aStore from Amazon into my blog.

    I did not use any plug-ins for this. Just created a new page template with no left or right siderbar to make some space for the store.

    The only down side it is not very customizable. You can only play around with the colors. (it is still in beta)

    Check it out: gps store

    Let me know what you guys think.

  2. moodydesign
    Member
    Posted 7 years ago #

    cool! did you use an iframe to do that? i'm trying to do pretty much the exact same thing, but my store page goes boom. lol

  3. vkaryl
    Member
    Posted 7 years ago #

    Wow. That's pretty impressive. I haven't even looked at the aStore email they sent me a while back; guess I'll have to take a look after all!

  4. carnold
    Member
    Posted 7 years ago #

    navigadget--can you tell us how you did this (both at astore and on your website). I am trying to do the same thing (with the shopping cart like you have). Thanks for any help

  5. navigadget
    Member
    Posted 7 years ago #

    I'm glad you guys liked it.

    Here is how I did it:

    1. Create a page template without the sidebars.
    2. Write a page with the template you just created.
    3. Paste the code Amazon gave you into this page.

    I'd be happy to give further details if anyone needs them.

  6. carnold
    Member
    Posted 7 years ago #

    Humm, i have written the page template and when i go in to write a page and assign the template i just made, it does not show up under "parent page".

  7. vkaryl
    Member
    Posted 7 years ago #

    It won't be in "parent page" - it'll be in page template. Assuming you included the template header info.

  8. carnold
    Member
    Posted 7 years ago #

    I did include the header info.
    Humm, well, in "write"->"page", i do not have "page template". I only have "discussion", "password-protect", "page parent", "post slug", "post author" and "page order". am i looking in the right place?

  9. chaaban
    Member
    Posted 7 years ago #

    i did the same but using iframes .

    Boxing Store

    here is the code :

    <iframe src="http://astore.amazon.com/httpwwwthaibo-20/104-2713405-9541512" marginwidth="0" marginheight="0" border="0" width="650" height="1000" frameborder="0" style="border:none;" scrolling="no"></iframe>

    you just need to change the src for yours ... except if u want to sell stuff for me :p

    And yes just make a new page template ... and add the code ..

  10. vkaryl
    Member
    Posted 7 years ago #

    You need to put the page template stuff at the very top of the new template, or you won't see it under the template section.

    Looks like this:

    <?php
    /*
    Template Name: Commentless
    */
    ?>

    Replace the word "Commentless" with whatever you named your template, upload it, you should then see a Page Template section, with a dropdown, and your new template should be there.

  11. moodydesign
    Member
    Posted 7 years ago #

    that's weird. you don't have the pull-down menu like this?

    i finally got it to work, though it took a good deal of fiddling around with things!

    my site
    store page

    everyone else may already know this, but as it was my first time to create a custom template, be sure that the page template includes this code at the top, or else it will not show up in your list of page templates to choose from:

    <?php
    /*
    Template Name: Snarfer
    */
    ?>

    (change Snarfer to the name of your template file)

  12. vkaryl
    Member
    Posted 7 years ago #

    Well, you never have a dropdown if you have only the one default template.

  13. moodydesign
    Member
    Posted 7 years ago #

    whoops sorry for the double-duty on the code there. i was too slow. :)

  14. carnold
    Member
    Posted 7 years ago #

    @vkaryl-I don't have a template page section in WP 2.0.4 admin area. I DID include this:
    <?php
    /*
    Template Name: Store
    */
    ?>
    but it does no good because i don't have a template area.
    @moodydesign-Nope, i don't have that. You have 7 sections in write->page and i had 6. Yep, "page template" is not there. I can give you login info, if you would like to see.

  15. vkaryl
    Member
    Posted 7 years ago #

    carnold: does your theme include an archives.php file? Or a links.php file?

    If not, then apparently the only template you can select will be the one you set up - that is, Store. If you have only one file with the template header info, then you won't see a dropdown.

  16. moodydesign
    Member
    Posted 7 years ago #

    it sounds like the page template option isn't showing up beecause only your theme's default template is available for choosing... in which case, the page template you uploaded isn't in the right directory.

    make sure you put it into your theme directory and not the wp install directory.

    for example, mine is in:
    my url/wp-content/themes/mytheme/

    if you uploaded your template.php file (or whatever you named it) into the theme directory, you should be able to see the page template drop-down on the write>page page... also you should be able to see it in the list on the right of the presentation>theme editor page.

    i hope this helps! :)

  17. carnold
    Member
    Posted 7 years ago #

    Yes, i have archives.php and links.php. I use bloxpress2 for the theme which has these 2 files in themes/bloxpress2/blocks/archive.php and links.php. They are not in my bloxpress2 theme folder which is where index.php and the like are.

  18. moodydesign
    Member
    Posted 7 years ago #

    hmmm... i wonder if that theme works a little differently because of the "blocks" it uses? my archive.php and links.php files have always been in the theme folder (not a sub of that.)

    sorry for thinking aloud. was hoping i could help, but the blocks subfolder is throwing me a bit.

    the theme looks really cool though! i've never seen that one before.

  19. carnold
    Member
    Posted 7 years ago #

    Yea, that's what i am thinking. It is cool, but things like this really stop me from using it. Thanks guys for your help.

  20. spencerp
    Member
    Posted 7 years ago #

    chaaban posted in here as well, it was overlooked, because the SPAM catcher on the forums here, thought it was spam, and didn't allow it to display..

    spencerp

    /Had to recover another one of your's on a database connection thread chaaban..

  21. timinNZ
    Member
    Posted 7 years ago #

    Hi all. So far I have created the template and got that into the drop down box in the page creator thing. I have tried to use the code given by Carnold, (inserting my amazon id) and I either get an error message, a blank page or a page on how to create an amazon store - instead of my store. Any suggestions welcome! Speek slowly as I am a bit new to this!

  22. navigadget
    Member
    Posted 7 years ago #

    Hi timinNZ,

    I went to your site. I do get a blank page. Try creating a page first just with the default template. So we know if your new template is the problem.

  23. timinNZ
    Member
    Posted 7 years ago #

    Hi there - I can create pages okay and seem to have created the new template too. I suspect my problem is in the area of getting the amazon code to work - the code bit is a bit beyond me! Thanks for the assistance!

  24. carnold
    Member
    Posted 7 years ago #

    When you goto the astore at amazon.com, then build links, at the end of that process is where you get you code that you will then paste into your new page. Hope this helps

  25. moodydesign
    Member
    Posted 7 years ago #

    here's a weird thing. in order to get my store page to work, i had to change the page slug to "shop", instead of "store". i have NO idea WHY, considering i do not have any other pages, files, or directories in my web space that are named "store". but for some reason, wp didn't like it.

    if you're getting a blank page or 404, maybe give that a shot?

    *scratches head*

  26. timhaire
    Member
    Posted 7 years ago #

    Thanks for the assistance. I am still getting a blank page. When I insert the code from amazon do I simply copy and past it or is there anything else I need to insert it into?

  27. timhaire
    Member
    Posted 7 years ago #

    I think I may have fixed it... but I am not sure what I did differently...

  28. Adam W. Warner
    Member
    Posted 7 years ago #

    Hi all,

    This is a very helpful thread that helped me learn about using my Amazon astore inline frame code. I do have a question (I think with a simple answer) that I'm hoping others on this thread can help me with...

    I have created a template named "shop" and got it down to the bare essentials of code. I then inserted my astore inline frame code....but I can't seem to get the store aligned right. Can anyone offer some advice?

    Here's my page with the astore http://wedreaming.com/?page_id=36

    See how it's overlapping on the left side?

    Here's my "shop" template code
    [code]
    <?php
    /*
    Template Name: Shop
    */
    ?>
    <?php get_header(); ?>
    <iframe src="http://astore.amazon.com/wedreaming-20" width="90%" height="1000" frameborder="0" scrolling="no"></iframe>

    <div id="content" class="narrowcolumn">

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">

    </div>
    <?php endwhile; endif; ?>

    </div>

    <?php get_footer(); ?>
    [code]

    I have tried changing the width percent using lower percentages and also tried changing it to pixels. Still no deal.

    Can someone offer any advice here? I'm using the Default WP theme, Kubrick.

    Thanks for any help.

Topic Closed

This topic has been closed to new replies.

About this Topic