Using hidden frame for cart while using iframe issue

Get help with nopcart formatting or style related issues.

Moderators: Koibito, Stefko, Randy

Using hidden frame for cart while using iframe issue

Postby Duudinja » Sun May 13, 2012 9:39 am

Hello !

I am having an issue with using frameset with hidden frame for managing the cart content.

My web site sells small, cheap items - crafting supply. This means people will most likely order from 10 to 50 different positions, which means it's not enough with the ~18 purchase slots this cart can handle by default.

I used the code from this post: viewtopic.php?f=5&t=6280&hilit=maximum+capacity#p19513

In theory everything works (checked by just creating plain empty page and checking does it works well - and it does), however my website structure is as follows:

1) Index page is single frame with <iframe>
2) In the <iframe> shows up all the content (gallery, info, shop and home)
3) Shop section has another <iframe> in which then shows up different sections of shop

I tried:

1) Putting frameset as suggested in index and changing index to body. Created cartdata file and it works when putting items for sale directly into body. It doesn't work when items for sale are in <iframe>, which is in another <iframe>
2) Tried putting frameset into first <iframe>. Same results - nothing works
3) Tried putting frameset into most lowest <iframe> and again nothing.

Link to my homepage (no cart added yet) - it's in Latvian I know. http://www.linagallery.lv

The problem is that the script from grenooye doesn't work with these <iframes>, at least I think that the <iframes> are the ones that are messing this up.

I would like to clarify if my suspicion is correct as well as in both cases - if they are or they are not, how can I fix this so it works for me. I would really love to not have to completely remake the page.
Duudinja
WebMaster
 
Posts: 5
Joined: Sat May 12, 2012 11:44 pm

Re: Using hidden frame for cart while using iframe issue

Postby Koibito » Sun May 13, 2012 7:03 pm

You can use a value higher than 18 for most currect browsers.

viewtopic.php?f=11&t=6914&p=20166

The use of frames or iframes is not a good idea.
John
Koibito
Site Admin / Guru
 
Posts: 918
Joined: Sun May 28, 2006 1:59 am
Location: New Jersey, USA

Re: Using hidden frame for cart while using iframe issue

Postby Duudinja » Mon May 14, 2012 6:53 am

Thank you for the info. That makes me feel much better as I can now work on implementing that cart for my whole site, instead of just trying to get it work correctly :)

I believe I have heard elsewhere that iframes and frames are not a good idea, but then again is there another way in html site to view changing content ? Tables ? I am enthusiast web site builder, so I am not pro in many things :)
Duudinja
WebMaster
 
Posts: 5
Joined: Sat May 12, 2012 11:44 pm


Return to Help: Formatting and Style

Who is online

Users browsing this forum: No registered users and 1 guest