Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I want to modify the cart; when someone clicks


herkalees

Recommended Posts

First, here is the cart in question: http://talenabelts.com/shop/index.php

 

The customer only has one product in each category, and that is how it will stay. I'd like to change something so when a customer clicks on a category in the left-column, it goes to the only product available.

 

Right now it goes to that page where it says "Let's see what we have here", and I'd like it to skip this page all together.

 

Thanks ahead of time!

Link to comment
Share on other sites

You can create a new box and add a list of links to the product pages. Create a new .php file and save it in catalog/includes/boxes. The code in that file should be:

 

 <tr>
		<td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => 'Products');

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('text' => '<a href="http://talenabelts.com/shop/product_info.php?products_id=28">The Basic</a><br />
<a href="http://talenabelts.com/shop/product_info.php?products_id=29">The Extra</a><br />
<a href="http://talenabelts.com/shop/product_info.php?products_id=30">Talena's Creations</a><br />
');

 new infoBox($info_box_contents);
?>
		</td>
	  </tr>

 

 

Then in catalog/include/column_left.php replace the categories box with:

include(DIR_WS_BOXES . '<your new box>.php');

Link to comment
Share on other sites

You can create a new box and add a list of links to the product pages. Create a new .php file and save it in catalog/includes/boxes. The code in that file should be:

 

 <tr>
		<td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => 'Products');

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('text' => '<a href="http://talenabelts.com/shop/product_info.php?products_id=28">The Basic</a><br />
<a href="http://talenabelts.com/shop/product_info.php?products_id=29">The Extra</a><br />
<a href="http://talenabelts.com/shop/product_info.php?products_id=30">Talena's Creations</a><br />
');

 new infoBox($info_box_contents);
?>
		</td>
	  </tr>

Then in catalog/include/column_left.php replace the categories box with:

include(DIR_WS_BOXES . '<your new box>.php');

 

that will blow your session away.

Treasurer MFC

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...