VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: jiapei100 on January 17, 2013, 13:42:19 PM

Title: With Child Products :No Price is listed in Shopping Cart?
Post by: jiapei100 on January 17, 2013, 13:42:19 PM

Hi, all:

I'm using Joomla 2.5.8 + Virtuemart 2.0.18a

Please refer to
http://www.visionmisc.com/index.php/shopping-cart (http://www.visionmisc.com/index.php/shopping-cart)


In VirtueMart, there is a configuration->Pricing, which seems to be able to configure the price. However, I'm guessing this configuration is only for when displaying the products, rather than for when checking out all selected products.


Anyway, now, the buggy phenomenon is:
a) Every product can show its price, for instance, on this page
http://www.visionmisc.com/index.php/products/ip-cameras/h-264-ip-cameras (http://www.visionmisc.com/index.php/products/ip-cameras/h-264-ip-cameras)
b) But, currently, no price and tax has been listed in the check out list.
http://www.visionmisc.com/index.php/shopping-cart (http://www.visionmisc.com/index.php/shopping-cart)


Did anybody meet the same issue? How to solve it?

Thank you.
Pei


Title: Re: No Price is listed in Shopping Cart?
Post by: PRO on January 17, 2013, 14:22:44 PM
are you using a template override?


Title: Re: No Price is listed in Shopping Cart?
Post by: DaggaTora on February 04, 2013, 14:10:41 PM
I have the same problem. There are no prices in cart.

And also, in module cart price become 0.00 after refreshing page.

No overrides here! New installation.
Title: Re: No Price is listed in Shopping Cart?
Post by: PRO on February 04, 2013, 15:11:04 PM
what is your price configuration?
Title: Re: No Price is listed in Shopping Cart?
Post by: DaggaTora on February 04, 2013, 16:01:37 PM
Baseprice with Tax, but without discounts & Final salesprice, both with labels.

Shopper group default set the same.

Thank you PRO!
Title: Re: No Price is listed in Shopping Cart?
Post by: PRO on February 04, 2013, 16:18:10 PM
Quote from: DaggaTora on February 04, 2013, 16:01:37 PM
Baseprice with Tax, but without discounts & Final salesprice, both with labels.

Shopper group default set the same.

Thank you PRO!

do you have a reason for different shoppergroup prices?
Title: Re: No Price is listed in Shopping Cart?
Post by: DaggaTora on February 04, 2013, 17:23:08 PM
Yes, employees have diferent prices with discount.

All shopper groups have default price setting. They all see the same.
Title: Re: No Price is listed in Shopping Cart?
Post by: PRO on February 04, 2013, 21:42:52 PM
I dont even see a price column on the cart,

are you using a template override?

what vmart version?>
Title: Re: No Price is listed in Shopping Cart?
Post by: DaggaTora on February 05, 2013, 12:28:02 PM
I don´t  know about  jiapei100 web but in mine Price is in a column and Total is 0 too.
Title: Re: No Price is listed in Shopping Cart?
Post by: DaggaTora on February 05, 2013, 13:06:58 PM
Ok, I think I found the problem but not the solution.

Mine are all child products and their parents have the price. I've set a price on a child and got it in the cart, but doesn0t it supose to show parents prices?

I have the precious shop with 2.0.8e and parents are the only ones that have price. did it change in version 2.0.18a?
Title: Re: No Price is listed in Shopping Cart?
Post by: PRO on February 05, 2013, 15:08:57 PM
Quote from: DaggaTora on February 05, 2013, 13:06:58 PM

I have the precious shop with 2.0.8e and parents are the only ones that have price. did it change in version 2.0.18a?

LOTs have change since then.

Title: Re: No Price is listed in Shopping Cart?
Post by: DaggaTora on February 05, 2013, 15:40:43 PM
 ;D JAJAJAJA... I supose you are right.

But isn't supose that child products get price from their parents? I've found this http://forum.virtuemart.net/index.php?topic=111932.msg379242#msg379242

