This file contains 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 | |
// guest registration | |
function wc_register_guests( $order_id ) { | |
// get all the order data | |
$order = new WC_Order($order_id); | |
//get the user email from the order | |
$order_email = $order->billing_email; | |
This file contains 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
// Function to change email address | |
function wpb_sender_email( $original_email_address ) { | |
return 'admin@example.com'; | |
} |
This file contains 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
Navigate to file Path: {PLUGIN PATH}/includes/pricing-rules-3.php | |
Line No: 1422 | |
Replace the code: | |
$item_price = '<del>' . $item_price . '</del> <ins>' . ($price_to_display) . '</ins>'; | |
To: | |
if(isset($this->matched_sets[$product_id][0]['amount']['percentage_discount'])){ | |
$percent = $this->matched_sets[$product_id][0]['amount']['percentage_discount']; |
This file contains 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 | |
/*------------------------------------------------------------------------ | |
# mod_j2store_cart - J2 Store Cart | |
# ------------------------------------------------------------------------ | |
# author Sasi varna kumar - Weblogicx India http://www.weblogicxindia.com | |
# copyright Copyright (C) 2014 - 19 Weblogicxindia.com. All Rights Reserved. | |
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL | |
# Websites: http://j2store.org | |
# Technical Support: Forum - http://j2store.org/forum/index.html | |
-------------------------------------------------------------------------*/ |
This file contains 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 | |
/** | |
* @package J2Store | |
* @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org | |
* @license GNU GPL v3 or later | |
*/ | |
/** ensure this file is being included by a parent file */ | |
defined('_JEXEC') or die('Restricted access'); | |
require_once JPATH_SITE . '/components/com_content/router.php'; |
This file contains 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 | |
/*------------------------------------------------------------------------ | |
# mod_j2store_cart - J2 Store Cart | |
# ------------------------------------------------------------------------ | |
# author Sasi varna kumar - Weblogicx India http://www.weblogicxindia.com | |
# copyright Copyright (C) 2014 - 19 Weblogicxindia.com. All Rights Reserved. | |
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL | |
# Websites: http://j2store.org | |
# Technical Support: Forum - http://j2store.org/forum/index.html | |
-------------------------------------------------------------------------*/ |
This file contains 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 | |
/** | |
* @package FrameworkOnFramework | |
* @subpackage controller | |
* @copyright Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
// Protect from unauthorized access | |
defined('F0F_INCLUDED') or die; |
This file contains 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
<script type="text/javascript">window.NREUM||(NREUM={}),__nr_require | |
=function(e,n,t){function r(t){if(!n[t]){var o=n[t]={exports:{}};e[t][0].call(o.exports,function(n){var | |
o=e[t][1][n];return r(o||n)},o,o.exports)}return n[t].exports}if("function"==typeof __nr_require)return | |
__nr_require;for(var o=0;o<t.length;o++)r(t[o]);return r}({1:[function(e,n,t){function r(){}function | |
o(e,n,t){return function(){return i(e,[c.now()].concat(u(arguments)),n?null:this,t),n?void 0:this}}var | |
i=e("handle"),a=e(2),u=e(3),f=e("ee").get("tracer"),c=e("loader"),s=NREUM;"undefined"==typeof window | |
.newrelic&&(newrelic=s);var p=["setPageViewName","setCustomAttribute","setErrorHandler","finished","addToTrace" | |
,"inlineHit","addRelease"],d="api-",l=d+"ixn-";a(p,function(e,n){s[n]=o(d+n,!0,"api")}),s.addPageAction | |
=o(d+"addPageAction",!0),s.setCurrentRouteName=o(d+"routeName",!0),n.exports=newrelic,s.interaction=function | |
(){return(new r).get()};var m=r.prototype={createTracer:function(e,n){var t={},r=this,o="function"==typeof |
This file contains 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 | |
//This is a dirty workaround. Try it only if knew what you are doing. | |
//make sure to adjust the path or make sure the language ini file is also located in same folder as this script | |
error_reporting(E_ALL); | |
if(function_exists('parse_ini_file')) { | |
$ini_array = parse_ini_file('en-GB.com_example.ini'); | |
print_r($ini_array); | |
}else { | |
echo 'Sorry parse_ini_file function is disabled in your PHP settings. Enable it before running this script'; | |
} |
This file contains 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
$contents = file_get_contents($filename); | |
$contents = str_replace('_QQ_', '"\""', $contents); | |
$strings = @parse_ini_string($contents); |