Show Posts


Messages - JHammond53

Pages: 1 2 [3]
31
Support / Re: Need to create a POPUP
« on: November 14, 2013, 09:17:21 AM »
That works, but careful on upgrades if this file is part of update script.

I have also achieved it by creating a block and applying to home layout page per your first comment and it works the same as the second option I posted. Its just a more permanent effect if an upgrade were to happen like you said. His response to your first post was that it seemed too difficult (IMO easier than the options I gave).

Paul, if you want to have a more permanent option do the following:
   1.   Log into the admin side of the cart, browse to Design -> Blocks
   2.   Click on the "Insert" icon to the right of the page
   3.   Give your popup a name and title
   4.   Add the following code to the custom block content (make sure you click "Source" to enter the code side of the editor)
         <script>
         $(document).ready(function(){
            testwindow = window.open("URL HERE", "mywindow", "location=1,status=1,scrollbars=1,width=500,height=500");
            testwindow.moveTo(0, 0);
         });
         </script>


   5.   Click Save, then browse to Design -> Layouts
   6.   On the left, click Home Page
   7.   At the top, find a slot that has "--- None ---" and click the drop down. Find "html_block:: YOUR POPUP NAME" 
   8.   Click Save.
   9.   Try it out

32
Support / Re: Need to create a POPUP
« on: November 13, 2013, 02:46:09 PM »
Paul,

Here are 2 different options to achieve what you want

Browse to the following file public_html  ->  storefront  ->  view  ->  default_html5  ->  template  ->  pages  ->  index  ->  home.tpl

Modify home.tpl with the following code.



OPTION 1 -> Popup alert (just a string of text) (won't be blocked by pop up blockers)

Blue is existing
red is new code
purple is where you put your message


<section class="container">
   <div class="welcome_msg">
      <?php echo $welcome; ?>
   </div>
</section>


<script>
  $(document).ready(function(){
    alert('MESSAGE HERE');
  });
</script>




OPTION 2 -> Popup window (opens url) (will be blocked by pop up blockers)

Blue is existing
red is new code
purple is where you put URL


<section class="container">
   <div class="welcome_msg">
      <?php echo $welcome; ?>
   </div>
</section>


<script>
  $(document).ready(function(){
    testwindow = window.open("URL HERE", "mywindow", "location=1,status=1,scrollbars=1,width=100,height=100");
    testwindow.moveTo(0, 0);
  });
</script>

33
Good to hear that you guys had a fix for it already! I was sure there'd already be a fix out there but then after looking at a few sites built by others I began to wonder. I've done other code changes inside my category.tpl prior to realizing things weren't centering so a simple copy-paste wouldn't do it for me anyway.

It seems as if a lot of bugs have been worked out, its just hard locating the fix sometimes.

34
The latest version and HTML5 template. It wasn't centered for me using google chrome. I tested this outside of my site by viewing the demo and others' pages as well with none of them being centered for me.

EDIT: Here is one of the sites that don't center for me. I can't add links but its     bubblegum-web.com/index.php?rt=product/category&path=65

EDIT 2:  I just tested that same site using Firefox (outdated) and IE9 and neither one was centered??

35
When on a category page viewing all of the subcategories, the images do not line up with the titles below them. I am not sure if a fix has been posted yet so here is the fix that works for me.

You will need to modify the following file "public_html --> storefront --> view --> default_html5 --> template --> pages --> product --> category.tpl"

Lines 15-26 of the original category.tpl file should read as follows:

   <ul class="thumbnails row">
       <?php for ($i = 0; $i < sizeof($categories); $i++) { ?>
        <li class="span2">
          <a href="<?php echo $categories[ $i ][ 'href' ]; ?>">
             <?php echo $categories[ $i ][ 'thumb' ][ 'thumb_html' ]; ?>
          </a>
          <div class="span2">
          <a href="<?php echo $categories[ $i ][ 'href' ]; ?>"><?php echo $categories[ $i ][ 'name' ]; ?></a>
          </div>
       </li>
       <?php } ?>
   </ul>


Replace these lines with the following code:

   <ul class="thumbnails row">
       <?php for ($i = 0; $i < sizeof($categories); $i++) { ?>
        <li class="span2">
          <center><a href="<?php echo $categories[ $i ][ 'href' ]; ?>">
             <?php echo $categories[ $i ][ 'thumb' ][ 'thumb_html' ]; ?>
          </a></center>
          <center><div style="text-align:center;">
          <a href="<?php echo $categories[ $i ][ 'href' ]; ?>"><?php echo $categories[ $i ][ 'name' ]; ?></a>
          </div></center>
       </li>
       <?php } ?>
   </ul>


All changes have been marked with the color red if you want to just add the fix I used instead of replacing the entire code snippet.

36
Customization help / Re: PHP Code inside CKEditor
« on: November 06, 2013, 06:59:51 AM »
I got it to add the code properly, but its not being executed...when I "view source" it shows the actual php code instead of the executed code.

Until we can find a solution I created a seperate page and calling it in via an iFrame through CKEditor.

37
Customization help / PHP Code inside CKEditor
« on: November 05, 2013, 10:25:47 AM »
I am trying to add php code inside of the description box of categories. Is there a way to allow PHP Code inside this CKEditor? I have attempted to add

config.protectedSource.push(/<\?[\s\S]*?\?>/g);

into the config.js file that is located in /public_html/admin/view/default/javascript/ckeditor

 Every time I try to use php code with <?php it is being changed to <!--?php or &lt;?php


38
Built-in Features / Fancybox?
« on: November 04, 2013, 09:11:12 AM »
I have noticed that Fancybox is being referenced in code quite a few times, but where is it being used? I would like to use fancybox in place of the thickbox if possible.

39
New Features Discussion / Product Name -> Short Description
« on: November 01, 2013, 03:21:51 PM »
On the backend product edit page, there should be a box for a short description under the product name. This short description would show under the product name on the front end of the website.

I am finding a need to enter a short description about the product (just a few words) and would like it seen when browsing products. This short description, in my instance, would be used to show certain options that could be added to that specific package (as of right now options would be unknown without viewing product itself). Without customers knowing about the options available they may move on past certain products they are actually looking for.

This could be a smaller font and/or not all caps.

Pages: 1 2 [3]

Powered by SMFPacks Social Login Mod