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)
-   -   Product price range based on product variants (https://forum.x-cart.com/showthread.php?t=59353)

jvolvovski 05-16-2011 05:23 AM

Product price range based on product variants
 
Hi,
Is it possible to show a product price range instead of showing a single product price on the category page?

So, for example I have a product with a base price of $500, but a product variant adds $200 to that price. On the category page, can I show the price as $500 - $700?
So a minimum and maximum you can pay for the same product.

Thanks in advance,
Jenny

cflsystems 05-16-2011 05:38 AM

Re: Product price range based on product variants
 
Not without custom coding it. Variant pricing is not available on product list pages by default

jvolvovski 05-17-2011 04:56 AM

Re: Product price range based on product variants
 
I understand there would be custom coding involved.
Any idea what templates need to be changed?

cflsystems 05-17-2011 07:56 AM

Re: Product price range based on product variants
 
Most likely not templates but php files. Start by checking what's available as product info on products list pages with the debug console.

jvolvovski 06-10-2011 11:19 AM

Re: Product price range based on product variants
 
Can anyone help me figure out if this is doable?
How many hours it would take to configure (how much this would cost)?

Thanks!

Eyeglasses Expert 06-22-2011 05:58 PM

Re: Product price range based on product variants
 
I need that function also.

privateer 06-23-2011 06:54 AM

Re: Product price range based on product variants
 
I'd also use that feature, were it available. I'd even settle for a "From XXX..." figure.

To deliver the best customer experience, it would also need to look at any quantity discounts when determinging the range of prices to show.

carlisleglass 06-27-2011 05:46 AM

Re: Product price range based on product variants
 
If you just want a from figure you can use the is_variants variable.

For example in products_t.tpl you can use the following before showing the price (just make sure that the cheapest variation is the default variation)

Code:

{if $product.is_variants}<span class="from">from</span> {/if}

privateer 06-27-2011 11:55 AM

Re: Product price range based on product variants
 
Hi Darren - thanks printed for future reference.

In my products, the cheapest isn't the default at the moment (long story as to why, but it makes most sense for the type of product I sell and what the customer may already have to hand).

XCart4Life 11-10-2011 12:28 PM

Re: Product price range based on product variants
 
In 4.4.4 I had to edit:

/skin/your_skin/customer/main/buy_now.tpl

Find (around line 112):
PHP Code:

{if $product.appearance.buy_now_buttons_enabled}

      {
capture name="price_button"


Add below:
PHP Code:

{if $product.is_variants}<span class="from">From</span>{/if} 


nickff 10-16-2012 09:13 AM

Re: Product price range based on product variants
 
Just a bump here. Wondering if anyone has ever written some code to show a price range on product list pages for products with variants...


All times are GMT -8. The time now is 02:48 AM.

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