The thing is that I found that child products doesn't get parent price. I have child products blank and they appear like 0,00€ (not in product page but in cart) They also appear like Not Price Set in VM admin.
Title: Re: No Price is listed in Shopping Cart?
Post by: PRO on February 05, 2013, 21:36:08 PM
Quote from: DaggaTora on February 05, 2013, 15:40:43 PM
;D JAJAJAJA... I supose you are right.

But isn't supose that child products get price from their parents? I've found this http://forum.virtuemart.net/index.php?topic=111932.msg379242#msg379242

The thing is that I found that child products doesn't get parent price. I have child products blank and they appear like 0,00€ (not in product page but in cart) They also appear like Not Price Set in VM admin.

I dont know about that version.

I do know they have done improvements
Title: Re: No Price is listed in Shopping Cart?
Post by: DaggaTora on February 06, 2013, 09:31:29 AM
Thanks PRO, let see if someone can tell us about that improvements.

The thing is that I followed Milbo's intructions and failed  :o

Damn I hate to update!
Title: Re: No Price is listed in Shopping Cart?
Post by: DaggaTora on February 08, 2013, 11:51:29 AM
Ok, here is my conf. Can someone tell me if something is wrong? I have the same in 2.0.8e and it works there but not in 2.0.18a:

(http://cumagore.com/images/prices.jpg)
(http://cumagore.com/images/prices-conf.jpg)
(http://cumagore.com/images/shoppergroup.jpg)

Any help will be much appreciated!
Title: Re: No Price is listed in Shopping Cart?
Post by: PRO on February 08, 2013, 13:46:18 PM
are you using multiple prices?

if NOT

when it says "no price set"

OPEN: the product & delete the "extra prices"


Title: Re: No Price is listed in Shopping Cart?
Post by: DaggaTora on February 08, 2013, 14:15:04 PM
No, I'm not using multiple prices. I entered in the child product, delete the price (it was empty actually) and still 0.00€ in the cart and in the cart module when change the page.
Title: Re: No Price is listed in Shopping Cart?
Post by: PRO on February 08, 2013, 15:21:01 PM
when you enable ALL prices, does it show?
Title: Re: No Price is listed in Shopping Cart?
Post by: DaggaTora on February 08, 2013, 16:30:58 PM
Neither.
Title: Re: No Price is listed in Shopping Cart?
Post by: PRO on February 11, 2013, 13:14:11 PM
so this is with child products?

do you have a url to look at?
Title: Re: No Price is listed in Shopping Cart?
Post by: DaggaTora on February 11, 2013, 13:17:45 PM
Yes, only with childs.

I'll pm you credentials for the site.

Thank!
Title: Re: No Price is listed in Shopping Cart?
Post by: PRO on February 11, 2013, 15:23:00 PM
have you switched to standard joomla template to see what happens?
Title: Re: No Price is listed in Shopping Cart?
Post by: DaggaTora on February 11, 2013, 15:36:13 PM
Yes, here is an image from Beez2:
(http://cumagore.com/images/cart.jpg)
Title: Re: No Price is listed in Shopping Cart?
Post by: PRO on February 11, 2013, 19:45:43 PM
someone responded with this when I asked them

"Instead of struggling with this problem for several days, I would just enter a price for the child products. If the child price is "0" it will display "Ask for price". If the child price is left blank (I think this is what he has), the "blank" isn't stored and it doesn't display the (parent) price in the cart."

Title: Re: No Price is listed in Shopping Cart?
Post by: DaggaTora on February 11, 2013, 20:12:14 PM
 :o

but... I have several childs for each product, and the new collection will have more. Every change on price, discounts, etc... will have to be made one by one. I can't give an updated shop from 2.0.8e and tell the client that he has to work more!

I don't understand this: "If the child price is left blank (I think this is what he has), the "blank" isn't stored and it doesn't display the (parent) price in the cart."

wasn't the parent price to work as before?

Thanks.
Title: Re: No Price is listed in Shopping Cart?
Post by: PRO on February 12, 2013, 17:29:46 PM
Quote from: DaggaTora on February 11, 2013, 20:12:14 PM
:o

but... I have several childs for each product, and the new collection will have more. Every change on price, discounts, etc... will have to be made one by one. I can't give an updated shop from 2.0.8e and tell the client that he has to work more!

I don't understand this: "If the child price is left blank (I think this is what he has), the "blank" isn't stored and it doesn't display the (parent) price in the cart."

wasn't the parent price to work as before?

Thanks.


have you tried the "install or update tables"  ?
Title: Re: No Price is listed in Shopping Cart?
Post by: DaggaTora on February 12, 2013, 18:31:12 PM
You read my mind! I was exactly doing that again while recieved the forum notification and now I get this:

Error: Install alterTable Duplicate column name 'product_price_publish_up' SQL=ALTER TABLE `lef_virtuemart_product_prices` CHANGE COLUMN `product_price_vdate` `product_price_publish_up` DATETIME NULL DEFAULT NULL AFTER `product_currency`
Error: Install alterTable Duplicate column name 'product_price_publish_down' SQL=ALTER TABLE `lef_virtuemart_product_prices` CHANGE COLUMN `product_price_edate` `product_price_publish_down` DATETIME NULL DEFAULT NULL AFTER `product_price_publish_up`

but i can´t find that columns in any table of the db.
Title: Re: With Child Products :No Price is listed in Shopping Cart?
Post by: PRO on February 13, 2013, 18:20:56 PM
I have renamed this thread to something more specific, so others that use child products might respond.
I do not use child products, and cant really give the best advice on this
Title: Re: With Child Products :No Price is listed in Shopping Cart?
Post by: DaggaTora on February 13, 2013, 18:38:28 PM
Thank you very mucho for your time and efforts.

Hope someone find a solution!
Title: Re: With Child Products :No Price is listed in Shopping Cart?
Post by: DaggaTora on March 05, 2013, 09:58:39 AM
Updated to 2.0.18c and still the same. No one has this problem with child prices in cart?  :o
Title: Re: With Child Products :No Price is listed in Shopping Cart?
Post by: anpegar on March 06, 2013, 18:56:50 PM
I have the same problem.

I created one product with five childs products, for diferents colours of product. I put the price of product only in the parent, and when select one of the product childs to put in the car, the price is 0.00. While in the page of the item, the price that appear is the price of the parent. I use different prices for buy more quantity of items.

You can see the example in this web: http://www.publicitatweb.es
Product page: http://www.publicitatweb.es/index.php/tienda/mecheros/mechero-basico13-detail

I am developer of components in joomla and I am trying patching the bug.

Sorry for my english!  ;D
Title: Re: With Child Products :No Price is listed in Shopping Cart?
Post by: anpegar on March 08, 2013, 17:09:42 PM
I find a "solution"...

I add the next line;

$productM->getProduct($product->virtuemart_product_id,true, true, true, $product->quantity);

In the function "prepareCartPrice()" int the file hepers/cart.php (frontend component) just before than this;

$productM->getProductPrices($product,$product->quantity,$virtuemart_shoppergroup_ids,true);

If the data is not correct, please contact with me.

Thanks.
Title: Re: With Child Products :No Price is listed in Shopping Cart?
Post by: Milbo on March 08, 2013, 20:14:30 PM
okey found and added, thanks. Next major release has a better cart architecture.
Title: Re: With Child Products :No Price is listed in Shopping Cart?
Post by: cybersholt on March 24, 2013, 15:02:57 PM
Was having same problem in 2.0.20b changed $productM->getProductPrices($product,$product->quantity,$virtuemart_shoppergroup_ids,true,true); to $productM->getProductPrices($product,$product->quantity,$virtuemart_shoppergroup_ids,true); in com/vm/helpers/cart.php

Hope this helps some one.