Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where to add HTML?


samwrigley

Recommended Posts

Posted

Im trying to redesign the standard shopping cart to look like this:

 

<h2>Shopping Cart</h2>

<div class="left_inside">

<p>You have no items in your shopping cart.</p>

<div class="line"></div>

<p>Total: <em>£0.00</em></p>

 

I know the text "Shopping Cart" and "You have no items in your shopping cart." comes from english.php. But where abouts do I put the <h2> and <p> tags which use CSS to style them. I've tried lots of different places in both boxes.php and shopping_cart.php

 

So im pretty confused.

Posted

You have to insert the code in english.php only as shown below

define('BOX_HEADING_SHOPPING_CART', '<h2>Shopping Cart</h2>');

and change

define('BOX_SHOPPING_CART_EMPTY', '0 items');
To 
define('BOX_SHOPPING_CART_EMPTY', '<div class="left_inside">
					<p>You have no items in your shopping cart.</p>
					<div class="line"></div>');

Best Regards,
Gaurav

Posted
You have to insert the code in english.php only as shown below

define('BOX_HEADING_SHOPPING_CART', '<h2>Shopping Cart</h2>');

and change

define('BOX_SHOPPING_CART_EMPTY', '0 items');
To 
define('BOX_SHOPPING_CART_EMPTY', '<div class="left_inside">
					<p>You have no items in your shopping cart.</p>
					<div class="line"></div>');

 

 

Oh yes that makes prefect sense!

 

Thank you very much.

Posted

Also how do I get rid of the default images for the top left and right corners and the arrow?

 

If I wanted to style items that are put into the shopping cart, how would I do that?

Because I couldn't edit that in english.php. Where would I put my <p> tags in that case.

 

Is there anyway of getting the total shopping cart price to come up all the time. Like: Total: £0.00 (or Total: £9.99 when somethings in there). So the value of the shopping cart is always there.

 

Thanks

Archived

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

×
×
  • Create New...