Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Popup Window Via Text Link (Instead Of Image Link)

Popup Window Via Text Link (Instead Of Image Link)

Views: 13,589

Results 21 to 40 of 58
22 Apr 2008, 7:00 AM
#21
celtickatt avatar

celtickatt

Zen Follower

Join Date:
Mar 2005
Location:
Tulsa, Ok
Posts:
174
Plugin Contributions:
0

Popup Window Via Text Link (Instead Of Image Link)

Well, to be honest I'm not sure what you mean by "subcategory name", but I didn't want to ask ANOTHER question, so I thought I'd try to figure it out.

I think I got my popups narrowed down to 3 (even though between the 3, I have about 14 attributes that will be explained - I did wind up adding a few more than what I originally listed to you):
Engraving Styles
Embroidery Styles
Misc Styles
I figured all of my attributes that need image examples will fit into those three topics, so all of my individual attributes that need those images will call one of those three files. Hope I'm doing it ok so far.

22 Apr 2008, 7:05 AM
#22
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,183
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

I am going to pm you

22 Apr 2008, 7:11 AM
#23
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,183
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

Ok,
https://www.gomagnetic.com

Magnetic Hematite > Bracelets > Product Listing > Products Page

The lime green I highlighted to change in the tpl_modules_attributes.php

  1. bracelets
  2. :smile:
  3. I did not have a link to your site to write the exact code for you..
  4. Just play, you will figure her out...
22 Apr 2008, 7:28 AM
#24
celtickatt avatar

celtickatt

Zen Follower

Join Date:
Mar 2005
Location:
Tulsa, Ok
Posts:
174
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

I think I'm just really tired and not quite getting it all.

Here's a link to a specific product on my page that has 3 (of the many) attributes that need images to provide examples.
http://accessory-avenue.com/hbhcatalog/index.php?main_page=product_info&cPath=9_36&products_id=66
Most of my attributes don't need examples, but see on that page where it says Engraving Typestyle:, Monogram Style:, and Add Engraved Ornament? Those 3 will just happen to all fall under the category of "Engraving Styles" so they will all point to the one popup. Here is an example of a product that will have several attribute options that need the popup "Embroidery Styles" (which aren't listed under the product yet, but they will need to choose two different thread colors, a monogram style, and have places to input enter their names, wedding date, and monogram initials.) http://accessory-avenue.com/hbhcatalog/index.php?main_page=product_info&cPath=2_20&products_id=585

Going to read your pm...

22 Apr 2008, 7:44 AM
#25
celtickatt avatar

celtickatt

Zen Follower

Join Date:
Mar 2005
Location:
Tulsa, Ok
Posts:
174
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

P.S. I DID notice the no-core-file-changes, lol! Always a great mod!!!

23 Apr 2008, 5:11 PM
#26
celtickatt avatar

celtickatt

Zen Follower

Join Date:
Mar 2005
Location:
Tulsa, Ok
Posts:
174
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

For those that may be keeping up with this thread or newcomers to it... we haven't abandoned it. We found some quirks and are still looking for at least one because the mod isn't quite working yet. When we get it fixed, I will try to come back and post everything we did, because it's a great mod! Very space-saving!

25 Apr 2008, 12:47 PM
#27
mshutch avatar

mshutch

New Zenner

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
34
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

Any updates on this? I am confused about the sub-category name as well.

Thanks,

Colleen

25 Apr 2008, 1:46 PM
#28
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,183
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

MS,
I am working on the instruction to install explain how to install as we speak, give me 1 or 2 days yet, and i will upload a zip file for you to TEST..

I tested this mod in two carts

  1. they both worked for me but
  2. but Celtickatt is having troubles
  3. I need another opinion before I submit it to the admins
25 Apr 2008, 1:55 PM
#29
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,183
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

MsHutch:

Any updates on this? I am confused about the sub-category name as well.

Thanks,

Colleen

C,
I re edited my post,

There are three mistakes
All are correct now.

  1. yes, it is not the sub-category name:
  2. It is the Attribute Option Name you want the popup beside.
25 Apr 2008, 4:10 PM
#30
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,183
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

Ms,
Yes, thanks for the email..
Yes, there were a few changes from my post above which I worked out with the zip file emailed to you...

I am glad she worked for you.
Sweet little addition to the Attributes from being cluttered.

Now I am going to submit this little mod to the download section.

29 Apr 2008, 9:31 AM
#31
nickster99 avatar

nickster99

New Zenner

Join Date:
Dec 2005
Posts:
13
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

I've searched in the downloads section for this mod, it looks to be just what I'm after. I couldn't seem to find it though. Can you let me know whether its up yet and what its called so that I can search for it? Cheers, Nick

29 Apr 2008, 1:51 PM
#32
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,183
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

N,
I have not submitted this tiny little mod yet to the downloads

  1. Answering too many questions:smile: on Zen Forum
  2. I will take the time this week for the submittal..
29 Apr 2008, 2:51 PM
#33
celtickatt avatar

celtickatt

Zen Follower

Join Date:
Mar 2005
Location:
Tulsa, Ok
Posts:
174
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

For those that may be wondering about my end of it... I never could get it to work for some reason. I'm running 1.3.8 (or whatever the newest one is- I think it's that) and I couldn't get it to work even on a fresh install that had no mods anywhere. No idea why. I'm sure there's something somewhere that I don't know about, but who knows. I even made sure everything had the right CHMOD. Anyway, if anyone else has that problem, here's how I solved it:

