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

moving coupon code box to be before the checkout button

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-22-2006, 07:34 AM
 
designbabe designbabe is offline
 

Member
  
Join Date: Apr 2006
Location: san francisco, ca, usa
Posts: 18
 

Default moving coupon code box to be before the checkout button

My clients are complaining that the spot to add a coupon code at checkout isbelow the checkout button and they think customers miss seeing it. Is there anyway to move it to be between the total and the checkout button?

any thoughts are appreciated.
erin
__________________
www.regularriches.com
4.11 on unix server but editing/working on mac (client's store)
Reply With Quote
  #2  
Old 12-22-2006, 07:45 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: moving coupon code box to be before the checkout button

Unfortunately they are two different forms...so if you move it above the checkout it screws up the checkout form. I have used a <div> with a negative margin in the past to move it up into the area to the left of the cart totals area.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-22-2006, 09:33 PM
 
designbabe designbabe is offline
 

Member
  
Join Date: Apr 2006
Location: san francisco, ca, usa
Posts: 18
 

Default Re: moving coupon code box to be before the checkout button

thank you I will try that
__________________
www.regularriches.com
4.11 on unix server but editing/working on mac (client's store)
Reply With Quote
  #4  
Old 02-26-2007, 09:19 AM
 
suntrader suntrader is offline
 

Newbie
  
Join Date: Jun 2006
Location: Israel
Posts: 3
 

Default Re: moving coupon code box to be before the checkout button

Hi there,
I asuume this is to be edited in the cart.tpl. Can you share this <div> code?
Thank you!
__________________
EB
www.Suntrader.com
Online Marketing & Custom Development

X-Cart 4.1
PHP version 4.4.1
MySQL version 4.1.19-standard
Reply With Quote
  #5  
Old 02-26-2007, 09:25 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: moving coupon code box to be before the checkout button

I usually put the CSS into the stylesheet, but to make it easier, I've included it in the div code:

<div align="left" style="border: 1px solid #CCCCCC; width: 350px; padding: 10px; background-color: #EEEEEE; margin-top: -160px;">
{include file="modules/Discount_Coupons/add_coupon.tpl}
</div>

That will create a shaded box with a border, and offset it 160 pixels in the 'up' direction. Be very careful with negative margins, as IE and Firefox render them very differently. Test it out on all browser/OS combinations. This can go anywhere after the closing </form> tag in cart.tpl.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 02-26-2007, 10:27 AM
 
suntrader suntrader is offline
 

Newbie
  
Join Date: Jun 2006
Location: Israel
Posts: 3
 

Default Re: moving coupon code box to be before the checkout button

Oops,
It messed it all up. I think this is over my head! Thank you anyways.
__________________
EB
www.Suntrader.com
Online Marketing & Custom Development

X-Cart 4.1
PHP version 4.4.1
MySQL version 4.1.19-standard
Reply With Quote
  #7  
Old 05-28-2007, 11:41 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: moving coupon code box to be before the checkout button

Quote:
Originally Posted by balinor
Unfortunately they are two different forms...so if you move it above the checkout it screws up the checkout form. I have used a <div> with a negative margin in the past to move it up into the area to the left of the cart totals area.
Ugh. Padraic, I have tried your <div> suggestion and I am not finding the love here.

Do you know of any examples of sites who have been successful in moving the coupon code up the page?

Thanks,

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #8  
Old 05-28-2007, 11:59 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: moving coupon code box to be before the checkout button

Heh...neg margins can be tricky I'll PM you with an example site.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 08:52 AM.

   

 
X-Cart forums © 2001-2020