<a href="https://console.cloud.google.com/apis/credentials">Get Your Api Credentials Here</a> <a href="https://calendar.google.com/calendar">Get your Calender ID</a> <?php include_once("wp-load.php"); function get_calender_events() { $params = array(); /*Get current date*/ $current_date = date('Y-m-d H:i:s'); /*Convert it to google calendar's rfc_format */ $rfc_format = date("c", strtotime($current_date)); $params[] = 'orderBy=startTime'; $params[] ='maxResults=100'; $params[] = 'timeMin='.urlencode($rfc_format); $url_param = ''; foreach($params as $param) { $url_param.= '&'.$param; } $calender_id = "calender_id"; $client_key = "client_key"; $url = "https://www.googleapis.com/calendar/v3/calendars/".$calender_id."/events?key=".$client_key."&singleEvents=true".$url_param; $list_events = wp_remote_post($url, ...
in app/code/core/Mage/Contacts/etc/config.xml
from <frontName>contacts</frontName>
to <frontName>contact-us</frontName>
or
To update the toplinks url of contact us go to the layout folder of your templates and find contacts.xml ( if not exist copy it from base > layout> ) and
replace
<action method=”addLink” translate=”label title” module=”contacts” ifconfig=”contacts/contacts/enabled”><label>Contact Us</label><url>contacts</url><title>Contact Us</title><prepare>true</prepare><urlParams/><position/><li/><a>class=”contact_us”</a></action>
to
<action method=”addLink” translate=”label title” module=”contacts” ifconfig=”contacts/contacts/enabled”><label>Contact Us</label><url>contact-us.html</url><title>Contact Us</title><prepare>true</prepare><urlParams/><position/><li/><a>class=”contact_us”</a></action>
Note : contact-us.html is the new URL for contact us page.
from <frontName>contacts</frontName>
to <frontName>contact-us</frontName>
or
Change of Magento contact page URL
How can I change Magento contact page URL
- In the Catalog menu click on URL Rewrite Management.
- Click the Add URL Rewrite button.
- Choose to add a Custom type.
- Enter “contacts” for ID Path and Target Path.
- Enter “contact-us.html” for the Request Path.
- Click the Save button.
To update the toplinks url of contact us go to the layout folder of your templates and find contacts.xml ( if not exist copy it from base > layout> ) and
replace
<action method=”addLink” translate=”label title” module=”contacts” ifconfig=”contacts/contacts/enabled”><label>Contact Us</label><url>contacts</url><title>Contact Us</title><prepare>true</prepare><urlParams/><position/><li/><a>class=”contact_us”</a></action>
to
<action method=”addLink” translate=”label title” module=”contacts” ifconfig=”contacts/contacts/enabled”><label>Contact Us</label><url>contact-us.html</url><title>Contact Us</title><prepare>true</prepare><urlParams/><position/><li/><a>class=”contact_us”</a></action>
Note : contact-us.html is the new URL for contact us page.
Comments
Post a Comment