News:

Looking for documentation? Take a look on our wiki

Main Menu

Show price per product in cart

Started by pm4698, June 10, 2016, 23:48:15 PM

Previous topic - Next topic

pm4698

I use joomla 2.5 and virtuemart 2.6.10

In cart page i need for each product to get the final price, quantity and id.
With this:
$wantedpricecart = $product->salesPrice;
      $wantedproductid = $product->virtuemart_product_id;
      $wantedproductquantity = $product->quantity;

get quantity of product in cart and product id but i cannot get product final price.

Any ideas?

K&K media production


pm4698

I have tried this but i get no result at all. Any other ideas?

I remind you that i do the this inside the cart php file. Maybe should i include something to take the price?Or something else?

Thank you

Studio 42

Hi,
Can you not update to VM 3, i think the answer work for VM3 only.
In all case vm 3.0.14 have security fix, so i t's better for you to update it.

pm4698

I want too but my client does not unfortunately. He says he has to many customizations that are hard to identify now and transfer to vm3.

In any case, if someone has answer for Virtuemart 2, i would be grateful!

GJC Web Design

just echo out what's in the product loop of the cart so u can see if ind. prices are there

otherwise isn't product total price / quantity?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

pm4698

I found the answer after lots of tests:

$product->product_price