- Posts: 332
- Thank you received: 6
W3C HTML5 Validation problem
- LukeDouglas
-
Topic Author
- Offline
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.33
-- Browser(s) name and version -- : Multiple
-- Error-message(debug-mod must be tuned on) -- : Errors found while checking this document as HTML5!
baylissgallery.com
On the W3C validation for BaylissGallery.com ( W3C Validation Link ), we are getting an iframe error on the HikaShop Content Module for the Featured Product.
Could you implement HTML5 compliant changes in your next update?
Here is the error message:
Please Log in or Create an account to join the conversation.
I am sorry but for the errors you got ; we can't.
The "rel handler" you have is the mootools lightbox system which is provided by Joomla itself.
You can see to switch to another lightbox system for your popup and your image popup (like "bootstrap" and "shadowbox") but you have to be sure that your template it compatible with.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- LukeDouglas
-
Topic Author
- Offline
- Posts: 332
- Thank you received: 6
I installed Mootools Enabler / Disabler and enabled all disabling of Mootools but that didn't work. Any other suggestions?
Luke
Please Log in or Create an account to join the conversation.
- LukeDouglas
-
Topic Author
- Offline
- Posts: 332
- Thank you received: 6
One of the Joomla admins stated this:
The possible "a rel" values are listed here: www.w3schools.com/tags/att_a_rel.asp
Hikashop is using this value: "{handler: 'iframe',size: {x: 480, y: 140}}"
This has nothing to do with MooTools, it's a problem with Hikashop. They just shouldn't assign this value to "rel".
A workaround would be to modify Hikashop's core to address this problem.
Please Log in or Create an account to join the conversation.
Please read carefully what I wrote
I never wrote that it was mootools, but I wrote it was "mootools lightbox system" ; it means that it is a lightbox system which use mootools.The "rel handler" you have is the mootools lightbox system which is provided by Joomla itself.
There is a nuance which had his importance.
So, if you read the rest of my message, I wrote that you have to use another popup system in HikaShop.
Please follow my indications.
The mootools modal (SqueezeBox) is provided by the javascript file "/media/system/js/modal.js" and is available since Joomla 1.5 and is still available in Joomla 3.4.
The only (and unique) way to use that SqueezeBox is to put a rel on a "a" link.
The other solution is to use another popup system ; like I suggested you in my previous message.
API Joomla for JHTML::_('behavior.modal')
api.joomla.org/cms-3/classes/JHtmlBehavior.html#method_modal
More details about the API of behavior.modal
api.joomla.fr/joomla25/d1/d74/classJHtml...5128b86e49164b9b7a5d
Example of use of modal in Joomla from docs.joomla website:
docs.joomla.org/Creating_a_modal_form_field
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- LukeDouglas
-
Topic Author
- Offline
- Posts: 332
- Thank you received: 6
Please Log in or Create an account to join the conversation.
The notice popup of the add to cart buttons always use the mootools popup system for now even if you change that setting.
In order to avoid that, you would have to change the "when a product is added to the cart" option of the HikaShop configuration so that it doesn't display the notice popup.
And that will remove that warning from the w3c validator.
Note that it is not because the w3c validator says that it is not valid that it means that it is a problem. The rel attribute used by the mootools popup system has been used a whole decade on many websites and works fine, and doesn't create any problem.
Please Log in or Create an account to join the conversation.
- LukeDouglas
-
Topic Author
- Offline
- Posts: 332
- Thank you received: 6
I looked at all of the configuration options but could not find the "when a product is added to the cart" or I might be blind. Which configuration tab is it under?
Also, I know that websites work just find that do not validate correctly as I've used validation for well over a decade. However, I do have some clients that 'require' that their sites validate. I don't want to close a client because of this issue.
Luke
Please Log in or Create an account to join the conversation.
The exact name is "After a product is added to the cart". It's in the main tab.
Please Log in or Create an account to join the conversation.
- LukeDouglas
-
Topic Author
- Offline
- Posts: 332
- Thank you received: 6
Please Log in or Create an account to join the conversation.
Please read carefully the Nicolas' message.The exact name is "After a product is added to the cart". It's in the main tab.
hint : you're not in the right tab.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- LukeDouglas
-
Topic Author
- Offline
- Posts: 332
- Thank you received: 6
Any other ideas?
Please Log in or Create an account to join the conversation.
I see that the code was changed in the add to cart system in order to fix something else which changed that behavior.
Change the line:
if($redirect=='ask_user' || hikashop_loadUser() == null){
to:
if($redirect=='ask_user'){
in the file administrator/components/com_hikashop/helpers/cart.php and that will remove that.
Please Log in or Create an account to join the conversation.
- LukeDouglas
-
Topic Author
- Offline
- Posts: 332
- Thank you received: 6
That fixed it! Thanks.
However, you indicated that the code was original changed to fix something else. Would changing this code re-create a problem that the original code fixed? I would much rather have a 'validation' problem than to break the shopping cart from functioning properly.
Luke
Please Log in or Create an account to join the conversation.
The commit that Nicolas pointed include several modifications and that specific modification might not be kept.
So I think that the revert that Nicolas wrote will be include in the next HikaShop release.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
We are not opposed to, and we are already proposing "shadowbox" in the image lightbox systems
But if you have good solutions for the "content" popup system we are open to suggestions.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.