<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, ...
Move related products from default sidebar location into main product page in Magento.
1. Open catalog.xml, found in
app/design/frontend/default/YOURTEMPLATEFOLDER/layout/
2. In catalog.xml find the catalog_product_view section, around line 205. In the section, remove or comment out:
1. Open catalog.xml, found in
app/design/frontend/default/YOURTEMPLATEFOLDER/layout/
2. In catalog.xml find the catalog_product_view section, around line 205. In the
<block type="catalog/product_list_related"
name="catalog.product.related" before="-"
template="catalog/product/list/related.phtml"/>
and replace with:
<reference name="content">
<block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
<block type="catalog/product_list_related"
name="catalog.product.related" as="related"
template="catalog/product/list/related.phtml"/>
</block>
</reference>
3. Now in your catalog/product/view.phtml you can print out the related products using
<?php echo $this->getChildHtml('related'); ?>
Comments
Post a Comment