RashaMatt
Forum Replies Created
-
Hi @deabiodun
This is a paid plugin: https://elextensions.com/plugin/authorize-net-payment-gateway-for-woocommerce/
Please provide your email for some way for me to securely send you the plugin zip –
(see my previous message via your Contact form for my own email)@vupdraft
Is there a non-public way for me to send you sensitive info?I am not sure how to tell which is the source plugin for this js file – probably one of these:
$ find wp-content/plugins/ -name \*chosen\*js
wp-content/plugins/publishpress/common/libs/chosen-v1.8.3/chosen.proto.min.js
wp-content/plugins/publishpress/common/libs/chosen-v1.8.3/chosen.proto.js
wp-content/plugins/publishpress/common/libs/chosen-v1.8.3/chosen.jquery.js
wp-content/plugins/publishpress/common/libs/chosen-v1.8.3/chosen.jquery.min.js
wp-content/plugins/wp-geoip-redirect/assets/resources/chosen.jquery.min.js
wp-content/plugins/themify-ptb-submissions/admin/js/chosen.jquery.min.js
wp-content/plugins/eh-authorize-net/assets/js/chosen.js
wp-content/plugins/eh-authorize-net/assets/js/chosen.jquery.js
wp-content/plugins/wp-all-import-pro/static/js/jquery/chosen.jquery.js
wp-content/plugins/wp-all-import-pro/static/js/jquery/chosen.jquery.min.jsExample unminified JS file: https://mitchellwreathrings.com/wp-content/cache/wpo-minify/1743024104/assets/wpo-minify-footer-authorize_net_chosen_jquery_scripts1739650444.min.js
This is after formatting with the “{}” button, which is on by default:

