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
{% comment %} | |
To add a companion product to the cart automatically if a primary product is in cart: | |
1. Create a new link list under your Navigation tab. | |
2. In that link list, make the first link point to companion product. | |
3. Copy your link list handle where indicated at line 8: | |
{% endcomment %} | |
{% assign linklist = linklists['put-your-link-list-handle-here'] %} | |
{% comment %} |
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://github.com/magento-notes/magento2-cloud-developer-notes | |
https://github.com/magento-notes/magento2-exam-notes | |
https://belvg.com/tutorial |
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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//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
<?php | |
$dir = "/var/www/html/location/"; | |
chdir($dir); | |
array_multisort(array_map('filemtime', ($files = glob("*.*"))), SORT_ASC, $files); | |
foreach($files as $filename) | |
{ | |
echo "<li>".substr($filename, 0, -4)."</li>"; | |
rename($filename, '/var/www/html/location/archive/'.$filename); | |
} |
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
SELECT `quote_id`, | |
COUNT(`quote_id`) AS `duplicate_count`, | |
`increment_id` AS `first_increment_id`, | |
GROUP_CONCAT( `increment_id` SEPARATOR ' | ' ) AS `increment_ids`, | |
`created_at`, | |
`state`, | |
`status`, | |
`customer_email`, | |
`grand_total` | |
FROM `sales_flat_order` |