Jump to content

Edit ship price display


Claudia M

Recommended Posts

Hi,

How can I remove the ( ) around the shipping product, ex.  ($7.51) USPS: First Class,  in the dropdown menu on the checkout page for the shipping price options.  I'd also like to put another space between the price and shipping product.  And how can I change the blue color of the hover when looking at the dropdown shipping price options.

Thanks for any and all help,

Claudia

Link to comment
Share on other sites

Unfortunately, this is considered a display design aspect, yet the format is hard-coded in a core code file.

In CC6011, the parentheses should be appearing around the description, not the value. The blue background bar is a browser style choice - and cannot be over-ridden. Other solutions involve making a regular list of it and then using some javascript gadgets to make the list appear similar to a drop-down.

In the file /classes/cubecart.class.php, lines 1622 and 1623:

Find:
	$data['name'] = empty($data['name']) ? '' : ' ('.$data['name'].')';
	$data['desc'] = empty($data['desc']) ? '' : ' ('.$data['desc'].')';

Change to:
	$data['name'] = empty($data['name']) ? '' : '  '.$data['name'].' ';
	$data['desc'] = empty($data['desc']) ? '' : '  '.$data['desc'].' ';

 

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...