Jump to content

Lynne in NY

Member
  • Content Count

    66
  • Joined

  • Last visited

Community Reputation

0 Neutral

Profile Information

  • Gender
    Female
  • Location
    Rochester, New York
  1. I was thinking that yes, the javascript should work as I am creating the document in CubeCarts admin. Though I can't see it as anything other than admin until I make it live and link to it. So It's a "test" document, but I haven't included it beyond what I can open within the admin, which is where the content does not work. So in other words ... if you go back to where I posted the source code, that was the code I entered in the "test" document. But then I changed it around to meet the requirements you mentioned, and it still didn't work when viewing in Admin. But now I've backed out all my changes that you mentioned so that all is left is just str8 HTML in the "test" document and in the actual document. Frankly? I gave up trying to be "cool" and just went with "yawn" in order to get the information out there asap in a format that worked. SO the original "Notepad" code (content abbreviated) is this, that I copied into a document as source code, it works as an external HTML file: <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .collapsible { background-color: #777; color: white; cursor: pointer; padding: 18px; width: 100%; border: none; text-align: left; outline: none; font-size: 15px; } .active, .collapsible:hover { background-color: #555; } .content { padding: 0 18px; display: none; overflow: hidden; background-color: #f1f1f1; } </style> </head> <body> <p><span style="font-size:16px;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: rgb(255, 255, 255);"><strong><a href="http://aucontrairearts.com/index.php" target="_self">Home</a></strong>&nbsp;&nbsp;&nbsp;<strong> <a href="http://aucontrairearts.com/about-us.html" target="_self">About Us</a></strong>&nbsp;&nbsp;&nbsp; <strong><a href="http://aucontrairearts.com/contact-us.html" target="_self">Contact</a></strong> </span></span></span></p> <p><img alt="" src="http://aucontraireart.com/images/homepagecollage.jpg" /><br /> <p><h2>Questions about Inventory</h2>Click on a question to open or close it.</p> <button type="button" class="collapsible">Are Items that are out of stock going to be back in stock soon?</button> <div class="content"> <p>Items that are unique one-of-a-kind pieces can not be replenished, <br />although you may find similar pieces still available here and there. <br /><br /> Items that are out of stock temporarily will be replenished as soon as possible <br />depending on materials, supplies and artist availability.</div> <button type="button" class="collapsible">How do I find who the artist is for a piece?</button> <div class="content"> <p>On the page that displays the product details, click on the "Specification" tab. <br />That will show you the Artists name and the in stock quantity.</div> <p><h2>Questions about Orders</h2>Click on a question to open or close it.</p> <button type="button" class="collapsible">Do I have to pay sales tax?</button> <button type="button" class="collapsible">Why did my order get cancelled?</button> <div class="content"> <p>Probably due to non-payment. Because our inventory has so many one of a kind pieces <br />or very limited stock, we expect that payment will be made within 10 days of initiating an order. <br />After 10 days we cancel the order so that the unpaid for pieces can be returned to stock and <br />be available to other buyers. </div> <p><h2>Questions about Shipping</h2>Click on a question to open or close it.</p> <button type="button" class="collapsible">Do you ship outside the USA?</button> <div class="content"> <p>Not through the online store, but if you want to order something contact us <br /> directly to arrange for placing an order and shipping. In this case, the cost of the<br /> order will be reduced by the default shipping costs, and the new shipping costs will be added.</div> <script> var coll = document.getElementsByClassName("collapsible"); var i; for (i = 0; i < coll.length; i++) { coll.addEventListener("click", function() { this.classList.toggle("active"); var content = this.nextElementSibling; if (content.style.display === "block") { content.style.display = "none"; } else { content.style.display = "block"; } }); } </script> </body> </html>
  2. Oh. Geez.... you're right and I've gone code blind. So, do you think that is why the .js code wasn't executing properly? If so, I'll go through the motions of trying to get it to work using this version of the js file. If you don't think that was the problem, then... I need to to carry on, and move along!
  3. A thought: Is it possible that we are downloading from 2 different servers and one is not like the other?
  4. Okay, I just went through the steps again and took screen snaps. When I was prompted to overwrite the files I chose "Yes to all", but I am still getting different results than you are. What on earth is going on??
  5. ??? I don't know what to say. Are we downloading 2 different things??? The version I dowloaded today (3/8/2020) says the date of the download zip is as of 2/27/2020. Is your version different from that date? p.s. The original problem kind of doesn't matter to me anymore, I hand coded a less sophisticated document that works.
  6. Ruh-ohhhh. I downloaded the 6.2.9 zipped file, and the same issue is there.
  7. I'm a twitch confused about your concern... those lines of code are not changes I made, those are the original lines. I've never before done anything to change that file. What is it that concerns you?
  8. OMG! I just realized the changes I made above took the whole store down outside of Admin. So I backed it all out. Error log: [<strong>Exception</strong>] /home2/************/public_html/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:6 - Syntax error in template "file:/home2/***********/public_html/skins/foundation/templates/element.js_head.php" on line 6 "{foreach from=$HEAD_JS item=js}{$js}{/foreach}" too many shorthand attributes
  9. I'm not using Jquery's UI accordian, mine is hand coded, but it looks and behaves (outside of cubeart) exactly like the list in the link you sent to me. When I cut and paste the code into a document (under CubeCarts Documents admin), it displays the list, but it doesn't "fire". Everything is static. That is why I wanted to execute the code outside of the CubeCart documents as an HTML file that would have all the usual skin elements around it. So... if you look at the source code for the list in the link you sent me, that's pretty close to the code in my .html file. So I'm not clear, still, how exactly do I put the code into a "wrapper"? I took these actions, what did I miss?: 1) Added a line to the element.js_head.php (in red): {assign var=js_head value=[ 'skins/{$SKIN_FOLDER}/js/vendor/modernizr.js', 'skins/{$SKIN_FOLDER}/js/vendor/jquery.js', 'skins/{$SKIN_FOLDER}/js/vendor/collapsible.js']} {combine input=$js_head output='cache/js_head.{$SKIN_FOLDER}.js' age='604800' {combine input=$js_head output='cache/js_head.{$SKIN_FOLDER}.js' age='604800' debug=$CONFIG.debug||!$CONFIG.cache} {foreach from=$HEAD_JS item=js}{$js}{/foreach} 2) Added the .js file "jquery.collapsible.js" to the skin's /js/vendor/ folder. The file contents is: /* * jQuery Collapsible Plugin v1.0 * Copyright 2020 LynSys Software Services */ var coll = document.getElementsByClassName("collapsible"); var i; for (i = 0; i < coll.length; i++) { coll.addEventListener("click", function() { this.classList.toggle("active"); var content = this.nextElementSibling; if (content.style.display === "block") { content.style.display = "none"; } else { content.style.display = "block"; } }); } 3) Created a new Document in admin and cut and pasted the HTML & Script code (partial example): <meta name="viewport" content="width=device-width, initial-scale=1"> <style type="text/css">.collapsible { background-color: #777; color: white; cursor: pointer; padding: 18px; width: 100%; border: none; text-align: left; outline: none; font-size: 15px; } .active, .collapsible:hover { background-color: #555; } .content { padding: 0 18px; display: none; overflow: hidden; background-color: #f1f1f1; } </style> <p>&nbsp;</p> <h2>Questions about Inventory</h2> <p>Click on a question to open or close it.</p> <p>&nbsp;</p> <p><button class="collapsible" type="button">Are Items that are out of stock going to be back in stock soon?</button></p> <div class="content"> <p>Items that are unique one-of-a-kind pieces can not be replenished,<br /> although you may find similar pieces still available here and there.<br /> <br /> Items that are out of stock temporarily will be replenished as soon as possible<br /> depending on materials, supplies and artist availability.</p> </div>
  10. (I wish the "Notify me of replies" button was available for the original posts.)
  11. I have a collapsible list of information that I want to use as a customized document, and it works as a straight HTML file, but when I copy the code to a new document via the "source" view it doesn't execute (the collapses don't work). I can see that the jquery code is not executing, so I thought I would just add the HTML file and link to it, but I would like to use a kind of "wrapper" that would include the site header/footer, nav bar, etc. What would be the best approach to do that? Or better yet, is there something I can tweak so that the code will execute from within the new document? (I wish the "Notify me of replies" button was available for the original posts.)
  12. Thank you so much! A "theory matrix"... that sounds like something I'd be really intrested in, looking forward... but no rush on this especially if others have more urgent problems!
  13. Error log is empty. The System Error log has some errors from November, but nothing that seems related to this problem. ...this might have some odd connection to another problem we've had since a few days after installation where when closing the store from Admin doesn't work, and going to the store from Admin in some browsers, the pictures that "live" in the images directory don't display. We never figured that one out, either... but since it only affected us and not our customers we didn't burn a whole lot oil on it. But it seems like whatever controller is suppose to recognize Admins kind of doesn't. Also, don't know if this helps or not, it happens (still) on a brand new W10 box that just got set up about 3 weeks ago.
  14. Yes, this problem has been since installation. I am the provider (reseller on HostGator). I have quite a few customers with similar php scripts running, the problem doesn't exist elsewhere. I could expand the space allocation, we're at 73% max... but that makes no sense as the problem was before any content ever got added. Also, this happens on all browsers (Chrome, Firefox, IE, Puffin, Seaamonkey, Safari), and all devices. Puzzling....
  15. Thanks for that info! But... if the default is 604800 seconds, and there are 3600 seconds in an hour, that's 168 hours. We're timing out on the Administrators pages at around 10-15 minutes of idle time?
×
×
  • Create New...