News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

With Child Products :No Price is listed in Shopping Cart?

Started by jiapei100, January 17, 2013, 13:42:19 PM

Previous topic - Next topic

anpegar

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

anpegar

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.

Milbo

okey found and added, thanks. Next major release has a better cart architecture.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

cybersholt

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.