News:

Support the VirtueMart project and become a member

Main Menu

Show product' s price in add-to-cart pop-up

Started by t_zaharia, September 18, 2013, 15:22:12 PM

Previous topic - Next topic

t_zaharia

Hello :)

We have joomla 2.5.9 and virtuemart 2 installed.
It is our project' s requirement to show product' s price (and name, quantity) in the add-tocart pop-up.
The file I need to edit is components/com_virtuemart/controllers/cart.php, right?
Echoing $this->loadTemplate('showprices') there did not work though...

Can anyone help, please?

Thanks in advance,
Theoni

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

t_zaharia

I' m sorry, we have joomla 2.5.9, virtuemart 2.0.20b and PHP Version 5.4.19 installed.

Thanks in advance,
Theoni

jenkinhill

Both your Joomla and VirtueMart versions have known security issues, so you should consider updating.
http://forum.virtuemart.net/index.php?topic=118683.0
http://virtuemart.net/news/list-all-news/446-important-security-release-vm-team-at-joomladay-germany

Current VM version is 2.0.22d - in this version there is a cart popup template file at  components/com_virtuemart/views/cart/tmpl/padded.php
If editing this file be sure to use the edited file as a template override.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

t_zaharia

Hello!

Thank you very much, I just updated to the latest virtuemart version.

I found the file, thank you.

Could you tell me where the continue_link is set?

Thank you in advance,
Theoni

Maxim Pishnyak

You could check this thread 'Change continue shopping action'.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

t_zaharia

Hello!
Thanks for the reply, I had been trying to add $_SERVER['HTTP_REFERER'] to the correct spot (also tried at view.html.php ...), but that link helped :)

Sorry to be asking much, but the price of the product isn' t shown.. Isn' t $this->product->product_price the correct variable?


Thanks a lot,
Theoni

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

t_zaharia

Hello!
Thank you for the reply.

It looks like the variables $this->product->prices['salesPrice'], $this->product->price, $this->product->name don' t return any values when used in the padded.php...and echo "<pre>"; print_r( $this->products ); echo "</pre>"; returns 1..


Thank you,
Theoni


t_zaharia

Hi!
I found what was wrong, there was an override of a file that messed with the procedure, I restored the default and... problem solved!

Thank you all,
Theoni