× Joomla Facebook Connect support forum

Topic-icon Virtuemart Account Maintenance

Active Subscriptions:

None
14 years 6 months ago #15489 by Adam
Replied by Adam on topic Virtuemart Account Maintenance
Alex,
Thanks for the great support!

I left you a rating and review on the Joomla Extension Directory!

Thank for everything,
Adam
The topic has been locked.
Support Specialist
14 years 6 months ago #15498 by alzander
Adam,
No problem for the support, and thank you so much for the review. We really appreciate it!

Good luck, and should you need anything else, you know where to find us!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #16097 by Cydonian

alzander wrote: Yup Change it to the below, and hopefully, you'll be good to go:
Code:_('PHPSHOP_ACCOUNT_TITLE'); ?> What you were doing was assigning the VM_LANG translation to a variable named $text. But weren't actually echo'ing (printing it to the screen) anywhere. Above, I just echo it directly, instead of saving it to a variable.


Hello Alex,
I modified the /modules/mod_jfbclogin/tmpl/default.php file as you told above to add "account maintenance" link for virtuemart, before "logout" button but I got this error:
"Welcome Cydonian,
Fatal error: Call to a member function _() on a non-object in .../public_html/kozmetikmarketi/modules/mod_jfbclogin/tmpl/default.php on line 187"

EDIT:
okay I found the error, I added this code to line 8 in /modules/mod_jfbclogin/tmpl/default.php file:
global $VM_LANG;
I added this code to line 187 in /modules/mod_jfbclogin/tmpl/default.php file before 'showLogoutButton' part :

P.S: I couldn't add my code to my message using code tag of this forum because it did not display my code correctly so I converted it to an image and I uploaded it to an image hoster web site *lol*

Now it is working!
But I have another question: These are items displayed when you click "account maintenance", I want to display sub-contents of "account maintenance" before "jfbconnect logout" button as a menu, instead of only "account maintenance" link.
1) index.php?page=account.billing&option=com_virtuemart&Itemid=1
2) index.php?page=account.shipping&option=com_virtuemart&Itemid=1
and 3) order information (previous or current)
Thanks!
The topic has been locked.
Support Specialist
14 years 6 months ago #16149 by alzander
Cydonian,
Sorry for not getting back to this sooner. To do the other links should be pretty similar to how you did the original Account Maintenance link. The example below does not do the text translation, which may or may not be necessary.. if so, let us know:
<a href="<?php echo JRoute::_('index.php?page=account.billing&option=com_virtuemart&Itemid=1'); ?>">Billing</a><br/>
<a href="<?php echo JRoute::_('index.php?page=account.shipping&option=com_virtuemart&Itemid=1'); ?>">Shipping</a>

Try that, and hopefully, that's all you'll need. If it doesn't work though, just let us know!

Alex
The topic has been locked.