Totally Zenned
- Join Date:
- Feb 2009
- Location:
- UK
- Posts:
- 1,326
- Plugin Contributions:
- 0
Post #61 by simon1066
You know what, I was almost there but your way is perfect. Thank you.
Simon
Totally Zenned
You know what, I was almost there but your way is perfect. Thank you.
Simon
Totally Zenned
A problem I have with applying ZM to popups is getting it to automatically adjust its height to popups of varying sizes.
As I see it the global height of popups is determined by padding-top of .mfp-iframe-scaler class.
I've seen elsewhere online mention of specifying height in the autoload functions and using a different function for each popup, although I haven't worked out how to do this yet.
Perhaps there's an easier way?
Simon
Totally Zenned
1.) You can create separate functions for each iframe and apply a wrapper
Example
$('.pop1').magnificPopup({
type: 'iframe',
iframe: {
markup: '<div style="width:500px; height:200px;">'+
'<div class="mfp-iframe-scaler" >'+
'<div class="mfp-close"></div>'+
'<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+
'</div></div>'
}
});
2.) You could use CSS to apply the height (same height applies to all iframes on page)
body#shoppingcartBody .mfp-iframe-scaler iframe.mfp-iframe {height:260px;}
3.) You could wait till I document and package! :smile:
simon1066:
A problem I have with applying ZM to popups is getting it to automatically adjust its height to popups of varying sizes.
As I see it the global height of popups is determined by padding-top of .mfp-iframe-scaler class.
I've seen elsewhere online mention of specifying height in the autoload functions and using a different function for each popup, although I haven't worked out how to do this yet.
Perhaps there's an easier way?
Totally Zenned
Thanks for your reply.
I'm also experimenting with using css to display the popup information, rather than having the delay of loading a new page.
I'll check out your upcoming mod release and compare the two.
Cheers
Simon
Simon
Totally Zenned
The downside to this is you will literally have to copy the popup windows tpl file contents to the same page displaying the popup link along with moving all the language files. These are very doable just a pain in the a** when it comes to changing templates or doing future upgrades to zen-cart.
An iframe popup takes no longer than a popup window and on some phones and tablets the popup windows are displayed as new pages all together.
Again just my 2 cents and something to think about.
simon1066:
Thanks for your reply.
I'm also experimenting with using css to display the popup information, rather than having the delay of loading a new page.
I'll check out your upcoming mod release and compare the two.
Cheers
Simon
Totally Zenned
I'm not sure I'm thinking of this the same way as you.
The css popup I'm considering, using 'hover,' would involve just putting a call to the popup_search_help language file, for example, in tpl_advanced_search_default.php and CSS appropriately. This would give an instant popup on hover over the Search Help [?] link, whereas a Zen Magnific popup would always involve a page load.
My main thinking is to use popups more extensively to convey information on mobile devices. Hover seems to work in Android touch environment ok but I've still to test on IOS.
Simon
Totally Zenned
Has anyone tested this mod with events calendar which displays as an iframe in a sidebox with its own dimensional settings?
PS RBarbour wishing you well.
New Zenner
Yes, DivaVocals. Please do and thank you!
DivaVocals:
Not to be nitpicky, but the description of this module states:
Alex Clarke and NieStudio are in fact TWO different people not one and the same.. Alex Clarke is one of the original author's of Zen Lightbox. NieStudio (who's name is Daniel) took over the care and upkeep of Zen Lightbox, and then eventually developed and released Zen Colorbox..If you do not mind I am going to ask the admins to correct the description a tad to reflect the name correction..:smile: Since I worked with Daniel on the testing and documentation of Zen Colorbox, I just think he deserves credit where credit is due..
New Zenner
dw08gm:
Has anyone tested this mod with events calendar which displays as an iframe in a sidebox with its own dimensional settings?
I have not, but would be curious to know if there is a conflict. I would imagine not, since this doesn't use an iframe, but javascript.
Totally Zenned
Looking for code to apply to the various popup pages eg info_shopping_cart. Struggling to work out which files to edit with what. Thanks
New Zenner
dw08gm:
Looking for code to apply to the various popup pages eg info_shopping_cart. Struggling to work out which files to edit with what. Thanks
Do you mean so that the magnific pop-up happens on those other pages?
Totally Zenned
Yes, to replace the default popup method. There are rumours that zen-colorbox can handle this, but I have yet to see it working. At this stage I am only canvassing alternative methods.
Totally Zenned
dw08gm:
Yes, to replace the default popup method. There are rumours that zen-colorbox can handle this, but I have yet to see it working. At this stage I am only canvassing alternative methods.
Let's be VERY clear here.. The current Zen Colorbox module DOES NOT include code for HTML popups because no one has written it yet.. Daniel STARTED writing this code, but as I explained to you it is beta, untested, and UNFINISHED code.. (it's also available for ANYONE who wants to finish it) This is not the same as not possible.. it's just not done.. and YES Zen Colorbox COULD handle this (if the code was written for it) because it's underlying libray (colorbox) can display images AND CONTENT within a lightbox..
Zen Magnific ALSO uses colorbox as it's underlying library.. So if someone has written code to convert all the default Zen Cart popups to display in a lightbox for Zen Magnific, then yes you could use Zen Magnific to display the Zen Cart popups inside a lightbox. and if someone DOES have this code, I'm guessing that the same code would probably work with Zen Colorbox too since BOTH modules use the SAME underlying colorbox library..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Totally Zenned
numptydave:
When will the v2 be available? All I can find to download is the 1.6 version.
Thanks in advance.
v2.0 has been done for quite some time now but will not be released as v2.0, sorry
All demos can be seen via the link in post #50
However v1.7 will be uploaded today!
New Features
dw08gm:
Has anyone tested this mod with events calendar which displays as an iframe in a sidebox with its own dimensional settings?
PS RBarbour wishing you well.
dw08gm:
Looking for code to apply to the various popup pages eg info_shopping_cart. Struggling to work out which files to edit with what. Thanks
Thank you,
Zen Magnific Lightbox for Popup Windows will be uploaded today as a separate mod.
New Features
New Admin Configs
DivaVocals:
Zen Magnific ALSO uses colorbox as it's underlying library.. So if someone has written code to convert all the default Zen Cart popups to display in a lightbox for Zen Magnific, then yes you could use Zen Magnific to display the Zen Cart popups inside a lightbox. and if someone DOES have this code, I'm guessing that the same code would probably work with Zen Colorbox too since BOTH modules use the SAME underlying colorbox library..
Nicely put! :bigups:
Totally Zenned
rbarbour:
Zen Magnific Lightbox for Popup Windows will be uploaded today as a separate mod.
New Features
- Comes with latest version jQuery
- Option to use packaged jQuery, jQuery CDN or none (for those already using jQuery) or upgraded to Zen Cart 1.5.4
- Option to use on all ZC stock popup windows
- Optional per Popup iFrame Dimensional Settings
New Admin Configs
- Use Magnific Lightbox for Shopping Cart [help (?)] Popup
- Set Magnific Lightbox iFrame Dimensions for Shopping Cart [help (?)] Popup
- Use Magnific Lightbox for Checkout Shipping Estimator Popup
- Set Magnific Lightbox iFrame Dimensions for Checkout Shipping Estimator Popup
- Use Magnific Lightbox for Checkout Coupon Help Popup
- Set Magnific Lightbox iFrame Dimensions for Checkout Coupon Help Popup
- Use Magnific Lightbox for Checkout Credit Card CVV Help Popup
- Set Magnific Lightbox iFrame Dimensions for Checkout Credit Card CVV Popup
- Use Magnific Lightbox for Log-In Page [More Info] Popup
- Set Magnific Lightbox iFrame Dimensions for Log-In Page [More Info] Popup
- Use Magnific Lightbox for Product Info Attributes Qty Price Popup
- Set Magnific Lightbox iFrame Dimensions for Product Info Attributes Qty Price Popup
- Use Magnific Lightbox for Advanced Search Search Help [?] Popup
- Set Magnific Lightbox iFrame Dimensions for Advanced Search Search Help [?] Popup
- jQuery Options
- Lightbox Zoom In/Out Setting
KUDOS to you for making this a SEPERATE module.. This way shopowners can install lightboxes when/where they want to. Plus I have a gut feeling that this module will give current Zen Colorbox users the ability to add this feature too..
rbarbour:
Nicely put! :bigups:Thanks! :smile:
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
New Zenner
Very much looking forward to it. Thank you!
Totally Zenned
I'm using Stock By Attributes with the jquery to change image 'SBA_ProductImage' on selection change. This changes the product image according to the attribute selected.
Zen Magnific popup displays the main product image and additional images, not the attribute images.
Is there a method where by the attribute images can be displayed in the popup?
Simon
Totally Zenned
Yes, it can be done!
I don't have the time to go into detail but look in the additional_images.php module file, magnific popup only uses a div to determine what images are displayed in the light-box.
Thanks,
ZCAdditions
simon1066:
I'm using Stock By Attributes with the jquery to change image 'SBA_ProductImage' on selection change. This changes the product image according to the attribute selected.
Zen Magnific popup displays the main product image and additional images, not the attribute images.
Is there a method where by the attribute images can be displayed in the popup?
Zen Follower
When I try to run the second SQL query in the install files:
INSERT INTO admin_pages (page_key ,language_key ,main_page ,page_params ,menu_key ,display_on_menu ,sort_order)VALUES
('configZenMagnific', 'BOX_CONFIGURATION_ZEN_MAGNIFIC', 'FILENAME_CONFIGURATION', CONCAT('gID=',@cgi), 'configuration', 'Y', @cgi);
I get this error message in PHPmyAdmin:
#1146 - Table 'italbags_1540915.admin_pages' doesn't exist
When I look at the database through PHPmyAdmin, the table does exist there.
If I run the same from the ZC 'Install SQL patches', I get this:
WARNING: An Error occurred, please refresh the page and try again.
Should I be trying to install this to 1.54? The first bunch of queries runs OK.
Zen Follower
I can see what the problem is - the database.
Tell staff why this post should be reviewed.