// http://stackoverflow.com/questions/26581467/creating-woocommerce-order-with-line-item-programatically
$address = array(
'first_name' => 'Fresher',
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 | |
| // CASH PAYMENT GATEWAY | |
| /** | |
| * Add the gateway to WC Available Gateways | |
| * | |
| * @since 1.0.0 | |
| * @param array $gateways all available WC gateways | |
| * @return array $gateways all WC gateways + offline gateway |
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 | |
| define('_JEXEC', 1); | |
| define('JPATH_BASE', __DIR__); | |
| require_once JPATH_BASE . '/includes/defines.php'; | |
| require_once JPATH_BASE . '/includes/framework.php'; | |
| // Boot the DI container | |
| $container = \Joomla\CMS\Factory::getContainer(); | |
| /* |
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 | |
| // строка 32,38,39,40 создаем поля в системных и прописываем там идентификаторы | |
| // ini_set('display_errors', 1); | |
| // ini_set('error_reporting', -1); | |
| require_once MODX_CORE_PATH . 'components/minishop2/model/minishop2/mspaymenthandler.class.php'; | |
| class TinkoffCredit extends msPaymentHandler implements msPaymentInterface{ | |
| public $demo; |
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
| <? | |
| //amo | |
| //ПРЕДОПРЕДЕЛЯЕМЫЕ ПЕРЕМЕННЫЕ | |
| $responsible_user_id = 7292136; //id ответственного по сделке, контакту, компании | |
| $lead_name = 'Заявка с сайта'; //Название добавляемой сделки | |
| $lead_status_id = '11331793'; //id этапа продаж, куда помещать сделку | |
| $contact_name = $cname; //Название добавляемого контакта | |
| $contact_phone = $cphone; //Телефон контакта |
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
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>stark coffee table keyboard</title> | |
| <link rel="stylesheet" href="css/reset.css"> |
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($){ | |
| $('#filter').change(function(){ | |
| var filter = $('#filter'); | |
| $.ajax({ | |
| url:filter.attr('action'), | |
| data:filter.serialize(), // form data | |
| type:filter.attr('method'), // POST | |
| beforeSend:function(xhr){ | |
| //filter.find('button').text('Processing...'); // changing the button label | |
| $('#appendTable').html('<label class="alert">Processing...</label>'); |
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( 'wpcf7_submit', function( $contact_form, $result ) { | |
| if ( empty( $result['status'] ) || 'mail_sent' != $result['status'] ) { | |
| return; | |
| } | |
| $submission = WPCF7_Submission::get_instance(); | |
| if ( ! $submission || ! $posted_data = $submission->get_posted_data() ) { | |
| return; | |
| } |
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 | |
| /** | |
| * The template for displaying product content in the single-product.php template | |
| * | |
| * Override this template by copying it to yourtheme/woocommerce/content-single-product.php | |
| * | |
| * @author WooThemes | |
| * @package WooCommerce/Templates | |
| * @version 1.6.4 | |
| */ |
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 | |
| /****************************************************************************** | |
| * Variation Grid | |
| * | |
| * The following function allow for the theme to display product variations in a grid format. | |
| * This code could be moved to a plugin but is in the theme function file as it used the | |
| * themes grid system. | |
| * | |
| * @reference: http://www.eggplantstudios.ca/woocommerce-product-variation-add-cart-grid/ | |
| * ******************************************************************************/ |