Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Currency symbol mysteriously moving - and I can see it happening?!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-07-2009, 11:56 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Currency symbol mysteriously moving - and I can see it happening?!

Hi everyone,

Something weird is happening on my product pages. When I load this page: http://www.nerdseven.com/suckUK/mycuppa_perfect_coffee_mug/ for instance (or any page with product variants) the currency symbol ($) starts in correct place (left of the dollar amount) and then magically pops over to the right hand side of the currency value - and I can see this happen.

When looking at the source of my page It shows the currency symbol in the correct place, so I can't imagine what is causing this.

Can anyone take a look at this? Its an awful flaw to have on my site for customers to see. :\
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #2  
Old 04-07-2009, 12:02 PM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: Currency symbol mysteriously moving - and I can see it happening?!

Just checked it and your right, it does jump over! Have you tried removing the "each" once and seeing if it still does it?
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #3  
Old 04-07-2009, 12:14 PM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: Currency symbol mysteriously moving - and I can see it happening?!

I just tried that and it doesn't change the mysterious moving monetary symbol. Would this have anything to do with a misplaced ID tag???
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #4  
Old 04-07-2009, 01:59 PM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: Currency symbol mysteriously moving - and I can see it happening?!

Further investigation ... figured out that the "id="product_price" tag (which is required to update products with price variants) is somehow involved in this problem.

Can anyone help me figure this out?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #5  
Old 04-07-2009, 02:39 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Currency symbol mysteriously moving - and I can see it happening?!

The javascript in func.js is what does the substitution of the price - you can check any mod updates to skin1/modules/Product_Options/func.js. If you disable javascript on your site, you can see that the price tag correctly located - so you know there is something amiss in the check_options function.



A few more hints for when you look around func.js:

There is a javascript variable called currency_symbol that gets set based on the smarty code for the symbol. You will also see javascript code equating things to document.getElementById('product_price').innerHTML

That is where the javascript substitutes text inside the class called product_price depending on what option you select.

See how any mod that you added might be using the currency_symbol variable in the innerHTML - maybe if you debug with this in mind - it will point you to the issue. (Hopefully!)
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:14 AM.

   

 
X-Cart forums © 2001-2020