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

Centre Bonus Points Box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-23-2012, 07:28 AM
  David-Allan's Avatar 
David-Allan David-Allan is offline
 

eXpert
  
Join Date: Oct 2011
Location: Scotland, UK
Posts: 313
 

Default Centre Bonus Points Box

Hi Folks,

I have been trying for a few days to centre the bonus points box on the products page. I have used firebug (how do you stop this opening over the browser every time I open the browser BTW?) to try and adjust the css. I have tried adding as center tag to the table and also surrounding it with a div with align set to centre but I can't seem to get it to centre.

Am I must be missing something really stupid here but I just can't seem to get it to work at all.

Any help would be appreciated.

@BikerSco
Attached Thumbnails
Click image for larger version

Name:	not_centred.jpg
Views:	156
Size:	81.8 KB
ID:	3006  Click image for larger version

Name:	not_centred_SRC.jpg
Views:	154
Size:	231.7 KB
ID:	3007  
__________________
Live Version : 4.5.2
Licensed Products:
X-Cart Gold
Ability Theme
CDSEO
xCMS
Abandoned Cart
Food Packaging Scotland
Reply With Quote
  #2  
Old 04-24-2012, 04:30 AM
  David-Allan's Avatar 
David-Allan David-Allan is offline
 

eXpert
  
Join Date: Oct 2011
Location: Scotland, UK
Posts: 313
 

Default Re: Centre Bonus Points Box

Anyone?

I still can;t figure this out
__________________
Live Version : 4.5.2
Licensed Products:
X-Cart Gold
Ability Theme
CDSEO
xCMS
Abandoned Cart
Food Packaging Scotland
Reply With Quote
  #3  
Old 04-24-2012, 04:34 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Centre Bonus Points Box

skin/ability/customer/main/product_above.tpl

Replace...

Code:
{if $active_modules.Special_Offers} <table cellspacing="0" cellpadding="0" border="0"> <tr> {include file="modules/Special_Offers/customer/product_bp_icon.tpl"} </tr> </table> {/if}

With...

Code:
{if $active_modules.Special_Offers} <center> <table cellspacing="0" cellpadding="0" border="0"> <tr> {include file="modules/Special_Offers/customer/product_bp_icon.tpl"} </tr> </table> </center> {/if}
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
David-Allan (04-26-2012)
  #4  
Old 04-26-2012, 12:15 AM
  David-Allan's Avatar 
David-Allan David-Allan is offline
 

eXpert
  
Join Date: Oct 2011
Location: Scotland, UK
Posts: 313
 

Default Re: Centre Bonus Points Box

Quote:
Originally Posted by PhilJ
skin/ability/customer/main/product_above.tpl

Replace...

Code:
{if $active_modules.Special_Offers} <table cellspacing="0" cellpadding="0" border="0"> <tr> {include file="modules/Special_Offers/customer/product_bp_icon.tpl"} </tr> </table> {/if}

With...

Code:
{if $active_modules.Special_Offers} <center> <table cellspacing="0" cellpadding="0" border="0"> <tr> {include file="modules/Special_Offers/customer/product_bp_icon.tpl"} </tr> </table> </center> {/if}

As always your a star mate thank you so much, looking at that code change I feel like a right idiot. I'm sure I tried this already but guess I was just trying to over complicate things.

Thanks for your help AGAIN!!
__________________
Live Version : 4.5.2
Licensed Products:
X-Cart Gold
Ability Theme
CDSEO
xCMS
Abandoned Cart
Food Packaging Scotland
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:06 AM.

   

 
X-Cart forums © 2001-2020