Welcome, Guest. Please login or register.
Login with username, password and session length


Need help or want to talk to other developers? Join the VirtueMart Chat! Read more...

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
VirtueMart ForumVirtueMart 1.1.xAttributes, Child ProductsDisplay child price range for parent product?
Pages: [1]   Go Down
Print
Author Topic: Display child price range for parent product?  (Read 2171 times)
cameront21
Newbie
*
Posts: 22


« on: May 17, 2010, 16:00:14 PM »

Is there any way to display the parent price as a range of lowest to highest of child product's prices?

Example: I have a parent product with 10 child products. Child products range in price from $1.00-$10.00. Rather than giving parent product a random price and hiding it on product flypage. Is there a way I could make the parent products price show $1.00-$10.00?

Thanks
Cameron
Logged
cameront21
Newbie
*
Posts: 22


« Reply #1 on: May 18, 2010, 10:06:49 AM »

Anybody?
Logged
tmate
Newbie
*
Posts: 3


« Reply #2 on: October 02, 2010, 09:54:31 AM »

I am also really interested about that. Is it possible? thanks..
Logged
Reincha
Jr. Member
**
Posts: 94


« Reply #3 on: February 07, 2011, 04:28:26 AM »

Hi!
i'm very interested in this feature
old topic, so maybe by now somebody have done it?
R.
Logged
mfrieder
Newbie
*
Posts: 1


« Reply #4 on: April 27, 2011, 22:03:29 PM »

I am also interested in this, it seems many other carts can do this but virtuemart cannot?
Logged
VM_Fans
Full Member
***
Posts: 100


« Reply #5 on: April 30, 2011, 07:28:19 AM »

Maybe we can recommend virtuemart team to add this feature in the next version.
Logged

webs4travel
Newbie
*
Posts: 10


« Reply #6 on: May 09, 2011, 13:41:30 PM »

Am also interested in this.  In the meantime, if I set the parent price to be the lowest of the child prices, I can't find the file to change product_price_lbl "Price:" to "Price From:"  on the browse page.  I realise this will aslo change the label on the product details page, but I'm not too worried about this as will just remove the price alltogether as it's displayed in the cart!  The other option I did think of was to add the to-from prices to the short description, but it's a bit of a pain when I change prices/discounts...
Logged
MrRiz
Newbie
*
Posts: 25


« Reply #7 on: May 11, 2011, 04:49:32 AM »

generally the labels are in /administrator/components/com_virtuemart/languages/common

might be PHPSHOP_PRODUCT_PRICE_TITLE.

Frank
Logged
atrus
Newbie
*
Posts: 7


« Reply #8 on: June 09, 2011, 11:03:57 AM »

Dear All,

pls find here our solution for this problem for www.quality-tuning.com. It calculates and updates the price of all parent products' price in the database using the minimum price of all children. You can do this in the administration - we have added a new button for this (see attached). This hack adds also the text "From:" near the price of all parent products in browse and product_details pages. We believe a similar solution or same should be included in the standard VM version.

1. New files (See attached)
administrator\components\com_virtuemart\html\product.product_minprice.php
administrator\components\com_virtuemart\class\ps_calminprice.php
components\com_virtuemart\themes\YOUR_TEMPLATE\templates\common\minprice.tpl.php

2. Changed files

2.1 administrator\components\com_virtuemart\ header.php
After line 317: Add:
<hr />
<li class="item-smenu vmicon vmicon-16-editadd">
<a href="<?php $sess->purl($_SERVER['PHP_SELF']."?pshop_mode=admin&page=product.product_minprice") ?>"><?php echo 'Calculate Min Price' ?></a>
</li>

2.2 administrator\components\com_virtuemart\ html\shop.browse.php
After line 31: Add:
require_once(CLASSPATH . 'ps_calminprice.php' );
$ps_calminprice = new ps_calminprice();
After line 443: Add:
$minpriceid = $ps_calminprice->getminprice($db_browse->f("product_id"));
      if($minpriceid!=''){
         $product_price = $ps_calminprice->show_price($minpriceid);
      }

2.3 administrator\components\com_virtuemart\ html\ shop.product_details.php
After line 418: Add:
require_once(CLASSPATH . 'ps_calminprice.php' );
$ps_calminprice = new ps_calminprice();
$minpriceid = $ps_calminprice->getminprice($product_id);
if($minpriceid!=''){
   $product_price = $ps_calminprice->show_price($minpriceid);
}

Regards,
Chris
« Last Edit: June 09, 2011, 11:06:50 AM by atrus » Logged
mark R
Full Member
***
Posts: 118



« Reply #9 on: June 15, 2011, 06:52:13 AM »

Hi Chris,

This is a fantastic addition to VM but unfortunately the attachment is missing from this post.

Many thanks
mark
Logged

Seek and ye shall find.........
4 VM sites and counting
Pages: [1]   Go Up
Print
Jump to: