VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: webmanwebdesign on October 25, 2024, 11:19:11 AM

Title: Cart JSON Additional Info
Post by: webmanwebdesign on October 25, 2024, 11:19:11 AM
Hi there,

I am trying to create my own "Free Shipping Info" Modul which displays the missing amount of money until you get free shipping. I can get the info of the bill total amount via /index.php?option=com_virtuemart&nosef=1&view=cart&task=viewJS&format=json

Is there a way to get the total weight of the cart into this JSON?
I really would need this to calculate the right way.

Kind regards
Tanja
Title: Re: Cart JSON Additional Info
Post by: Jumbo! on October 25, 2024, 17:37:31 PM
You need to create a custom plugin to generate and provide the JSON. The standard VirtueMart does not have such options.
Title: Re: Cart JSON Additional Info
Post by: Milbo on November 12, 2024, 22:59:35 PM
Hmm, it is not a big deal to add the weight to the cart json, if we just change the core.