Opencart hide default text if no special offers available - customization
My question is similar to OpenCart Hide special offers title if no special offers available.
I want to remove the default text, "There are no special offer products to list." that displays when there are no specials offered.
I do not know the file from which I could find and remove this.
I'd be grateful for some help with this. Thanks.
The text you are looking for is in the following language file:
catalog/language/english/product/special.php
You can either remove the text between the single quotes, so the $_['text_empty'] variable would be the following:
$_['text_empty'] = '';
... or as a better solution, you could just disable displaying it in your theme. Search for the following file:
catalog/view/theme/YOUR_THEME_NAME/template/product/special.tpl
... and then remove the following string from it:
<?php echo $text_empty; ?>
An even better way would be using a vQmod script, but you mentioned in your question, that you'd like to remove it from the file, so I would skip this part.
Related
How to convert MS Word Smart Quotes and em-dashes to simple quotes and dashes in Ckeditor 4
Hi I really like the new Ckeditor 4 Advanced Content Filtering along with the pastefromword plugin - and have read the docs on what html tags to allow and not, and I understand why it kindly converts my client's MS Word crap into htmlentities. However, I'd like to do a little intervention and convert the smart quotes to straight quotes - and all em dashes to plain dashes and not allow - before the text gets sent to the CMS database. But I can't find any docs on this or examples. I can see there were many questions about this on the old forum Ckeditor forum http://ckeditor.com/forums/CKEditor-3.x/Replacing-smart-quotes-regular-quotes, http://ckeditor.com/forums/CKEditor-3.x/Problem-copyingpasting-MS-Word but they didn't get answered. I'm also hoping the ckeditor team reads these forums as this is where they suggest we post questions now.
CKEditor dev here. If you want the Paste From Word plugin to do this, you could add a rule in the plugin that replaces the contents of text nodes. To achieve this add a property named 'text' somewhere over here(on the same level as the 'comment' property): https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/pastefromword/filter/default.js#L1106 It should be a function that accepts one parameter - the text node content, e.g.: text: function( content ) { return content.replace(/[\u201E\u201C]/g,'"'); // Unicode for „ and “ } This way whenever the PFW plugin filter encounters a text node it'll replace its contents with whatever is returned by the above mentioned function. Caveats: there are quite a few Unicode symbols that represent quotation marks and dashes. By the way: you may not want to get too attached to the current Paste From Word plugin - we're planning a major refactor of it for v4.6. I hope this was helpful.
Search/replace in block selection in Notepad++
Is there a way to limit search/replace only to a columnar block selection in Notepad++? Here is what I am trying to do: I am bulk-editing metadata extracted from large numbers of photos. The metadata comes to me as a csv file with no quotes around fields in header line and no quotes around first field in each succeeding line. I edit this file in Open Office calc which exports with quotes around all fields. I can easily edit header row but the problem comes in stripping quotes from only first field in successive lines. I can use notepad in columnar mode but, after selecting the first column, the 'search only in selection' option box is greyed out. I can do this by hand but it means lots of hand-work and increased chance of error.
I know, this probably won't help you any more, but I just had the same problem and stumbled across this question. I found moving the block in question to a new file and performing the find/replace there works quite decently. When moving the block back, be sure to select it in block mode (see this question).
No. Another editor may have this feature.
sort of a late reply but... I had the same problem when I moved to a new machine with Notepad++ installed. Previously, I was using a text editor called Boxer that had this feature, which I found invaluable. Its not free-ware however.
You may not be able to Search/Replace within a columnar selection, but you can easily carry out your task within Notepad++. Use Find and Replace feature, with the Regular Expressions box checked. If you want to remove quotes only from a target column, use the following regular expression in the Find field: (^([^,]*,){i})"([^,\n\r]*)"(.*$) Replace i with the position of the target column minus 1. (i.e.- Us 2 if you want quotes around the third column, 0 for the first column, etc) In the Replace field use: \1\3\4 Clicking "Replace All" will strip quotes from the target column. If you want to blow away all quotes surrounding each element in your csv without prejudice, use the following regular expression in the Find field: ((?<=,)|(?<=^))"(.*?)"((?=$|,)) In the Replace field use: \1\2\3 Clicking Replace All will strip quotes form the columns. Example Since you didn't provide an example csv file, I'll walk through my own working example. Below is my csv: "0","1","2","3","4","5","6","7","8","9" "10","11","12","13","14","15","16","17","18","19" "20","21","22","23","24","25","26","27","28","29" "30","31","32","33","34","35","36","37","38","39" "40","41","42","43","44","45","46","47","48","49" "50","51","52","53","54","55","56","57","58","59" "60","61","62","63","64","65","66","67","68","69" "70","71","72","73","74","75","76","77","78","79" "80","81","82","83","84","85","86","87","88","89" "90","91","92","93","94","95","96","97","98","99" "100","101","102","103","104","105","106","107","108","109" "110","111","112","113","114","115","116","117","118","119" "120","121","122","123","124","125","126","127","128","129" "130","131","132","133","134","135","136","137","138","139" "140","141","142","143","144","145","146","147","148","149" "150","151","152","153","154","155","156","157","158","159" "160","161","162","163","164","165","166","167","168","169" "170","171","172","173","174","175","176","177","178","179" "180","181","182","183","184","185","186","187","188","189" "190","191","192","193","194","195","196","197","198","199" If I wanted to remove quotes from the second column, I would use the below Find and Replace fields (^([^,]*,){1})"([^,\n\r]*)"(.*$) \1"\3"\4 Clicking Replace All yields the below result: "0",1,"2","3","4","5","6","7","8","9" "10",11,"12","13","14","15","16","17","18","19" "20",21,"22","23","24","25","26","27","28","29" "30",31,"32","33","34","35","36","37","38","39" "40",41,"42","43","44","45","46","47","48","49" "50",51,"52","53","54","55","56","57","58","59" "60",61,"62","63","64","65","66","67","68","69" "70",71,"72","73","74","75","76","77","78","79" "80",81,"82","83","84","85","86","87","88","89" "90",91,"92","93","94","95","96","97","98","99" "100",101,"102","103","104","105","106","107","108","109" "110",111,"112","113","114","115","116","117","118","119" "120",121,"122","123","124","125","126","127","128","129" "130",131,"132","133","134","135","136","137","138","139" "140",141,"142","143","144","145","146","147","148","149" "150",151,"152","153","154","155","156","157","158","159" "160",161,"162","163","164","165","166","167","168","169" "170",171,"172","173","174","175","176","177","178","179" "180",181,"182","183","184","185","186","187","188","189" "190",191,"192","193","194","195","196","197","198","199"
My search on internet, to to see weather notepad++ suports this; brought me here. I have used TextPad and confirm that it supports find-and-replace within column selected block. Also TextPad is free for personal use.
Change font style for RegEx globally in LaTeX
Although I know that Latex is a "semantic language", I´m trying to find a solution for the following problem. In my 60k words document are about 250 strings I can search for via a RegEx, e.g. something like [A-Z]{2}\d\d[A-Z]{2} for a string like SE25GH. Is it possible to define a font style for this RegEx string globally in my document, so that I can change it easily without crawling through my document or typing a defined command like \makemytextbold{SE25GH}? Thanks.
Export a specific line in Notepad++
I have a large XHTML file that contains a lot of code, see the below example: <a:CreationDate>0</a:CreationDate> <a:Creator/> <a:ModificationDate>0</a:ModificationDate> <a:Modifier/> <a:name>stack</a:name> <a:CreationDate>0</a:CreationDate> <a:Creator/> <a:ModificationDate>0</a:ModificationDate> <a:Modifier/> <a:name>user</a:name> How can I export or select a specific line? In the example I want to have such result: <a:name>stack</a:name> <a:name>user</a:name> and the rest of the code should be ignored.
okay I found my desire result: ^((?!<a:name>.*</a:name>).)*$
As it seems it is a kind of xml document if you want to search a line for example <a:CreationDate>0</a:CreationDate> or <a:name>user</a:name> you can search by the closing tags like </a:name> or </a:CreationDate> or you can use a scripting language like php or javascript to select the line.
Textile: using code and footnotes
Hi I'm using Redmine to write a wiki of my software. I need to put some notes next to a code section like this: class.method()[1] Where the "one" is a link to my note at the end of the page. I've tried to use any method defined in the Textile syntax but it seems that it doesn't work. In fact when you use the code tag '# #' any other tag stops working. It's good even if I can use the link tag [[ ]] but only if it is like this google.com Thanks for any help, Alessandro
Redmine uses Coderay to parse the code sections in the Wiki. Take a look at the documentation for the different languages. Otherwise I would suggest using comments instead of footnotes or in worst case line references to the code.
The footnote will only work if there is an alphanumeric character directly before the opening square bracktet: this[1], whereas this()[2] or this [3] fn1. will work fn2. won't work. fn3. won't work. At least this is true with Redmine 3.1. See this issue for more information. Note that you need blank lines between fn1., fn2. and fn3. to get a correct rendering.
This extension for Redmine supports footnotes and custom styles in the wiki.
Redmine supports Textile markup syntax. Textile has support for footnotes. As noted on ticket ticket #974, this is the syntax for using footnotes in Redmine: Text with a footnote[1] fn1. and here the actual footnote.