I’ve been writing a script to go through a folder and the sub folders to grep text and edit the file if the text is found. The folder is one of several in the root of a hard drive. I cd into one of the folders to prevent the find […]
Blog
i’m starting a web development / vps renting service and I want your feedback the main idea is that the service is anonymous what do you guys think
I am having a bit of trouble with my FFMPEG command, what I require is to grab the 2 pixels at the 20% from the bottom, then scale that up to fill out everything from that to the bottom. I’m using ffmpeg version 4.2.7-0ubuntu0.1 I was originally doing this by […]
Learn how to use date and time in Python, with real-life examples of working with date and time using the Python datetime and time modules. Continue reading Understanding Python Date and Time, with Examples on SitePoint.
I create a countdown banner on the homepage. I am storing from date and to date in the system.xml. I want to show the countdown between the dates From date to To date. Can anybody guide me How can I do this? I successfully create a static time. But want […]
Magento 2.4.4 The checkout does a reload after every character I enter in the ZIP or phone field. I tried finding a setting to disable this, but could not find any. Is there a way to stop reloading after every keyup? Thanks
I have added NOINDEX, and NOFOLLOW meta tags to the /catalogsearch page to remove already indexed pages from search engine indexes. However, I still have trouble removing indexed results for the /review URL. The review section is located within the product page, so there is no specific URL for the […]
Lokesh/CatalogExtended/etc/di.xml <?xml version="1.0" ?> <type name="MagentoCatalogBlockProductProductListToolbar"> <plugin disabled="false" name="Lokesh_CatalogExtended_Block_Toolbar" sortOrder="10" type="LokeshCatalogExtendedPluginCatalogBlockToolbar"/> </type> <type name="MagentoCatalogModelConfig"> <plugin disabled="false" name="Lokesh_CatalogExtended_Model_Config" sortOrder="11" type="LokeshCatalogExtendedPluginCatalogModelConfig"/> </type> </config> Lokesh/CatalogExtended/Plugin/Catalog/Block/Toolbar.php namespace LokeshCatalogExtendedPluginCatalogBlock; class Toolbar { public function aroundSetCollection( MagentoCatalogBlockProductProductListToolbar $subject, Closure $proceed, $collection ) { $currentOrder = $subject->getCurrentOrder(); $result = $proceed($collection); if ($currentOrder) { if ($currentOrder == 'high_to_low') […]
my catalog_category_view.xml </body> my custom_attribte.phtml getProduct(); $attrData = $product->getData(‘feature’); $blockTitle = $this->getData(‘title’); if ($attrData !== “”) : ?> <div class="product-full-width-section"> <h2 class="product-section-title"><?= $blockTitle; ?></h2> <?php echo $attrData; ?> </div>