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

Product price range based on product variants

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-16-2011, 05:23 AM
 
jvolvovski jvolvovski is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 46
 

Default 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
__________________
Version 4.3.2
Reply With Quote
  #2  
Old 05-16-2011, 05:38 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Product price range based on product variants

Not without custom coding it. Variant pricing is not available on product list pages by default
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 05-17-2011, 04:56 AM
 
jvolvovski jvolvovski is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 46
 

Default Re: Product price range based on product variants

I understand there would be custom coding involved.
Any idea what templates need to be changed?
__________________
Version 4.3.2
Reply With Quote
  #4  
Old 05-17-2011, 07:56 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 06-10-2011, 11:19 AM
 
jvolvovski jvolvovski is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 46
 

Default 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!
__________________
Version 4.3.2
Reply With Quote
  #6  
Old 06-22-2011, 05:58 PM
 
Eyeglasses Expert Eyeglasses Expert is online now
 

eXpert
  
Join Date: May 2010
Posts: 307
 

Default Re: Product price range based on product variants

I need that function also.
Reply With Quote
  #7  
Old 06-23-2011, 06:54 AM
 
privateer privateer is offline
 

Advanced Member
  
Join Date: Apr 2011
Posts: 34
 

Default 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.
__________________
X-cart 4.4.2 with:
* System Messages mod by CFL Systems
Reply With Quote
  #8  
Old 06-27-2011, 05:46 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default 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}
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
  #9  
Old 06-27-2011, 11:55 AM
 
privateer privateer is offline
 

Advanced Member
  
Join Date: Apr 2011
Posts: 34
 

Default 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).
__________________
X-cart 4.4.2 with:
* System Messages mod by CFL Systems
Reply With Quote
  #10  
Old 11-10-2011, 12:28 PM
  XCart4Life's Avatar 
XCart4Life XCart4Life is offline
 

Advanced Member
  
Join Date: Feb 2010
Posts: 62
 

Default 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} 
__________________
X-Cart Pro v4.2.2 [Win]
X-Cart Pro v4.2.3 [Win]
X-Cart Pro v4.4.4 [Win]
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 02:53 PM.

   

 
X-Cart forums © 2001-2020