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)
-   -   buy button with variants (https://forum.x-cart.com/showthread.php?t=45973)

rshandel 03-03-2009 07:04 AM

buy button with variants
 
Some of the products I sell have product variants (color for example) and I'm wondering is it possible to display the colors in a drop down box on the products list page or would this cause too much load on the server?

Also, the products that have variants display only the "buynow" button on the product list page, and when clicked, it adds the default color to the shopping cart. I thought since it wasn't displaying the color drop down the "buynow" button link would take user to the product page. How can I change this function?
Thanks.
Richard

balinor 03-03-2009 07:22 AM

Re: buy button with variants
 
http://forum.x-cart.com/showthread.php?t=45484&highlight=variant+products

rshandel 03-03-2009 07:51 AM

Re: buy button with variants
 
Thanks. Did you ever test this mod to see if its bloated?

Regarding my other question, is X-Cart supposed to change the link on the buynow button is the product has a variant rather than just adding the default color to the cart?

balinor 03-03-2009 07:54 AM

Re: buy button with variants
 
Unfortunately that is the way it works by default. And no, haven't tried that mod as that will add a ton of page load time to categories having to filter through all of those variants. Impractical for all but the smallest shops I think.

rshandel 03-03-2009 08:02 AM

Re: buy button with variants
 
Ok, I guess I can put a condition statement in the buy_now.tpl. Do you happen to know what the variant data field is called ( I exported the product database, but didn't see the field name)?

balinor 03-03-2009 08:06 AM

Re: buy button with variants
 
You could use this as an {if} statement:

{if $products[product].is_product_options}

Basically that says 'if a product has options'. Use it to change the buy now button to say 'view details' and link to the product detail page for example.

rshandel 03-03-2009 08:20 AM

Re: buy button with variants
 
great! thanks again.


All times are GMT -8. The time now is 01:49 AM.

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