News:

Looking for documentation? Take a look on our wiki

Main Menu

Weight Calculation / Total in Cart or Checkout

Started by saviB, November 19, 2013, 18:17:06 PM

Previous topic - Next topic

saviB

VM 2.0.24

I've read a few posts that deal with this, but I have not found a definitive solution or answer.

1. I can display individual product weight in cart with:
<td align="left"><?php  echo $prow->product_weight ?></td>

2. I need to have weight subtotal in cart, as calculated by quantity.

3. I need to have a per order weight total.
http://fairpricestudio.com/vm_images/weight_cart.jpg

4. I need to add weight to product custom fields.
http://fairpricestudio.com/vm_images/custom_fields.jpg

I've read through:
https://forum.virtuemart.net/index.php?topic=115921.0
But I don't want to create product children when just adding weight to product custom fields seems so easy.

http://forum.virtuemart.net/index.php?topic=115233.0
But this seems to be already out of date as my cart.php doesn't contain $cart = VirtueMartCart::getCart(false);

In my cart.php I DO find:

         //** @todo WEIGHT CALCULATION
         //$weight_subtotal = vmShipmentMethod::get_weight($product["virtuemart_product_id"]) * $product->quantity'];
         //$weight_total += $weight_subtotal;

So - is this something that is stuck in the TO DO list? Is the a definitive answer on how to make this work - including which files/lines to modify?

servlet

Is there a solution to add weight to custom field?
I need it too...
Он-лайн магазин за фототапети http://mishelfoster.com

GJC Web Design

this is over a year old with version VM 2.0.24

have u checked the latest?  afaik there is a public function now to get the cart weight (see ship plugin)
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

servlet

No I didnt check latest version. I am using 2.6.14 which is form 2 months ago.
Он-лайн магазин за фототапети http://mishelfoster.com

servlet

I checked latest version for J!3.x. There is no such option. May be it is possible to implement it via additional coding, but I am not a web developer.
I think this function is "must have" for professional e-shops. It will be nice if we know real weight of product + custom field (maybe for both: stockable non nonstockable variant)

By the way, in latest version I cant find stockable variant plugin.

Regards
Он-лайн магазин за фототапети http://mishelfoster.com