Here is the beginning of the corresponding un-minified, actual source file – I compared the first 80 lines of each, and they appear to be identical, meaning no minification was done on this file, even though it was processed by WP-Optimize (see the file name above):
/*!
Chosen, a Select Box Enhancer for jQuery and Prototype
by Patrick Filler for Harvest, http://getharvest.com
Version 1.1.0
Full source at https://github.com/harvesthq/chosen
Copyright (c) 2011 Harvest http://getharvest.com
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
This file is generated bygrunt build, do not edit it by hand.
*/
jQuery(function() {
jQuery('.chosen-select').chosen();
jQuery('.chosen-select-deselect').chosen({ allow_single_deselect: true });
});
(function() {
var $, AbstractChosen, Chosen, SelectParser, _ref,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
SelectParser = (function() {
function SelectParser() {
this.options_index = 0;
this.parsed = [];
}
SelectParser.prototype.add_node = function(child) {
if (child.nodeName.toUpperCase() === "OPTGROUP") {
return this.add_group(child);
} else {
return this.add_option(child);
}
};
SelectParser.prototype.add_group = function(group) {
var group_position, option, _i, _len, _ref, _results;
group_position = this.parsed.length;
this.parsed.push({
array_index: group_position,
group: true,
label: this.escapeExpression(group.label),
title: group.title ? group.title : void 0,
children: 0,
disabled: group.disabled,
classes: group.className
});
_ref = group.childNodes;
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
option = _ref[_i];
_results.push(this.add_option(option, group_position, group.disabled));
}
return _results;
};
SelectParser.prototype.add_option = function(option, group_position, group_disabled) {
if (option.nodeName.toUpperCase() === "OPTION") {
if (option.text !== "") {
if (group_position != null) {
this.parsed[group_position].children += 1;
}
this.parsed.push({
array_index: this.parsed.length,
options_index: this.options_index,
value: option.value,
text: option.text,
html: option.innerHTML,
title: option.title ? option.title : void 0,
selected: option.selected,
disabled: group_disabled === true ? group_disabled : option.disabled,
group_array_index: group_position,
group_label: group_position != null ? this.parsed[group_position].label : null,
classes: option.className,
style: option.style.cssText
});
} else {
this.parsed.push({
array_index: this.parsed.length,Actually, the Preview shows “-” for line numbers of minified lines that are wrapped by the pretty-printing. When it shows actual line numbers, these correspond to the real line numbers in the retrieved source file. So for the particular files I screen-shotted above, you can see that they have not been minified.
Compare to minified files, which look like this:

I believe my issue is due to JS merging, not compression/minification.
The mentioned console errors were in front-end site pages, resulting from merged Themify JS files – these files need to be excluded from JS merging, which I did not see an option for in WP Super Minify, which makes it incompatible with Themify, and any other JS which is broken by merging.
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] No spinner visible when page is refreshingYes, I do need the Search Box feature, that is why I purchased the Pro license 😀 This is apparently the only way to redirect the filter to the archive page with the filtered results.
When the filter group is displayed on an archive page it is appropriate to use “AJAX” mode, but when the group is displayed on a product page it is appropriate to use “Search Box” mode.
The problem is that when using the filter on a product page, from the user’s perspective nothing appears to happen when they click on the filters – then eventually the page loads and they are confused. 😖
Increasing the priority of my woocommerce_get_price_html hook has fixed the issue – thanks! 🙏
I have this Woo filter active to customize the Product Price text:
//Add text after price to certain products function themeprefix_custom_price_message( $price ) { global $post; if( is_object($post) ) { $id = $post->ID; $price .= ' '. product_unit_pricing_text_fn( $id, 'per' ); } return $price; } add_filter( 'woocommerce_get_price_html', 'themeprefix_custom_price_message' );Using TPT versions up to v3.6.2 this works as expected, and the site displays Product Prices processed by the above filter.
With TPT versions after v3.6.2, the behavior is different – when a product page first loads, I do see the correct (filtered) Product Price text as expected… BUT then after about 0.3 seconds that span in the page is replaced with an unfiltered version of the Product Price text (i.e., as if the filter did not exist).
Unfortunately v4.0.4 exhibits the same issue as v4.0.3 🤔
Is there any way to output these features?
Or if not, is there a way to re-theme The Event Calendar’s generated calendar page?
Main plugin is “The Events Calendar”. Shortcode is:
[events-calendar-templates category="all" template="default" style="style-1" date_format="default" start_date="" end_date="" limit="10" order="ASC" hide-venue="no" socialshare="no" time="future"]Forum: Plugins
In reply to: [Contact Form 7] How to report multiple form fields with same name?I have figured out that what is required for this to work is that the
nameproperties of theinputtags must end in “[]“, like:<label><input type="checkbox" name="InterestedIn[]" value="Engineering & Design"> Engineering & Design</label> <label><input type="checkbox" name="InterestedIn[]" value="Fabrication & Machining"> Fabrication & Machining</label> <label><input type="checkbox" name="InterestedIn[]" value="Hydrostatic Test Bench"> Hydrostatic Test Bench</label>Forum: Plugins
In reply to: [XQ Secure Form] Doesn’t work with Themify?FYI, to prevent the Themify Contact form from doing a normal (unencrypted) form submission, it is necessary to add some Javascript to the page to disable the normal form operation:
<script> (function() { // Contact-us script function onready() { // Adjust Themify forms for operation with XQ //console.log( 'Contact: onready' ) const forms = jQuery( 'form.builder-contact' ) if( forms && forms.length>0 ) { forms.addClass( 'sending hidden' ) // Hide spinner & prevent normal Themify form submission (let XQ script handle it) .on( 'submit', () => forms.removeClass('hidden') ) // Reveal spinner when Submit button is clicked console.log( forms.length + ' .builder-contact forms disabled ✅' ) } else console.warn( 'No .builder-contact forms found! ❌' ) } //console.log( 'Contact: run' ) const tid = setInterval( () => { if( jQuery ) { // Wait until jQuery is loaded //console.log( 'Contact: JQ loaded' ) clearInterval( tid ) jQuery( document ).ready( onready ) } }, 200 ) })() </script> <style> .builder-contact.sending.hidden .tf_loader { display: none; } </style>Thanks Kris – sorry to trouble you with this.