When creating the Option Name that will essentially need the popup (or if it's already created, just edit it) I put a link in the comments section of it that says View Examples. See this page for an example of what I'm talking about: http://accessory-avenue.com/hbhcatalog/index.php?main_page=product_info&cPath=9_36&products_id=66

It works, but there are a couple of things about it:
1. The character limit for the comments area isn't that much, so the href link needs to be somewhat short, along with the wording you choose for your actual link.
2. For some reason, the comments section does NOT like quotation marks, so I just left them out. Write your link like you normally would but without the quotation marks.
3. Unfortunately, between reason 1. and 2., I couldn't get javascript to work, so I couldn't do a popup that way. I just had to use target=_blank.
4. Since you've used this space for the link and the character limit isn't that much, you don't really have room to write an actual comment along with your link if you need one, which kind of sucks.

BUT... it solved my problem, since this awesome mod wouldn't work for me, for some strange reason.

29 Apr 2008, 3:17 PM
#34
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,183
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

CelticKatt,
The time and effort a person spends on designing, editing and creating the .php code for any mod to work is beneficial for Zen Cart & the Forum.

Yes, you were the first to test this mod in its virgin stage.

  1. yes we had complications
  2. I did my best to resolve your issues
  3. I have tested the mod with MSHUTCH, and works perfectly
  4. I have tested the mod on two sites I have designed and works perfectly
  5. I just received another post for the mod files and waiting on an email
  6. I am still in the testing stage for this mod to work effeciently.Sorry it could not work for you, but boy now your products page looks clean and uncluttered by the orginal attribute pictures you had installed
14 May 2008, 3:36 PM
#35
celtickatt avatar

celtickatt

Zen Follower

Join Date:
Mar 2005
Location:
Tulsa, Ok
Posts:
174
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

Haredo,
Sorry it took so long to reply. I'm supposed to get instant emails when someone posts a reply here and didn't (I have that issue a lot, actually.) I should have thanked you for all your efforts to help me out- sorry I didn't actually do that! I still don't know what the deal was and it sucks that I can't use this mod, but it IS a great mod and I'm glad that other people are getting it to work properly. That's awesome. I would definitely recommend your mod to people, and if for some crazy reason they can't get it to work like I couldn't, then my alternative works out too. No matter what though, the page definitely does look better without all the attribute image clutter!

Thanks again!!!

8 Jun 2008, 1:34 AM
#36
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

Just take your time and duplicate the files..
The hard one is the tpl_modules_attributes.php

  1. the lime green text has to be changed to match your subcategory name
  2. and of course that dang .
  3. Worked like a charm on a site I built.....
  4. And the beauty, Did you Notice: No core files were written on!!!!!!

Hi haredo,

Great contribution.

Mine isn't working at all and need your kind help please. ( BTW is the mod ready ? and what is it called?)

Can please clarify this.
In ' 1. the lime green text has to be changed to match your subcategory name' I suppose I put my category name if I do not have any 'Sub Category' - would that be correct? and what happens if the category is called 'Amazing DVD's' ? will the ' 's' cause any problems?

I have substitute the following names/words. will they cause any problems as I can not see any changes after the uploads.

popup_monogram_style.php >popup_image_size.php
define('FILENAME_POPUP_MONOGRAM_STYLE', 'popup_monogram_style'); > define('FILENAME_POPUP_IMAGE_SIZE', 'popup_image_size');
define('HEADING_MONOGRAM_STYLE', 'MONOGRAM STYLES') > define('HEADING_IMAGE_SIZE', 'IMAGE SIZE')
and did the same for every other substitution 'MONOGRAM_STYLE' > 'IMAGE SIZE'
popup_monogram_style/tpl_main_page.php >
popup_image_size/tpl_main_page.php

And commented out the extra attibutes out as below.

if (preg_match("/Amazing DVD's/i", $options_name[$i]))
{
$guideLink = '<a href="javascriptpopupWindowPrice(\'' . zen_href_link(FILENAME_POPUP_IMAGE_SIZE) . '\')">(<u>Read Image Size Requirement</u>)</a>';
}
//else if (preg_match("/engraving typestyle/i", $options_name[$i]))
//{
//$guideLink = '<a href="javascriptpopupWindowPrice(\'' . zen_href_link(FILENAME_POPUP_ ENGRAVING_TYPESTYLE) . '\')">(<u>Read Image Size Requirement</u>)</a>';

//}
//else if (preg_match("/embroidery typestyle/i", $options_name[$i]))
//{
//$guideLink = '<a href="javascriptpopupWindowPrice(\'' . zen_href_link(FILENAME_POPUP_ EMBROIDERY_TYPESTYLE) . '\')">(<u>Read Image Size Requirement</u>)</a>';

//}
else
$guideLink = null;
// Image attribute add on ends //////////////////////
?>

10 Jun 2008, 8:05 PM
#37
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,183
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

O,
I need a email address for the updated files. Or pm her to me...
A few changes were made from your above post for a smooth upload..

19 Oct 2008, 10:41 PM
#38
momof2 avatar

momof2

New Zenner

Join Date:
Oct 2008
Posts:
25
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

Hello haredo,
This mod seems like exactly what I need. I've been trying to figure out all the different ways posted on the site, but still not sure what's the best way to go. Would it be easier to manage if I created these as html pages and called them from an EZ-Page? Would I still need to update all the php pages with custom code? I really have to find a solution and I am totally confused about the best route. Thanks!

20 Oct 2008, 6:41 AM
#39
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,183
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

Mom,
I emailed you a zip file of the tiny mod.
Please respond and let me know how she worked..

20 Oct 2008, 1:28 PM
#40
momof2 avatar

momof2

New Zenner

Join Date:
Oct 2008
Posts:
25
Plugin Contributions:
0

Re: Popup Window Via Text Link (Instead Of Image Link)

Thank You for such a fast response!! I will work on this tonight and post a response. Thanks!!!