Page 1 of 2 12 LastLast
Results 1 to 10 of 3041

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Apple Zen Template Support Thread

    Quote Originally Posted by easypcs View Post
    Hi All

    Just been playing about a little and wondered if it is possible to modify the product info page to display the also purchased items underneath the product price/sale, would be in a minimalist way, rather than in the footer like before.

    very small image, selectbox, productname/link, and price illustrated in this pick.

    Example Image: http://www.elwyns-services.co.uk/ima...ct_example.jpg

    I have started to hack the products page a little but starting to get beyond my chopping abilities.

    http://www.elwyns-services.co.uk/dea...roducts_id=184

    Great template, wouldnt have started without it.
    Ok, we'll start by looking at the current source of this section:
    Code:
    <b class="centerBoxHeading">Customers who bought this product also purchased...</b>
        <div class="centerBoxContentsAlsoPurch" style="width:100%;"><a href="http://www.elwyns-services.co.uk/deals/index.php?main_page=product_info&amp;products_id=180"><img src="bmz_cache/0/0cdc9dca6f09acfceff2ad4fe2eb5bb6.image.100x66.jpg" alt="Krug Baumen ADVENTURER" title=" Krug Baumen ADVENTURER " width="100" height="66" style="position:relative" onmouseover="showtrail('bmz_cache/d/db54b77f193108b1577fa44f2d4005d5.image.150x100.jpg','Krug Baumen ADVENTURER',100,66,150,100,this,0,0,100,66);" onmouseout="hidetrail();"  /></a><br /><a href="http://www.elwyns-services.co.uk/deals/index.php?main_page=product_info&amp;products_id=180">Krug Baumen ADVENTURER</a></div>
    
    <br class="clearBoth" />
    you're going to have to get into the template file for this mod that controls the output.

    First, I'd change it so the first line ends up looking something like this (the 'b' should really be changed to 'strong'):

    <strong class="centerBoxHeading" id="alsoPurchased">Customers who bought this product also purchased...</strong>

    adding the: ' id="alsoPurchased"' will make it possible to style that heading separately from other "centerBoxHeading"'s.

    Now, the second line needs the 'style="width:100%;"' removed. This is what is causing the image to take up so much space.

    <div class="centerBoxContentsAlsoPurch" style="width:100%;">

    If you want the image first, you're going to have to do some rearranging.

    As far as making the image small, it seems that image handler is controlling the size of this image? Not sure if that can be adjusted in "configuration", "images", without making other images really small.

  2. #2
    Join Date
    Mar 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Apple Zen Template Support Thread

    Hi Jade,

    I've uploaded all of the contents of the includes/ folder to my server and ALL files are uploaded.

    Would you know what would cause this template to *NOT* appear in the template directory in my admin panel.

    All the files are uploaded, but I'm unable to select the template??

    Regards,
    steve

  3. #3
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Apple Zen Template Support Thread

    Quote Originally Posted by sjt View Post
    Hi Jade,

    I've uploaded all of the contents of the includes/ folder to my server and ALL files are uploaded.

    Would you know what would cause this template to *NOT* appear in the template directory in my admin panel.

    All the files are uploaded, but I'm unable to select the template??

    Regards,
    steve
    If this file were missing, then I'd expect that behavior.

    ==includes/templates/apple_zen/template_info.php

  4. #4
    Join Date
    Jan 2006
    Location
    Kentwood, Louisiana, United States
    Posts
    117
    Plugin Contributions
    0

    Default Re: Apple Zen Template Support Thread

    Hi Jade, I noticed a couple of small things that don't look quite right with Apple Zen Template in these two pages: (signed into the cart as a customer)

    On the address book page...
    http://www.horse-logos.com/address_book.html

    There needs to be just a little more space between the address on the left and the paragraphs on the right. Second paragraph is almost touching the zip code in the address.

    And on the Write a Review page there is no space between the words: 'Written by:" and the name of the person. Also on this same page the radio buttons don't line up with the rating stars.

    How do I go about fixing these issues? Thanks!

  5. #5
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

    Default Re: Apple Zen Template Support Thread

    Hi Jade - I'm having a conflict with a newly installed module in Apple Zen. I don't have this conflict in my standard template that I use for another site, which is also running 1.3.6. (I know - I should upgrade )

    The module is shopping_cart_with_image_sidebox_1.0

    With the module-included tpl_shopping_cart.php installed, all of the text and contents of shopping_cart.php are squeezed into the sidebox. (it ain't pretty!)

    This is hardly an earth-shatteringly important module but if there is an easy fix, I'll sure take it!

    Site in questions is PittiVintage - Link below. (however, the offending module is not installed)

    Thanks - Tim

  6. #6
    Join Date
    Nov 2006
    Posts
    30
    Plugin Contributions
    0

    help question Re: Apple Zen Template Support Thread

    Thx for that small fix, I however have decided to roleback a little as its a little byond my skills to redesign product info totally

    I do however seem to have an issue with a few side boxes when I enable them, which are categories and cart, they both as you can see allign to the right edge.

    http://www.elwyns-services.co.uk/deals/

    I have uploaded enhanced categories mod which highlights the problem more, as I was hopeing to mod this contribution to look like the tabbed horizontal menus.

    The problem is showing with or without enhanced categories contribution.

    Any thoughts on this problem plz.

  7. #7
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Apple Zen Template Support Thread

    Quote Originally Posted by easypcs View Post
    Thx for that small fix, I however have decided to roleback a little as its a little byond my skills to redesign product info totally

    I do however seem to have an issue with a few side boxes when I enable them, which are categories and cart, they both as you can see allign to the right edge.

    http://www.elwyns-services.co.uk/deals/

    I have uploaded enhanced categories mod which highlights the problem more, as I was hopeing to mod this contribution to look like the tabbed horizontal menus.

    The problem is showing with or without enhanced categories contribution.

    Any thoughts on this problem plz.
    #1) (categories) Remove the padding for the categories:

    #categoriesContent {
    text-align:left;
    padding-left:15px;
    }

    #2) (cart) I only see the total right aligned, but to get the total centered, you can change the text align of .cartBoxTotal to center, as below:

    .cartBoxTotal {
    text-align:center;
    font-weight:bold;
    }

  8. #8
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Apple Zen Template Support Thread

    Quote Originally Posted by MeltDown View Post
    Hi Jade - I'm having a conflict with a newly installed module in Apple Zen. I don't have this conflict in my standard template that I use for another site, which is also running 1.3.6. (I know - I should upgrade )

    The module is shopping_cart_with_image_sidebox_1.0

    With the module-included tpl_shopping_cart.php installed, all of the text and contents of shopping_cart.php are squeezed into the sidebox. (it ain't pretty!)

    This is hardly an earth-shatteringly important module but if there is an easy fix, I'll sure take it!

    Site in questions is PittiVintage - Link below. (however, the offending module is not installed)

    Thanks - Tim
    err, I would have to see the issue in action.

  9. #9
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

    Default Re: Apple Zen Template Support Thread

    Quote Originally Posted by jettrue View Post
    err, I would have to see the issue in action.
    OK - I've uploaded the offending file, which is conflicting with shopping_cart.php in Apple Zen only. (I don't have this conflict in my standard template that I use for another site, which is also running 1.3.6.)

    Just put an item in the shopping cart to view the glitch.

    PittiVintage

    The entire module consists of one .php file (tpl_shopping_cart.php) which is placed in:
    Code:
    /public_html/includes/templates/apple_zen/sideboxes/
    I'll include it's contents here for easy viewing:

    Code:
    <?php
    /**
     * Side Box Template
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cartt Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_shopping_cart.php 3056 2006-02-21 06:41:36Z birdbrain $
     */
      $content ="";
    
      if ($_SESSION['cart']->count_contents() > 0) {
      $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
      $content .= '<div id="cartBoxListWrapper">' . "\n" . '<ul>' . "\n";
        $products = $_SESSION['cart']->get_products();
        for ($i=0, $n=sizeof($products); $i<$n; $i++) {
          $content .= '<li>';
    
          if (($_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
            $content .= '<span class="cartNewItem">';
          } else {
            $content .= '<span class="cartOldItem">';
          }
    
          $content .= $products[$i]['quantity'] . BOX_SHOPPING_CART_DIVIDER . '</span><a href="' . zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' . $products[$i]['id']) . '">';
    
          if (($_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
            $content .= '<span class="cartNewItem">';
          } else {
            $content .= '<span class="cartOldItem">';
          }
    
          $content .= zen_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], IMAGE_SHOPPING_CART_WIDTH, IMAGE_SHOPPING_CART_HEIGHT) . '<br>' . $products[$i]['name'] . '</span></a></li>' . "\n";
    
          if (($_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
            $_SESSION['new_products_id_in_cart'] = '';
          }
        }
        $content .= '</ul>' . "\n" . '</div>';
      } else {
        $content = '<div class="sideBoxContent center bold">' . BOX_SHOPPING_CART_EMPTY . '</div>';
      }
    
      if ($_SESSION['cart']->count_contents() > 0) {
        $content .= '<hr />';
        $content .= '<div class="cartBoxTotal">' . $currencies->format($_SESSION['cart']->show_total()) . '</div>';
        $content .= '<br class="clearBoth" />';
      }
    
      if (isset($_SESSION['customer_id'])) {
        $gv_query = "select amount
                     from " . TABLE_COUPON_GV_CUSTOMER . "
                     where customer_id = '" . $_SESSION['customer_id'] . "'";
       $gv_result = $db->Execute($gv_query);
    
        if ($gv_result->fields['amount'] > 0 ) {
          $content .= '<div id="cartBoxGVButton"  class="sideBoxContent"><a href="' . zen_href_link(FILENAME_GV_SEND, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_SEND_A_GIFT_CERT , BUTTON_SEND_A_GIFT_CERT_ALT) . '</a></div>'; 
          $content .= '<div class="sideBoxContent center bold">' . VOUCHER_BALANCE . $currencies->format($gv_result->fields['amount']) . '</div>';
        }
      $content .= '</div>';
      }
    ?>

    Thanks!

  10. #10
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Apple Zen Template Support Thread

    Quote Originally Posted by MeltDown View Post
    With the module-included tpl_shopping_cart.php [from shopping cart sidebox with images] installed, all of the text and contents of shopping_cart.php are squeezed into the sidebox. (it ain't pretty!)

    This is hardly an earth-shatteringly important module but if there is an easy fix, I'll sure take it!
    Hi Tim

    As I previously sent you to Jade for an answer on an Apple Zen-specific question, I hope that Jade won't mind if I leap in to address a question which is not specific to Apple Zen.

    I believe that the problem you have arises arises as a result of version 1.0 of the sidebox shopping cart with image mod being based on a buggy version of the standard sidebox shopping cart and therefore carrying these bugs forward. Jade was right about it opening one too many divs, but under different circumstances it could, at least in theory, close more divs than are open.

    The Zen Cart bugs were fixed in version 1.3.6 (I believe) and I have reworked the mod with that solution and submitted it as a contribution. Look out for version 1.1 which, fingers crossed, is hopefully the easy fix that you would leap at.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Zen Lightbox addon [Support Thread]
    By Alex Clarke in forum All Other Contributions/Addons
    Replies: 3726
    Last Post: 2 Feb 2026, 06:28 PM
  2. Cherry Zen Template Support Thread
    By jettrue in forum Addon Templates
    Replies: 3250
    Last Post: 13 Nov 2017, 08:02 PM
  3. v151 Zen Magnific Support Thread
    By mutinyzoo in forum All Other Contributions/Addons
    Replies: 79
    Last Post: 14 Sep 2015, 04:39 AM
  4. Simple Zen Template - Support Thread
    By jettrue in forum Addon Templates
    Replies: 461
    Last Post: 27 Apr 2013, 01:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg