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 | |
| require __DIR__ . '/vendor/autoload.php'; | |
| use Automattic\WooCommerce\Client; | |
| use Automattic\WooCommerce\HttpClient\HttpClientException; | |
| function getWoocommerceConfig() | |
| { |
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
| /* 575.747289 is the exchange rate to change. */ | |
| UPDATE ps_product_shop SET price = (price/575.747289); | |
| /* 575.747289 is the exchange rate to change. */ | |
| UPDATE ps_product SET price = (price/575.747289) ; |
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 | |
| class Cart extends CartCore | |
| { | |
| /** | |
| * This is a override of getTotalShippingCost. | |
| * This calculates the shipping according to the quantity into the cart. | |
| * For each product into the cart, the shipping is going to be incremental by its 50%. | |
| * E.g: Shipping initial Cost = 2000 and there are 3 products | |
| * So, One product 2000, two Products 2000 + 1000 = 3000, three products 3000 + 1500 = 4500 and etc. |
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 | |
| /* | |
| Plugin Name: Hangar plugin | |
| Description: Hangar prueba | |
| Version: 0 | |
| Author: Daniel Bogarin | |
| License: GPL2 | |
| */ | |
| class WPHangarAPi { |
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
| [{ | |
| "sku": "GIJOE036", | |
| "categorias": ["GI Joe", "80s", "Cartoon"], | |
| "titulo": "Cobra Commander G.I. Joe T-Shirt", | |
| "url": "cobra-commander-g-i-joe-t-shirt", | |
| "pics": ["https:\/\/80stees.imgix.net\/s\/files\/1\/0384\/0921\/products\/cobra-commander-g-i-joe-t-shirt.v3.dsk.jpeg?v=1461357556&usm=18&auto=format&fit=max&h=710&w=463&"], | |
| "desc": "This G.I Joe shirt is officially licensed by Hasbro and features a print of the Cobra logo.", | |
| "articulos": [{ | |
| "precio": 26.97, | |
| "descuento": 0, |
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 | |
| require __DIR__ . '/vendor/autoload.php'; | |
| use Automattic\WooCommerce\Client; | |
| use Automattic\WooCommerce\HttpClient\HttpClientException; | |
| function getWoocommerceConfig() | |
| { | |
| $woocommerce = new Client( |
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
| name: wordpress | |
| recipe: wordpress | |
| proxy: | |
| pma: | |
| - pma.wordpress.lndo.site | |
| config: | |
| webroot: . | |
| via: nginx | |
| php: '7.0' | |
| xdebug: 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 | |
| wp_nav_menu(array( | |
| 'theme_location' => 'header-menu', | |
| 'container' => false, | |
| 'menu_class' => 'nav-list', | |
| 'walker' => new Walker_Simple_Example(), | |
| )); |
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
| wordpress: | |
| image: wordpress | |
| links: | |
| - wordpress_db:mysql | |
| ports: | |
| - 8080:80 | |
| volumes: | |
| - ./wp-content/:/var/www/html/wp-content | |
| wordpress_db: | |
| image: mariadb |
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
| <script> | |
| function getCookie(c_name) { | |
| if (document.cookie.length > 0) { | |
| c_start = document.cookie.indexOf(c_name + "="); | |
| if (c_start != -1) { | |
| c_start = c_start + c_name.length + 1; | |
| c_end = document.cookie.indexOf(";", c_start); | |
| if (c_end == -1) { | |
| c_end = document.cookie.length; | |
| } |