News:

Support the VirtueMart project and become a member

Main Menu

Trying to get info from a var in virtuemart, located in the /helpers

Started by ArchiB, October 17, 2017, 14:57:13 PM

Previous topic - Next topic

ArchiB

Hi,

Joomla: 3.8.1
Virtuemart: 3.2.4
PHP: 7.1.10

I have 1 comment and 1 question

1 comment: FYI, you guys have a lot of links in google that are in the https and are currently being blocked (here is a link example found when searching on google: https://forum.virtuemart.net/index.php?board=114.0   I think you should put a redirect on those in your htaccess or on your server.  ( you are probably losing a lot of visits because of it)

1 question: In the helpers file (com_virtuemart/helpers/cart.php) on line 1799 I can see this:

if ($data->totalProduct>1) $data->totalProductTxt = vmText::sprintf('COM_VIRTUEMART_CART_X_PRODUCTS', $data->totalProduct);

I want to use the var: $data->totalProduct in an article.  Sourceror is installed so I can put php in between the {source}{/source}

However, I can seem to be able to get the information to pass through from virtuemart to the page.

I've tried many things.  Would someone have any suggestion?  Here is my simplest try:

<?php echo $data->totalProduct?>


Any help appreciated.

thanks!