Skip to main content

Get Google Calendar Event List in WordPress

<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, ...

Magento. How to edit Contact us page

Magento. How to edit Contact us page

How to change the title of the browser tab on the “Contacts” page?

On your  FTP server in the folder where the Magento files are stored, go to \app\design\frontend\default\theme_number\layout and open  a  file called contacts.xml to edit.
Change the name of the page  where it says
 
<reference name="head"><br>
  <action  method="setTitle" translate="title"  module="contacts"><title><strong>Contact Us</strong></title></action><br>
</reference>

 

How to change the form field text on the “Contacts” page?


On your FTP server go to \magento\app\design\frontend\base\default\template\contacts and open a file called form.phtml to edit. Hit Ctrl  (MAC: Command) + F to look for the text to change it. Save your changes once you are done.

How to define your  Magento store contact info?

Log into your Magento admin panel and go to System -> Configuration -> Contacts (left-side panel).

Under Contact Us -> Enable Contact Us make sure that “Yes” is selected.
Under Email options -> Send Email To specify the e-mail address that you want to use for receiving feedbacks when the form on the “Contacts” page is used.There are two more options below:
  • The EmailSender — Indicates the name on the from: line of comments sent using the ContactUs form;
  • Email Template — Template used when customers’ comments are sent to the email address specified in the Send emails To field.   

How to define your Magento site e-mail addresses?

 Magento allows you to maintain multiple email addresses for your store, according to role. Go to admin: System -> Configuration -> Store Email Addresses:

In this section you can specify the Sender Name (from whom the emails are sent)  and Sender Email (used for sending emails). Any unused fields can be left blank.
Note, these settings are applied to the whole website. If you run multiple stores on a Website, you may set different Email addresses for each store.
To enter email addresses for an individual store that differ from those specified for entire Website:
  1. Select the desired store in the Current Configuration Scope dropdown menu in the upper-left portion of the system configuration screen.
  2. Click the Store Email Addresses section.
  3. Clear the Use website check box next to the field you want to change and replace the value in the field with the desired one.
Click on “Save Config” to save your changes.

How to add a new field (non-required) to the form?

  <li>
<label for="telephone"><?php echo Mage::helper('contacts')->__('Telephone') ?></label>
 <div class="input-box">
<input name="telephone" id="telephone" title="<?php echo Mage::helper('contacts')->__('Telephone') ?>" value="" class="input-text" type="text" />
</div>
 </li>

How to add a new detail field to your email?


In your Magento admin you need to go to  System -> Transactional E-mails -> Add New Template.

Choose ‘Contact Form’ from the “Template”drop-down and  click ‘Load Template’.

Under the “Template Information” give a new name to your form template and add a new field to the current email content. E.g.:

Fax: {{var data.fax}}
Click on “Save template”.
Then go to System -> Configuration -> Contacts and in the ‘Email Options’ choose your new template name under the ‘Email Template’ dropdown menu.

Click on “Save Config”.

Comments

Popular posts from this blog

Create Signature pad with save on database in php

Create Signature pad with save on database in php 1.create a folder images index.php ============   <!DOCTYPE >     <head>     <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />     <title>Signature Pad</title>     <script type="text/javascript" src="jquery-1.8.0.min.js"></script>     <script type="text/javascript"> $(document).ready(function () {     /** Set Canvas Size **/     var canvasWidth = 400;     var canvasHeight = 100;     /** IE SUPPORT **/     var canvasDiv = document.getElementById('signaturePad');     canvas = document.createElement('canvas');     canvas.setAttribute('width', canvasWidth);     canvas.setAttribute('height', canvasHeight);     canvas.setAttribute('id', 'canvas');     canvasDiv.appendChild(canvas);    ...

Get Google Calendar Event List in WordPress

<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, ...

WooCommerce Mini cart With Ajax

WooCommerce Mini cart //MINI CART SECTION   <div class="productdiv rightcart">                                                         <?php if ( ! WC()->cart->is_empty() ) : ?>     <ul class="woocommerce-mini-cart cart_list product_list_widget <?php echo esc_attr( $args['list_class'] ); ?>">         <?php             do_action( 'woocommerce_before_mini_cart_contents' );             foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {                 $_product     = apply_filters( 'woocommerce_cart_item_pro...