Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   eCommerce & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=31)
-   -   [SOLVED] Ata & Wp-ecommerce displaying () on cart widget and checkout (http://forum.bytesforall.com/showthread.php?t=19637)

ozbod Feb 15, 2013 05:28 AM

[SOLVED] Ata & Wp-ecommerce displaying () on cart widget and checkout
 
1 Attachment(s)
Hi,

on the shopping cart widget and checkout page, where the Tax Included: message appears I am getting (please see attached screenshot):

Tax Included: ()
£2.00

I am not sure if this is a theme or wpec problem either way I need to get rid of these brackets so that I see:

Tax Included: £2.00


the code that produces the tax figure in the wpsc-cart_widget.php is on line 47:

<span class="pricedisplay checkout-tax"><?php echo wpsc_cart_tax(); ?></span>

and the code that produces the tax figure in the wpsc-shopping_cart_page.php is on line 213:

<span id="checkout_tax" class="pricedisplay checkout-tax"><?php echo wpsc_cart_tax(); ?></span>

I am using WP-ecommerce V3.8.9.5 and WordPress Version 3.51 and theme Atahualpa V3.7.10

Best regards and thanks in advance

Dave

juggledad Feb 15, 2013 07:02 AM

what is the url?

ozbod Feb 15, 2013 08:19 AM

hi its on a localhost set up any other info i can provide pleasr let me know

juggledad Feb 15, 2013 08:40 AM

go to the page in question, view the source, copy it to a text file and attach it to a reply

ozbod Feb 15, 2013 12:54 PM

Sorry fr the delay in replying, just got back from work, the two files are attached:

wpsc-cart_widget.php which is the cart widget

wpsc-shopping_cart_page.php which is the shopping cart page

Line numbers and code are mentioned in my first post.

Many thanks

Dave

ozbod Feb 15, 2013 12:58 PM

2 Attachment(s)
Sorry text versions attached

juggledad Feb 15, 2013 01:14 PM

what I want is you to go to your site and visit a page that shows the error. Next use teh browser 'view source' option to see the source of the page. Copy that to a text file and attach it to a reply.

ozbod Feb 15, 2013 03:26 PM

1 Attachment(s)
Here you go

juggledad Feb 15, 2013 06:24 PM

let me guess, you are looking at that page using IE...right? Try using another browser and tell me what you see.

ozbod Feb 16, 2013 01:07 AM

1 Attachment(s)
Hi, sorry, but IE is my least favoured of all the browsers, but I have checked it in all the browsers I have installed: IE9 V0.0.8112.16421, Firefox V18.02, Opera V12.12, Safari V5.1.7, Chrome V24.0.1312.57.

The view source I sent you was from Firefox.

The only browser that renders slightly differently from the others is Opera where it is superimposing the brackets over the £ sign, see attached screenshot

Cheers

Dave

juggledad Feb 16, 2013 03:37 AM

1 Attachment(s)
Interesting because on my mac in safari, firefox and chrome this is what I see
Attachment 2225
which leads me to think it is somethnig at your end. Try it on another machine.

ozbod Feb 16, 2013 06:00 AM

Crickey, that really does confuse matters. I am off to work now so I will get it loaded up onto a spare domain tomorrow that is publicly visible, then that will exclude my WAMP set up and I will be able to try it on other machines as well, will keep you posted.

Thanks for your input thus far

Cheers

Dave

ozbod Feb 17, 2013 03:52 AM

Hi,

I have now got it loaded up on a live webserver, so if you could go to http:2brazil.co.uk and then add any product to the shop and then click on the go to checkout link, I am hoping you will see the brackets now that I have been talking about.

I also tried this on my android phone and can see the brackets ()

cheers

Dave

ozbod Feb 17, 2013 06:01 AM

Hi quick update, I had the owner of this site view it as well, she is up in Scotland and she too is seeing the brackets using a PC with IE

juggledad Feb 17, 2013 10:06 AM

this has something to due with the plugin's CSS specifically this CSS
HTML Code:

span.pricedisplay {
    color: #333333;
    float: right;
    font-size: 9pt;
    white-space: nowrap;
    width: 80px;
}

the float: right seems to be the culprit. You should contact the plugin's develpoer

ozbod Feb 18, 2013 02:18 AM

Hi,

thanks that gave me the clue I needed, I commented out the float: and that put brackets around the numbers, but at the same time introduced another problem in that the numbers were appearing before the headings on the cart widget, but fixed that in the code.

So all in all a good start to the week and thanks for pointing me in the right direction.

Cheers

Dave

ozbod Feb 18, 2013 02:27 AM

Just sent you a small donation by way of saying thanks


All times are GMT -6. The time now is 10:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.