X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   change Buy Now button in product list (https://forum.x-cart.com/showthread.php?t=26463)

pddeas 11-08-2006 10:20 AM

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

balinor 11-08-2006 10:38 AM

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.

pddeas 11-08-2006 11:03 AM

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?

balinor 11-08-2006 11:50 AM

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}

pddeas 11-10-2006 08:54 AM

Re: change Buy Now button in product list
 
Didn't work. Thanks for the attempt though.


All times are GMT -8. The time now is 04:35 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.