VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Coding Central => Topic started by: Stiffler on March 23, 2014, 23:49:34 PM

Title: How to print on screen cart total value.
Post by: Stiffler on March 23, 2014, 23:49:34 PM
Hello,
Im newbie in php, js, virtuemart but im still learn every day (since last weeks even too much).


I need simple plugin too write. If cart value will be 1000 dollars it has to do discount -50%. Nothing else.
But i stuck, coz i don't know how to get notice about cart total value.

I know that supose to be easy, but as I said Im newbie but im going to learn.

Or tell me how to start to get as simply things like obtain information about current session.

ps. Ive tried to modify one script which i found on google. I tried to get products amount in current cart.
Ive figured out that this information will be in $calculationHelper->_amount. I'd like to print this in module but im too stupid or too unlucky.
Its a code:

http://pastebin.com/upxJA9Zu ($this->dupa);

Sorry for my english, unfortunetly im not native speaker of english.

Peace!
Title: Re: How to print on screen cart total value.
Post by: K&K media production on March 24, 2014, 23:35:46 PM
http://extensions.virtuemart.net/products/quantity-related-price-calculation-detail

you can use this plugin
Title: Re: How to print on screen cart total value.
Post by: Stiffler on March 25, 2014, 00:01:58 AM
I would prefer do to it by myself.
I'd like to learn virtuemart (and joomla api) anyway,I think that script like that, it's perfect to start work with any APIs (coz its my first one).
Title: Re: How to print on screen cart total value.
Post by: Stiffler on March 25, 2014, 00:06:44 AM
anyway I have this plugin, as I said Ive found it on google. Exactly the same! I didn't know that is not free it was on somebody's ftp site
But...
Its not based on cart value. Only on cart quanity.
Title: Re: How to print on screen cart total value.
Post by: K&K media production on March 25, 2014, 11:22:07 AM
Buy this one and it works with cart amount. My clint use it.