E-Junkie Forum http://www.e-junkie.com/bb/ E-Junkie Forum RSS en-us Copyright 2009, 19.5 Degrees. All rights reserved. webmaster@e-junkie.com webmaster@e-junkie.com Mon, 18 May 2009 19:41:45 GMT Sat, 21 Nov 2009 06:39:32 GMT 681 E-JUNKIE 5 E-Junkie Forum http://www.e-junkie.com/bb/ http://www.e-junkie.com/ej/logo.gif 290 104 Post #19 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Mon, 18 May 2009 19:41:45 GMT
Because the View Cart code must be pasted into the main page source directly to generate our nice cart overlay in front of your page content, putting the View Cart code in an separate iframe file means the Add to Cart code can't call those overlay functions to display the cart in that manner, so clicking Add to Cart works in fallback mode to open the cart in a new popup window. Clicking View Cart does display the overlay cart, but it's trapped inside that tiny, button-sized iframe where it winds up being totally useless (this is why the View Cart button seems to "disappear" when you click it -- it's actually a button-sized glimpse of the cart overlay covering up the button image inside the iframe :^).]]>
E-junkie Discussions; Tyson
Post #18 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Mon, 18 May 2009 14:13:46 GMT E-junkie Discussions; rainmanrigger Post #17 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Mon, 18 May 2009 00:23:48 GMT
Most other Web design software provides some method to accomplish this, but Apple apparently thinks that their target iWeb users don't have any need to directly access the HTML code that iWeb is generating for them. It would certainly be nice if Apple provided a built-in way to directly edit the raw HTML of a page from within iWeb itself, but they haven't seen fit to add such a feature in several successive revisions of iWeb, and we have no control over how Apple chooses to design their iWeb program.]]>
E-junkie Discussions; Tyson
Post #16 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Sat, 16 May 2009 19:44:01 GMT E-junkie Discussions; rainmanrigger Post #15 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Fri, 27 Feb 2009 02:25:11 GMT E-junkie Discussions; monkeyman Post #14 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Fri, 27 Feb 2009 01:57:13 GMT
Last I was aware, iWeb's HTML Snippet widget should work fine with the Add to Cart code, unless something has changed with iWeb09 where it now puts all snippets into a separate file with an iframe instead of just doing that only to snippets that contain JavaScript (which was always the problem with our View Cart code in iWeb previously).]]>
E-junkie Discussions; Tyson
Post #13 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Thu, 26 Feb 2009 00:34:34 GMT E-junkie Discussions; monkeyman Post #12 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Thu, 26 Feb 2009 00:27:22 GMT monkeymanAdam, I have found that the following works extremely well:



Monkeyman,

Thank you so much for your help! It now works perfect. I really appreciate your thorough advice. Haha...I'm super excited it works!]]>
E-junkie Discussions; kungfu28
Post #11 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Wed, 25 Feb 2009 23:03:12 GMT
on your iWeb page, place a TEXT BOX with some text in it- a code word that you know appears nowhere in the page, such as VIEWCARTGOESHERE or something. Everywhere you want the View Cart button add this text box. Text box should be the size of the button. Do this for other e-junkie buttons you want, and just change the code name. you can use, forexample, ADDCARTBUTTON1 or whatever you like. Publish your pages to a folder.

Download a program called MassReplaceIt http://www.hexmonkeysoftware.com/

Launch MassReplaceIt and configure as follows:

MASK TAB>ADD Extension is .html and select radio button for "all criteria"
OPTIONS TAB>Check Serach:Contents, Location:Entire File/filename, Options Case Sensitive, Search whole words only
OPTIONS TAB>OPEN PREFERENCES>GENERAL>check add items to the front search, add the folder, search the folder's name and contents, ignore invisible files, apply mask when searching begins.

Then go to the Find TAB and enter your code word that you used (VIEWCARTGOESHERE). Then under Replace copy the html code that e-junkie provides you. Repeat this process for all buttons on your iweb pages.

Then under the FILES tab, add the files from your published folder. Then click Replace.

Mass ReplaceIt will search all the files you add for the code words and replace the code words with the html code. You can save the query for using later. I currently have one query with all my buttons programmed in to find and replace. Every time I publish my site I just run MassReplaceIt and it puts all the right html code in for me. Since it saves the query including which files it looks at, it's pretty automated. If you have questions, just ask. Hope this helps.]]>
E-junkie Discussions; monkeyman
Post #10 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Wed, 25 Feb 2009 21:13:45 GMT
I followed your suggestion for my iWeb '09 page of splitting my view cart code into two parts. Everything is working fine, except that the cart is not overlayed on my website. It is instead opening in a separate window. Java is enabled on both my web browser, as well as the code I'm getting from you guys.

