Skip to content

Instantly share code, notes, and snippets.

View PayteR's full-sized avatar

Peter Payter Gašparík PayteR

View GitHub Profile
{
/**
* PostType paths
*/
// list of articles for category with pagination
{
path: '/posttype/category/:path+/page/:page(\\d+)/',
component: () => interopDefault(import('~/pages/archive/Category.vue')),
name: 'term-category_article-paged',
meta: { taxonomy: 'category' },
CREATE TABLE IF NOT EXISTS `wp_48_terms` (
`term_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`slug` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`term_group` bigint(10) NOT NULL DEFAULT '0',
PRIMARY KEY (`term_id`),
KEY `slug` (`slug`(191)),
KEY `name` (`name`(191))
) ENGINE=InnoDB AUTO_INCREMENT=100000 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
@PayteR
PayteR / superfaktura-discount-fix.php
Last active June 10, 2019 20:15
Oprava dane pri zlave pre Superfaktura plugin
/**
* Oprava dane pri zlave pre Superfaktura plugin - min. verzia 1.8.21
*
* Opravuje chybu, ked dan zlavy vychadza nespravne, napr.
* ak je cena 9.90 + 2.50 doprava, tak potom 7% zlava spravi
* ze dan pri zlave je nespravne 19% kvoli nespravnemu
* prepoctu na strane Woocommerce
*
* https://github.com/woocommerce/woocommerce/issues/23835
* https://github.com/woocommerce/woocommerce/issues/23827