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)
-   -   Enable "Buy Now" Button in Products List using 2 C (https://forum.x-cart.com/showthread.php?t=23502)

Bodger 07-23-2006 12:34 AM

Enable "Buy Now" Button in Products List using 2 C
 
Greetings Folks,

X-Cart gives us the opportunity to display a Buy Now Button in Category/Product List - but only if products are displayed as one column.

Presumably the logic being that the Buy Now protocol would have an negative display-impact in multiple columns.

That said, has anyone managed to display Buy Now button using two columns ? If so, would you please share the method used.

With Thanks,

Mike.

balinor 07-23-2006 03:54 AM

Just cut and paste the buy now button code from customer/main/products.tpl to customer/main/products_t.tpl.

Bodger 07-23-2006 04:16 AM

Quote:

Originally Posted by balinor
Just cut and paste the buy now button code from customer/main/products.tpl to customer/main/products_t.tpl.


Thanks Padraic,

Would you be kind and indicate EXACTLY which part of the code from products.tpl I should remove, and where exactly should I past it in products_t.tpl.

Sorry to be a pain; but I don't understand Smarty, so will probably mess things unless I have specifics. #-o

Grateful Thanks,

Mike.

balinor 07-23-2006 04:21 AM

Actually...to make your life even easier...if you haven't altered products_t.tpl, the buy now code is already in there. Just replace this:

Code:

{*** Uncomment it if you need 'Buy Now' button ***
{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"}
{include file="customer/main/buy_now.tpl" product=$products[product]}
{/if}
*** Uncomment it if you need 'Buy Now' button ***}


With this:

Code:

{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"}
{include file="customer/main/buy_now.tpl" product=$products[product]}
{/if}


Bodger 07-23-2006 04:49 AM

Quote:

Originally Posted by balinor
Actually...to make your life even easier...if you haven't altered products_t.tpl, the buy now code is already in there. Just replace this:

Code:

{*** Uncomment it if you need 'Buy Now' button ***
{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"}
{include file="customer/main/buy_now.tpl" product=$products[product]}
{/if}
*** Uncomment it if you need 'Buy Now' button ***}


With this:

Code:

{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"}
{include file="customer/main/buy_now.tpl" product=$products[product]}
{/if}



Works a treat ! Thank you.
Have lost "details" link though. That is: Previously the word details as a link was beside the product (not sure whether this was besides the photo or not)

Any ideas on that ?

Thank you for your kind assistance.

Mike.


All times are GMT -8. The time now is 10:16 AM.

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