My website isnt complete, as I am just uploading it to check how things work, but you can go to it at: www.wushusilks.com

If you click the picture on the home page and then click the top left picture on the second page...it will take you to the page where the 'add to cart' and 'view cart' buttons are.

If you have any suggestions, I'd really appreciate the help!

Thanks
Adam]]>
E-junkie Discussions; kungfu28
Post #9 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Fri, 20 Feb 2009 04:27:21 GMT E-junkie Discussions; monkeyman Post #8 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Fri, 20 Feb 2009 03:40:38 GMT
Make sure you are using the standard JavaScript version of our button code -- i.e., make you you have NOT unchecked the box to remove JS from the code in your Get Button Codes screens.

Your browser must also have JS enabled for the overlay cart to work, otherwise it will fallback to work in popup mode for you, and the page must be "live" on the Web (it will not work in a local preview mode).

If this advice does not resolve the matter for you, please reply with the URL of your site, so we can have a look for ourselves to see what might be going on in your code.]]>
E-junkie Discussions; Tyson
Post #7 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Thu, 19 Feb 2009 22:44:20 GMT E-junkie Discussions; monkeyman Post #6 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Sun, 15 Feb 2009 14:31:17 GMT
Thanks for the advise. I tried your last suggestion and it works great for what I need to do. It would be nice if there was a more elegant solution to the problem I hope you guy will get a copy of iWeb and try to figure it out. That being said your doing a good job.

Note: I put the view cart widget at the bottom of my side bar on my main template so I only had to make the code change once in my document. I then copy the template every time I make a new page.

Thanks again,

Miken]]>
E-junkie Discussions; maddog
Post #5 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Wed, 11 Feb 2009 01:05:53 GMT
As another alternative, you can split your View Cart code into two parts like so:

<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=49949&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ej_view_cart.gif" border="0" alt="View Cart"/></a>

<script language="javascript" type="text/javascript">
<!--
function EJEJC_lc(th) { return false; }
// -->
</script>
<script src='http://www.e-junkie.com/ecom/box.js' type='text/javascript'></script>

The first half of that (from <a href=... to </a>), you can insert as a snippet just like you did with the Add to Cart buttons. Then after you save your pages in iWeb, you will need to open each of your main pages in TextWrangler, and just after the part at the top that says <head>, you should paste in the second half of the code shown above (from the first <script... to the last </script>).]]>
E-junkie Discussions; Tyson
Post #4 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Tue, 10 Feb 2009 21:13:16 GMT
Thanks for getting back to me. I tried that solution in the post yesterday but the problem is that iWeb '09 puts your snippets in a separate file and then calls the file (see the code in previous post.) So in the page folder there is a widget2_markup.html file the contains your code for the "add to cart" button, it is called from within the page and works great. It also create a file widget1_markup.html with your "view cart" code and calls it from with in the page (see the code above) but it doesn't work like I stated before. There is no way to put the "XXXXXX" like you suggested because it is just placed in the widget1_markup.html file so the page can call file!

Help!?!]]>
E-junkie Discussions; maddog
Post #3 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Tue, 10 Feb 2009 20:38:34 GMT http://www.e-junkie.com/bb/topic/2999#post8354]]> E-junkie Discussions; Tyson Post #2 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Tue, 10 Feb 2009 07:25:04 GMT <script type="text/javascript"><!--//--><![CDATA[//><!--
var widget1_htmlMarkupURL = ".//Welcome_files/widget1_markup.html";
//--><!]]></script>
<div id="widget1-htmlRegion" class="html_region_widget"></div>
</div>
<script type="text/javascript"><!--//--><![CDATA[//><!--
new Paste('widget1', 'Scripts/Widgets/HTMLRegion', 'Scripts/Widgets/SharedResources', '.', {"emptyLook": false});
//--><!]]></script>
</div>

After looking at the code as suggested in other postsfor iweb '08 I couldn't find any iframes. iWeb '09 seems to put your "view cart" button in in a separate file widget1_markup.html. Any thoughts? If I wanted to have it work like "add to cart" can I and how would I do that? I am not an html or java script programmer.]]>
E-junkie Discussions; maddog
Post #1 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 http://www.e-junkie.com/bb/topic/3164/pg/0#post10072 Tue, 10 Feb 2009 06:16:58 GMT
I am using iWeb '09 and I can put an "add to cart" button on the page using the html snippet widget and it works great. But when I put the "View Cart" button on the page using the html widget it does't work. When I publish the page you can see the "View Cart" button but when I click on it, it goes blank and nothing happens.

Any ideas?]]>
E-junkie Discussions; maddog