Register

Which file for shopping cart box?

A discussion area for other carts not listed above

Moderator: Staff

King Member
User avatar
Posts: 2741
Joined: Fri Apr 06, 2007 9:25 pm
Location: North Wales

Which file for shopping cart box?

Postby Wayzgoose » Tue Aug 24, 2010 4:14 pm

A while back I adjusted the file that controls items added to the cart in the side box. I changed the code so that an "x" was added after the quantity so that the box shows 1 x Item or 5 x item.

I notice in Firefox that this shows as 1&nbspx Item. Couple of questions: I can't for the life of me remember which file needs adjusting (one day I'll learn to write these things down!!) and, how should it be coded properly to show correctly in Firefox?

Thanks,

Alan.

I Live Here
Posts: 7323
Joined: Mon Oct 15, 2007 8:24 pm
Location: Cheshire

Postby eemarket » Tue Aug 24, 2010 4:48 pm

  is a non-breaking space.
For more information you can check this site: http://www.w3schools.com/tags/ref_entities.asp

I would code it with an underscore like this... 1_x

Can't think of the file that you need though .

No Life
Posts: 1906
Joined: Sun Mar 16, 2008 9:49 pm
Location: Gloucester

Postby Bhuna » Tue Aug 24, 2010 6:24 pm

Try searching for either
shopping_cart.php
or
tpl_shopping_cart.php

files but in a directory called sideboxes.

/website/includes/modules/sideboxes
or
/website/includes/templates/YOUR_TEMPLATE/sideboxes

if you havent used the template then YOUR_TEMPLATE folder will probably be the template_default folder.

Sorry to be vague but Ive swapped and changed and rewritten my files so much in the last couple of days to launch new improved site, I cant think straight LOL

King Member
User avatar
Posts: 2741
Joined: Fri Apr 06, 2007 9:25 pm
Location: North Wales

Postby Wayzgoose » Tue Aug 24, 2010 9:10 pm

Ha - got it :-) It was in the good old english.php file:

define('BOX_SHOPPING_CART_DIVIDER', ' x ');

Some plonker had forgotten to put the semi-colon after the first &nbsp!!!

Alan.

Return to Other Carts

Who is online

Users browsing this forum: No registered users and 0 guests