I have created web-application using Joomla 2.5.
In that I have used Joomla user management. I have kept menu as View Profile & Edit Profile (Menu Item Type as Users Manager » User Profile). The problem is when I click on View Profile, I get un-wanted data also as shown below.
Basic Settings
Editor: Editor - JCE
Time zone: No Information Entered
Frontend language: No Information Entered
Backend Template Style: No Information Entered
Backend language: No Information Entered
Help Site: No Information Entered
so what I want is edit this page and show only what I wanted. Any idea what steps I need to follow to edit the same?
Edit 1
After following Lodder answer I am able to remove Basic settings. Now on page I have
Profile
Name:: dummy name
Username:: id
Registered Date: Sunday, 07 October 2012
Last visited date: Tuesday, 09 October 2012
However what I want is
Profile
Name:: dummy name
Username:: id
Email Id :: dummy#dummy.com
Phone :: 12345678
Follow these simple steps:
Go to the Joomla backend
Go to User Manager
Open the Paramaters window
Set "Frontend User Parameters" to "Hide"
Update:
To replace the last 2 fields with e-mail and phone, I firstly recommend you do a template override so that you are not editing any core Joomla files.
What you want to be overriding is the following:
root/components/com_users/views/profile/tmpl/default_core.php
Once you have overridden this file, open it and starting on line 31, you will see the following code:
<dt>
<?php echo JText::_('COM_USERS_PROFILE_REGISTERED_DATE_LABEL'); ?>
</dt>
<dd>
<?php echo JHtml::_('date', $this->data->registerDate); ?>
</dd>
which needs to be replaced with:
<dt>
<?php echo "E-mail"; ?>
//or you can make this language based. Up to you.
</dt>
<dd>
<?php $user = JFactory::getUser();
echo $user->email; ?>
</dd>
The same applies for the other field which I assume will be something along the lines of this, depending on how you created it:
<dt>
<?php echo "Phone"; ?>
//or you can make this language based. Up to you.
</dt>
<dd>
<?php $user = JFactory::getUser();
echo $user->phone; ?>
</dd>
Related
Whene i change the languages in magento , the url displayed is bellow :
http://xxxxxx.xx/?___store=english&___from_store=default , so my question is change this to
be like this http://xxxxx.xx/en/.......
Please can you propose me how to do this in magento ?
Firstly go to admin panel System -> Configuration
Under Configuration -> Web -> Url options and change ‘Add Store Code to Urls’ to ‘Yes’.
Then change template file app/design/frontend/enterprise/default/template/page/switch/languages.phtml line 50 (or similar destination for your custom theme)
<a href="<?php echo $_lang->getCurrentUrl() ?>
to
<a href="<?php echo $_lang->getCurrentUrl(false) ?>
Hi all our website is Caged.eu and we have customised a Template from pre 1.9. Magento allows customer to register but when they try to sign in using that login details login page doesnt respond, this also happens when they ask to resend password it send reset details but still doesnt work.
Oddly the click facebook link to sign up login does work which is another extension we are ready to release but after getting it this well done would hate to have to change template.
Im sure its something stupid but would really appreciate your help guys
In Magento 1.9 the forms are unable to store the data as formkey missing. Try to add the key then you can be able to sign in. Add <?php echo $this->getBlockHtml('formkey'); ?> this at line no 41 below <form> tag in app/design/frontend/[your theme package]/[your theme]/template/persistent/customer/form/login.phtml
And check whether you can update product quantity in cart, there also formkey is missing.
Copy base/default/template/customer and base/default/template/persistent to your theme/template
After you had added the line <?php echo $this->getBlockHtml('formkey'); ?>
Perhaps you need to to flush magneto cache from magento admin (System->Cache management), then you can try the frontend customer login again.
As already replied in magento.stackexchange you should edit
/app/design/frontend/default/template-name/template/persistent/customer/form/login.phtml
and inside the "login form" form, after the
<ul class="form-list">
you should insert
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
and this will solve your problem, as it did with mine.
Hope this helps
so be it - manemoi
Theodore
How to add Home menu in magento home page. I add the code In this location
magento\app\design\frontend\default\grayscale\template\catalog\navigation
<li>
<a href="<?php echo $this->getUrl('') ?>">
<?php echo $this->__('Home'); ?>
</a>
</li>
But home menu not displayed on the home page of Magento
You have to keep the categories you want to display in menu under the root directory.
There may be more cases possible on why menu is not appearing.
Please consider following these guides :
http://www.magentocommerce.com/wiki/3_-_store_setup_and_management/catalog/enable_top_menu_navigation
http://www.atwix.com/magento/how-to-add-a-new-item-to-the-navigation-menu/
http://www.youtube.com/watch?v=w4z1RyyFHhU
Are you sure this is the template you're store is using?
You can check by enabling template hints in the developer section of the admin area.
this will hiliight all the blocks/templates for you and show the path to each file used. You will be able to check if the template you have modified is the template being used.
I am new in magento.I want to change footer part.
my footer file path: D:\wamp\www\magento\app\design\frontend\base\default\template\page\html\footer.phtml.
<div class="footer-container">
<div class="footer">
<?php echo $this->getChildHtml() ?>
<p class="bugs"><?php echo $this->__('Help Us to Keep Magento Healthy') ?> - <strong><?php echo $this->__('Report All Bugs') ?></strong> <?php echo $this->__('(ver. %s)', Mage::getVersion()) ?></p>
<address><?php echo $this->getCopyright() ?></address>
</div>
Now I want to remove Help us to keep sentence.
please tell me how to remove this
I have deleted fulll then also it is shown in frontend.
Go to admin section System>Configuration>Advanced>Developer>Debug Then enable Template path hints. After this refresh your site frontend.
You will get the correct information from which theme your file is being loaded.
Then change the correct footer.phtml file.
This message will go.
I think you are new to magento.
For better knowledge read Design Packages
This is a cache issue.
Navigate to your site's cache:
public_html/var/cache //Or where ever the route of your Magento cart is.
Then Delete all the things in the var directory!
Refresh your site and your changes should appear.
I am new to Magento.I am learning it.
I want to add a button "Add to Wishlist" near to "add to cart" button in Magento product detail page.
How can I do this so that the selected product will be added to wishlist.
Please Help
Thanks.
This feature already exist in Magento.
If you want to check this feature via Code than check this out -
<div class="add-to-box">
<?php echo $this->getChildHtml('addto') ?>
</div>
This Code you can find within [Theme]/template/catelog/product/view.phtml.
This code causes to call "Add to wishlist" button in Product Detail Page and this button comes from [Theme]/template/catelog/product/view/addto.phtml.
From here you can manage this Button.
You can also enable or disable this feature via Admin Section -
To control the display of the Add to Wishlist link:
From the Admin panel, select System > Configuration.
In the Configuration panel on the left, under Customers, select the Wishlist tab.
Click to expand the General Options section and do one of the following:
Set Enabled to Yes to display the Add to Wishlist link on category pages and product pages.
Set Enabled to No to remove the Add to Wishlist link from category pages and product pages.
Hope it'll be helpful.
Thanks!
Simple go to: ...catalog/product/view/addto.phtml and then:
<a href="<?php echo $this->
helper('wishlist')->getAddUrl($_product) ?>">
<?php echo $this->__('Add to Wishlist') ?></a>
Use the following code for 'Add to wishlist' button
<a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>"
class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a>
Use the following code for 'Add to cart' button
<button type="button" title="<?php echo $this->__('Add to Cart') ?>"
class="button btn-cart"
onclick="setLocation('<?php echo $this->helper('checkout/cart')->getAddUrl($_product) ?>')">
<span>
<span><?php echo $this->__('Add to Cart') ?></span>
</span>
</button>
I would have written this as a comment on Anx's answer but I don't have 50 reputation yet (funny system, surely comments are more trivial than answers?) so I'm adding another answer instead.
If you still have trouble after following Anx's advice then maybe you've got the same odd situation that I had - no entry in the core_config_data table for the config setting "wishlist/general/active". Even though it was marked as active in the admin panel. To fix it, I simply went to System > Configuration > Wishlist and clicked "Save Config" without changing anything. Presto, the entry appeared in core_config_data (along with "wishlist/email/email_template", "wishlist/email/email_identity" and "wishlist/wishlist_link/use_qty").