Helpful Guy Uk
Forum Replies Created
-
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] search only exact table valueHi Tobias,
Im trying to filter exact word, for example one of the words isnt actually a word is “ss” but when i filter it with the “ss” it shows all the data.
all the information is in the first column that need to be filter for example:
(filter 1)
ship | length | weight
SS Mildred | 200ft | 30ton (this would be displayed as it matches “SS”)
SS Morrison | 200ft | 30ton (this would be displayed as it matches “SS”)
S davidson | 250ft | 37ton (this would not be displayed as it dont match “SS”)(filter 2)
ship | length | weight
SS | 200ft | 30ton (this would be displayed as it matches “SS”)
SS Mildred | 200ft | 30ton (not be displayed as it dont exact match “SS”)
SS Morrison | 200ft | 30ton (not be displayed as it dont exact match “SS”)
S davidson | 250ft | 37ton (not be displayed as it dont exact match “SS”)Im currently using the title of the page to select the table id and the word to filter and have edited the page.php to store the following information.
<?php $wordlist = array("words", "to", "exclude",""); $string = strtolower(get_the_title()); //lower case and pull the title foreach($wordlist as $word) $string = preg_replace("/". $word ."/", " ", $string); $string = preg_replace('/\s+/', '', $string); $tabletitle = current(explode(' ', get_the_title())); if (strtolower($tabletitle) == "word1") { $tableid = "1"; } elseif (strtolower($tabletitle) == "word2") { $tableid = "2"; } elseif (strtolower($tabletitle) == "word3") { $tableid = "3"; } ?>
Currently using and works with everything except the “SS” (pulls all info on table) but works with “Mildred” as the filter term.
<?php tablepress_print_table( array( 'id' => $tableid, 'filter' => $string, ) ); ?>
Tried using:
<?php tablepress_print_table( array( 'id' => $tableid, 'filter' => $string, 'filter_full_cell_match' => 'true' ) ); ?>
With the above this the table shows no data on any filter term.
I would like to know how to filter exact text but allow contain of other words like example filter 1
and
I would like to know how to filter exact text like example filter 2
Thanks in Advance
P.S – I made a donation on the 17-6-2017 as I love the plugin and i have paid for other plugins with less user friendliness.
- This reply was modified 7 years, 5 months ago by Helpful Guy Uk.
- This reply was modified 7 years, 5 months ago by Helpful Guy Uk.
- This reply was modified 7 years, 5 months ago by Helpful Guy Uk.
- This reply was modified 7 years, 5 months ago by Helpful Guy Uk.
Is there a way to hide all search fields with one line of css for example:
#tablepress-*_filter {
display: none;
}Thanks in advance
Forum: Plugins
In reply to: [WooCommerce Bulk Discount] Bulk discount Import via Custom Field?I figured it out, simple when i finally got a few minutes spare to look into it and decided to help you.
There is two settings that are required not just the _bulkdiscount_discount_flat_1
Basically the _bulkdiscount_discount_flat_1 just sets the flat discount in £ and does not state the amount of products when the discount should be added.
The _bulkdiscount_quantity_1 is the custom field that adds the qty to discount at.
So to add a £10 discount when two of the same products are added to the cart you would need two custom fields:
Custom Field name Custom Field value
_bulkdiscount_quantity_1 = 2
_bulkdiscount_discount_flat_1 = 10
To import a second variation to the same product just change the number on the end of the custom field name 2.
(Example: _bulkdiscount_quantity_2 _bulkdiscount_discount_flat_2)I contacted “[email protected]” which was very helpful and this is the answer they gave.
The code below should be added to your functions.php file:
function correct_prices($price){ $price_result = number_format($price/100,2); echo $price_result; }
And put this InsideWP All Import:
[correct_prices({path with your price})]
More Info:
https://www.wpallimport.com/documentation/advanced/execute-php/Forum: Plugins
In reply to: [WooCommerce] Search form codeDont now why i ask this question as the search form information should be sent client side.
Hi,
In Better WP Security you can disable the part conflicting with GD star Rating as follows:
Login to you wordpress site then select “Security” option on the bottom of the left hand WordPress panel which will take you to Better WP Security options.
Then select “Tweeks” from the Better WP Security options at the top of the page.
Then scroll down and deselect “Display random version number to all non-administrative users” which is about third up from the bottom.