Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Another moded site for praise/criticism


Guest

Recommended Posts

Have made some modification to OSC Core using tep_snapshot-20020930 and would like feed back please.

 

Have added multiple purchase quantity to add to cart pages without the muchpromised help for member :evil: .

 

Made the infoBox Heading function write the gif files directly while retaiming the more arrow, many sites when adding there own box heading seem to lose this

 

Also made infoBoxHeading changes to the new products, specials, and upcoming Products pages again keeping the more arrow.

 

Generally added my style to OSC 99% through the stylesheet.css so changing will not be to difficult.

 

Again Feed back much appreciated

 

www.dcpcwebdevelopment.co.uk/catalog

Link to comment
Share on other sites

Yep. I got the same error.

 

Other than that, very nice job. I really like the layout.

 

How did you replace the text based "categories" "manufacturers" etc with graphics?

 

-Chris

Chris Sullivan

Link to comment
Share on other sites

Thanks for the comments.

 

Basically used the same format as the download version just changed around a bit.

You still need to use 3 different gif (left, right and background).

Probably messy but works.

 

class infoBoxHeading extends tableBox {

   function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

     $this->table_cellpadding = '0';



     if ($left_corner) {

       $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');

     } else {

       $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif');

     }

     if ($right_arrow) {

       $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

     } else {

       $right_arrow = '';

     }

     if ($right_corner) {

       $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');

     } else {

       $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');

     }



     $info_box_contents = array();

     $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"', 'text' => $left_corner),

                                  array('params' => 'background="images/infobox/background.gif" width="100%" height="14" class="infoBoxHeading"', 'text' => $contents[0]['text']),

                                  array('params' => 'height="14" class="infoBoxHeading" nowrap background="images/infobox/background.gif"', 'text' => $right_corner));

     $this->tableBox($info_box_contents, true);

   }

 }

Link to comment
Share on other sites

Sorry Chris should have made it clearer on first post.

 

To change the way the boxes look you need to modify the file boxes.php which is found in

 

catalogincludesclassesboxes.php

 

and the heading part begins on/around line 100

 

Paul

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...