This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Magento: Getting categroy from product | |
| $categoryIds = $_product->getCategoryIds(); | |
| if(count($categoryIds) ){ | |
| $firstCategoryId = $categoryIds[0]; | |
| $_category = Mage::getModel('catalog/category')->load($firstCategoryId); | |
| echo $_category->getData('categorysecondimage'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(function(){ | |
| /** | |
| * Checking if cookie already exists, if so redirect to denied page. | |
| */ | |
| if($.cookie("pro80denied")=="true"){ | |
| location.href="denied/"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://help.aweber.com/entries/21775378-how-do-i-integrate-dlguard-with-aweber |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action('init', 'cptui_register_my_cpt_slider'); | |
| function cptui_register_my_cpt_slider() { | |
| register_post_type('slider', array( | |
| 'label' => 'Slider', | |
| 'description' => 'Home Page Slider', | |
| 'public' => true, | |
| 'show_ui' => true, | |
| 'show_in_menu' => true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Import coupon codes | |
| // Thanks go out to Marius Strajeru | |
| // Original URL: http://marius-strajeru.blogspot.nl/2010/04/create-bulk-discount-rules.html | |
| require 'app/Mage.php'; | |
| Mage::app(); | |
| // Import CSV from ViArt format: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| fuel_set_var("page_title","Search"); | |
| $results = array(); | |
| $search = $this->load->model('search_model'); | |
| $current_page = $this->input->get("page"); | |
| $rowLimit = $this->input->get("limit"); | |
| $tabsource = $this->input->get("tab-source"); | |
| $tabcat = $this->input->get("tab-category"); | |
| $parameters["qs"] = $this->input->get("qs"); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| foreach (glob("*.txt") as $filename) { | |
| echo "$filename size " . filesize($filename) . "\n"; | |
| } | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
| class Search_site extends MY_Model { | |
| protected $_tables; | |
| function __construct() | |
| { | |
| $CI =& get_instance(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action( 'woocommerce_before_calculate_totals', 'add_custom_price' ); | |
| function add_custom_price( $cart_object ) { | |
| $custom_price = 0; // This will be your custome price | |
| //Your Custom Price Forumula goes here | |
| $totalWeight = 50; // you can this variable value from post/get or cookie etc. | |
| $unitWeight = 8; //8lbs default unit for basic unit price; | |
| $unitPricePerWeight = (float) 0.44; //your unit price per 8lbs weight; | |
| $noOfOrderDays = 10; // you can populate this varaible value from post/get/cookie or session. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- ==================== BEGIN TAO VSL ================= --> | |
| <!-- Offer Goal Conversion: Accelerated Seduction Program --> | |
| <iframe src="https://badass.go2cloud.org/GL8" scrolling="no" frameborder="0" width="1" height="1"></iframe> | |
| <!-- // End Offer Goal Conversion --> | |
| <!-- ==================== END TAO VSL ================= --> | |
| <!-- ==================== BEGIN FAW VSL (08122013) ================= --> | |
| <!-- Offer Goal Conversion: Accelerated Seduction Program --> | |
| <iframe src="https://www.trueclick.me/GLc" scrolling="no" frameborder="0" width="1" height="1"></iframe> | |
| <!-- // End Offer Goal Conversion --> |