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

change Buy Now button in product list

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-08-2006, 10:20 AM
 
pddeas pddeas is offline
 

Newbie
  
Join Date: Aug 2006
Posts: 3
 

Default change Buy Now button in product list

I'd like to replace the Buy Now button with a customized View Options button for products w/options on the Product List page. I want to leave the Buy Now button in place for items w/o options.

Does anyone know how I can differentiate between the two in webmaster mode so I can edit the button text for these items??...or know of an appropriate mod for this?

I▓ve tried searching the forum for answers but haven▓t had any luck.

Thanks for any help.

Paco



...This is what I▓m basically going for:


http://www.mypetshoppe.com/images/layout/button_problem.gif
__________________
Version 4.0.18
Reply With Quote
  #2  
Old 11-08-2006, 10:38 AM
 
balinor balinor is offline
 

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

Default Re: change Buy Now button in product list

Webmaster mode isn't going to cut it on this one I'm afraid, you'll need to use some Smarty {if} statements in the code itself.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-08-2006, 11:03 AM
 
pddeas pddeas is offline
 

Newbie
  
Join Date: Aug 2006
Posts: 3
 

Default Re: change Buy Now button in product list

Hi Ryan, Thanks for the input. You don't recall seeing any user mods for this type of thing do you?
__________________
Version 4.0.18
Reply With Quote
  #4  
Old 11-08-2006, 11:50 AM
 
balinor balinor is offline
 

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

Default Re: change Buy Now button in product list

Try this...I don't guarantee it will work, but it is worth a shot:

in buttons/buy_now.tpl, replace this:

button_title=$lng.lbl_buy_now

with this:

{if $product.is_product_options ne 'Y' || $config.Appearance.buynow_with_options_enabled ne 'Y'}button_title=$lng.lbl_buy_now{else}button_titl e="View Options"{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-10-2006, 08:54 AM
 
pddeas pddeas is offline
 

Newbie
  
Join Date: Aug 2006
Posts: 3
 

Default Re: change Buy Now button in product list

Didn't work. Thanks for the attempt though.
__________________
Version 4.0.18
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 05:48 PM.

   

 
X-Cart forums © 2001-2020