Jump to content

Cart Progress Images


Guest xceejayx

Recommended Posts

Guest xceejayx

hi, does anyone know how to replace "Basket » Address » Payment » Complete" with images, and also if for instance you were on step 1 then the Address, Payment and Complete would fade out like the text does?!

thank you!!

Link to comment
Share on other sites

hmmm, tricky one :(

from skins/xx/styleTemplates/content/cart.tpl

				<div class="cartProgress">

				<span {CLASS_STEP2}>{LANG_CART}</span> &raquo; <span {CLASS_STEP3}>{LANG_ADDRESS}</span> &raquo; {LANG_PAYMENT} &raquo; {LANG_COMPLETE}

				</div>




from includes/content/cart.inc.php




if($_GET['act']=="cart"){

	$view_cart->assign("CLASS_STEP2","class='txtcartProgressCurrent'");

	$view_cart->assign("CONT_VAL","cart.php?act=step1");



} elseif($_GET['act']=="step2"){

	

	$view_cart->assign("CLASS_STEP2","class='txtcartProgressCurrent'");

	$view_cart->assign("CONT_VAL","cart.php?act=step3");



} elseif($_GET['act']=="step3" OR $_GET['act']=="step4"){



	$view_cart->assign("CLASS_STEP3","class='txtcartProgressCurrent'");

from skins/Legend/styleSheets/style.css

.cartProgress {

font-family: Verdana, Arial, Helvetica, sans-serif;

font-weight: normal;

color: #666666;

padding: 4px;

border: 1px solid #CCCCCC;

width: 350px;

margin: auto;

}

.txtcartProgressCurrent {

color: #61A2DF;

font-weight: bold;

}

There is the pertinent code that makes it what it is out of the box, doing what you want done is a little tricky. An interesting little thing to do when the design calls for it and someone has a little time to do it.

Will watch for your progress. */*

From a glance, I'd say that perhaps an easy way out is to make two button images, and set them as backgrounds in the stylesheet - a full-color button and a faded button - and allow the text to be made by CC as it presently is done. You would also have to use height an width settings for the buttons and paddings to get the text to sit right in the buttons, and you'd probably want to remove the & r a q u o ;'s >> symbols from the code above, etc.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...