Results 1 to 10 of 15

Hybrid View

  1. #1

    Default Re: CEON URI with custom sidebox , embedded links not "working" but did

    It doesn't work It's still showing the default link and not changing. I was thinking of maybe trying a different way to get it to display, by adding extra description fields to the products/categories in admin, then having the editable sidebox call the information in that field? I'm thinking that may be easier as it doesn't involve hard coding each statement into the sidebox. On this page I've added it under more information:http://www.drgreens.co.uk/Environmen...-Odour-Control And it is called in the product_info template with this statement: <?php if($extra_field!='') {
    echo '<li>'.$extra_field . '</li>';
    } ?> Can't figure out how to get the sidebox to call it though. Do you think that way would work better? Still not sure what is going on with the URL rewrite not allowing me to call it though. My mind is boggled

  2. #2
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: CEON URI with custom sidebox , embedded links not "working" but did

    Quote Originally Posted by kitten091182 View Post
    It doesn't work
    Let's start by checking variables. Let's output inside the sidebox the content of some variables (so you can visible see what is populated and what is in the actual variables when browsing your site). You will not want to use / leave these code changes on a production site.

    Add the stuff in red to the START of the file:
    Code:
    <?php
    /**
     * editable sidebox - allows a sidebox editable with the define pages editor to be added to your site
     *
     * @package templateSystem
     * @copyright 2007 Kuroi Web Design
      * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: blank_sidebox.php 2007-08-10 kuroi $
     */
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
    // Let's see what is currently in $current_page and $cPath
    ?><div>Current Page: <?php echo $current_page; ?></div>
    <div>Current cPath: <?php echo $cPath; ?></div><?php
    // Let's see what is currently populated in $_GET
    ?><pre><?php var_dump($_GET); ?></pre><?php
    if ($_POST['cPath'] == '75') {
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  3. #3
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: CEON URI with custom sidebox , embedded links not "working" but did

    Quote Originally Posted by lhungil View Post
    Let's start by checking variables. Let's output inside the sidebox the content of some variables (so you can visible see what is populated and what is in the actual variables when browsing your site). You will not want to use / leave these code changes on a production site.

    Add the stuff in red to the START of the file:
    Code:
    <?php
    /**
     * editable sidebox - allows a sidebox editable with the define pages editor to be added to your site
     *
     * @package templateSystem
     * @copyright 2007 Kuroi Web Design
      * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: blank_sidebox.php 2007-08-10 kuroi $
     */
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
    // Let's see what is currently in $current_page and $cPath
    ?><div>Current Page: <?php echo $current_page; ?></div>
    <div>Current cPath: <?php echo $cPath; ?></div><?php
    // Let's see what is currently populated in $_GET
    ?><pre><?php var_dump($_GET); ?></pre><?php
    if ($_POST['cPath'] == '75') {
    And by the way, I used Super Globals on my own site, and saw that the $_GET is populated with cPath even though I too have the CEON URI installed... So the method recommended by lhungil should reveal the information necessary to get through this. Although I had started this response yesterday, I hadn't finished it until now... Any luck with getting your sidebox to work?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v139h Ceon URI Mapping (SEO) with Custom Pages
    By p-plater in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 31 Mar 2014, 04:42 PM
  2. v150 "Ceon URI Mapping": show the manufacturer name on urls of products pages
    By matteoraggi in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 11 Oct 2012, 02:16 PM
  3. Lite red template not showing "important links" sidebox
    By ambitn in forum Addon Templates
    Replies: 7
    Last Post: 7 Jun 2010, 03:19 PM
  4. Custom "Add To Cart" button not working with attributes in product listing
    By DrLivingston in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 7 Dec 2009, 10:09 PM
  5. The "Home" links not working
    By bluealice in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Sep 2007, 02:28 PM

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