Forums / Templates, Stylesheets, Page Layout / Shopping Cart sidebox - "shopping cart [more]"

Shopping Cart sidebox - "shopping cart [more]"

Locked

Started by brf123 on 1 May 2008, 9:00 PM · Views: 1,292

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
1 May 2008, 9:00 PM
#1
brf123 avatar

brf123

New Zenner

Join Date:
Nov 2005
Posts:
33
Plugin Contributions:
0

Shopping Cart sidebox - "shopping cart [more]"

I changed the shopping cart sidebox heading to an image. As a result want to move the text "shopping cart [more]" to the bottom below the items added to the cart. I can not for the life of me figure out where this title is. Can anyone help point me in the right direction? Thanks!

1 May 2008, 9:16 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Shopping Cart sidebox - "shopping cart [more]"

brf123:

I changed the shopping cart sidebox heading to an image. As a result want to move the text "shopping cart [more]" to the bottom below the items added to the cart. I can not for the life of me figure out where this title is. Can anyone help point me in the right direction? Thanks!

B,
Use the override system when you play..

includes/ modules/ sideboxes/ more_information.php

copy this file to:
includes/ modeules/ sidboxes/ your_template_name/ more_information.php

<?php
/**
 * more_information sidebox - displays list of links to additional pages on the site.  Must separately build those pages' content.
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: more_information.php 3464 2006-04-19 00:07:26Z ajeh $
 */

// test if box should display

  unset($more_information);

// test if links should display
  if (DEFINE_PAGE_2_STATUS <= 1) {
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
  }
  if (DEFINE_PAGE_3_STATUS <= 1) {
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>';
  }
  if (DEFINE_PAGE_4_STATUS <= 1) {
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>';
  }

// insert additional links below to add to the more_information box
// Example:
//    $more_information[] = '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . 'TESTING' . '</a>';


// only show if links are active
  if (sizeof($more_information) > 0) {
    require($template->get_template_dir('tpl_more_information.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_more_information.php');

    $title =  BOX_HEADING_MORE_INFORMATION;
    $title_link = false;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
  }
?>

I believe this is the file you will need to recalculate the .php coding..

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

1 May 2008, 10:32 PM
#3
brf123 avatar

brf123

New Zenner

Join Date:
Nov 2005
Posts:
33
Plugin Contributions:
0

Re: Shopping Cart sidebox - "shopping cart [more]"

Thanks for the suggestion. I can't find how to move the position within the sidebox for the shopping cart. I can hide the heading within the css. I would settle for the snip of code to link to the shopping cart so I could position it in the /sideboxes/tpl_shopping_cart.php. Any ideas on this one? Thanks again.

1 May 2008, 11:03 PM
#4
brf123 avatar

brf123

New Zenner

Join Date:
Nov 2005
Posts:
33
Plugin Contributions:
0

Re: Shopping Cart sidebox - "shopping cart [more]"

Got it. For anyone interested, a line of code to link to the shopping cart in the /sideboxes/tpl_shopping_cart.php adds the link to the cart to the bottom of the cart sidebox. You can suppress the heading in the css with the following: h3.rightBoxHeading a {
display: none;
} Or a custom style to suit your specific requirements. I only have one right sidebox for this site.

1 May 2008, 11:16 PM
#5
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Shopping Cart sidebox - "shopping cart [more]"

brf123:

Got it. For anyone interested, a line of code to link to the shopping cart in the /sideboxes/tpl_shopping_cart.php adds the link to the cart to the bottom of the cart sidebox. You can suppress the heading in the css with the following: h3.rightBoxHeading a {
display: none;
} Or a custom style to suit your specific requirements. I only have one right sidebox for this site.

Br,
Just curious,

  1. what is this line of Code????

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

2 May 2008, 12:35 AM
#6
brf123 avatar

brf123

New Zenner

Join Date:
Nov 2005
Posts:
33
Plugin Contributions:
0

Re: Shopping Cart sidebox - "shopping cart [more]"

Haredo-
I added the following to above the closing div tag:
$content .='<a href="http://209.85.34.212/index.php?main_page=shopping_cart">View Your Cart</a>';
I'll change it once the domain site is ready to go live but it works well for now!
Thanks again for your help earlier!
Brett