Forum Replies Created

Viewing 15 replies - 1 through 15 (of 36 total)
  • Thread Starter Zambu

    (@thomasw98)

    Having trouble posting the image here, so here’s the URL: https://photos.app.goo.gl/esuNGq1aWKeEoD8U7

    But note that Gerhard already solved the problem with his suggestion to add the letters AES before the ITN number.

    Somebody should change the prompt text below this input box to clarify the required format of the text input, i.e. “AES X20250127……” (the six dots should replaced with the actual digits of the ITN number).

    Note also that when the cbp.dhs.gov office sends out official emails notifying applicants of their approved ITN number, their email shows the number as “AES ITN: X20250127……” which doesn’t work as an input in that box, so that makes it even more confusing to users trying to enter this number in the correct format.

    To be clear, entering “X20250127……” doesn’t work, entering “AES ITN: X20250127……” doesn’t work either. Only “AES X20250127……” works.

    Thanks!

    Thread Starter Zambu

    (@thomasw98)

    thanks for your response. Unfortunately, what you describe is exactly what I am doing. Though I should mention that the prompt in the entry box says to enter a 14 digit ITN number, whereas adding the X makes it 15 characters long. Anyways, I’ve probably entered it both with and without the X at least 50 times now with no success. It just keeps asking for a valid ITN.

    I’m wondering if it is legitimately validating the ITN against a live database somewhere? Or if it is simple looking for the X20250128…. At the beginning? Again though, I’m using a valid ITN that i obtained from the government website an hour before first attempting to enter the number in woo for the order.

    any other ideas?

    Thread Starter Zambu

    (@thomasw98)

    Nevermind. I figured it out from your doc pages:

    https://docs.thememylogin.com/article/92-using-pages

    Thread Starter Zambu

    (@thomasw98)

    Hi Imran,

    Yes, that works and results are the same as my overly complicated version. Thanks.

    But, it also has the same problem as my version; see comments in the code below:

    add_action( 'after_setup_theme', 'busiprof_theme_woocommerce_setup' );
    
    function busiprof_theme_woocommerce_setup() {
       add_theme_support( 'wc-product-gallery-zoom' );
       add_theme_support( 'wc-product-gallery-lightbox' );
       //add_theme_support( 'wc-product-gallery-slider' ); WOOCOMMERCE IMAGES WILL NOT WORK CORRECTLY IF THIS LINE IS ACTIVE SO I COMMENTED IT OUT
    }

    The product-gallery-slider line seems to kill it. If I leave that line active, the image only shows the small magnifying glass on the main image, but all the other secondary images for that product disappear.

    When I comment out that line, the magnifying glass still works on the main image, and the secondary images are all showing, plus if I click a secondary image, it takes me to a nice image gallery with left and right arrows to view all the photos one by one. (I believe this is the product-gallery-lightbox)

    It would be nice to be able to hover over a secondary image and then have it appear in the main image location; that’s what this product-gallery-slider line is supposed to do I think.

    I will just leave the product-gallery-slider line commented out unless you have any further ideas.

    By the way, did you know you have a typing mistake in your original functions.php? Try searching for busiporf (notice the wrong spelling of busiprof). It appears 4 times. I think the mistake has no effect since you use the same wrong spelling in all four places. But you might want to fix it next time you update the theme.

    Thanks!

    Thread Starter Zambu

    (@thomasw98)

    Hi Imran,

    I tried to figure it out myself yesterday and finally put the following code (very similar to yours) & comments in my child theme functions.php file:

    //I added this to override the same action that already exists in parent functions.php but I added now some lines to fix woocommerce image functionality
    
    if ( ! function_exists( 'busiporf_setup' ) ) :
    	function busiporf_setup() {
    	
    	//I added these next few lines to add woocommerce product image functionality e.g. hover, gallery, etc.
    
        add_theme_support( 'wc-product-gallery-zoom' ); //This lines adds the little gray magnifying glass to the first main picture so you can hover over it for closeups.
    
        add_theme_support( 'wc-product-gallery-lightbox' ); //This line makes the photos clickable and opens a lightbox 'click to see next' gallery.
    
        //add_theme_support( 'wc-product-gallery-slider' ); //DOESNT SEEM TO WORK. If I activate this line, the above two lines stop working.
    
        //The rest of the stuff below is just a copy of what this function has in the parent version of functions.php
    	/*
    	 * Make theme available for translation.
    	 * Translations can be filed in the /languages/ directory.
    	 */
    	load_theme_textdomain( 'busiprof', get_template_directory() . '/lang' );
    	
    	// Add default posts and comments RSS feed links to head.
    	add_theme_support( 'automatic-feed-links' );
    	
    	
    	// Add theme support for selective refresh for widgets.
    	add_theme_support( 'customize-selective-refresh-widgets' );
    	/*
    	 * Let WordPress manage the document title.
    	 */
    	add_theme_support( 'title-tag' );
    	
    	// supports featured image
    	add_theme_support( 'post-thumbnails' );
    		
    	add_theme_support( 'custom-header');
    	
    	// This theme uses wp_nav_menu() in two locations.
    	register_nav_menus( array(
    		'primary' => __( 'Primary Menu', 'busiprof' )
    	) );
    	
    	
    } // busiporf_setup
    endif;
    
    add_action( 'after_setup_theme', 'busiporf_setup' );

    It seems to work ok. Do you see any problem with me doing it this way?

    Thanks!

    Thread Starter Zambu

    (@thomasw98)

    Just read back what I wrote…I did not mean to be THAT sarcastic. Unfortunately I can not edit my previous response. Sorry!

    Thread Starter Zambu

    (@thomasw98)

    Yes, that works perfectly. Thanks!

    May I ask why you don’t use this as your standard page in your theme? In researching this issue, I have found large numbers of complaints about this exact same issue on many of the themes that your company produces (not just Busiprof). These complaints go back at least 4 years! Why not just fix it?

    I had the same issue. I then tried to install the same plugin again, but got an error saying “the plugin already exists”. Then I went back to the main WP plugin page, and there it was. Works fine after that.

    It does do this. Just fill in the regular and “selling” price (incorrect/confusing english) and it will show both when the user has the specific role.

    It would be cool though if it would NOT show the “Sale” badge, because it is not in fact a sale but rather a special price for this role only.

    It would also be nice if I could add some text next to the special price, e.g. “Special discounted price for club members only!”

    • This reply was modified 6 years, 6 months ago by Zambu.
    • This reply was modified 6 years, 6 months ago by Zambu.
    • This reply was modified 6 years, 6 months ago by Zambu.

    Where should I add this hook, i.e. in what file and at what line position?

    Will this action hook get erased/overwritten by the next update of the plugin?

    Thread Starter Zambu

    (@thomasw98)

    “A couple simple examples of what I could add in the pattern section and how this would effect the text input would be great.”

    Looking at your link, I see, for example, something that says ‘pattern=”[A-Za-z]{3}”‘ Hmmmm, I guess I understand that, but I wonder how to actually format this in this plugin’s “pattern” input section. Should I type pattern=”[A-Za-z]{3}” with quotes, or maybe “[A-Za-z]{3}”, or perhaps just [A-Za-z]{3} without the quotes??? I guess I will just have to hack around with it to figure it out.

    Gee, if only someone had given me a simple example…that would have really helped…

    Thread Starter Zambu

    (@thomasw98)

    FYI, I am using your plug-in to accomplish a two-step goal.

    I want to give access to certain content ONLY to customers that have bought something from me. So, I use your plug-in to switch a “subscriber” to a “customer” once they have purchased something. (I only have three products, so I make three switch rules, one for each product…I wish there was a choice to select “All products” in the rule setting).

    Then I use another plug-in called User Access Manager to only allow people in the Customer GROUP to view POSTS (as opposed to pages). Admission into the Customer Group is automatic based on a user’s ROLE being “customer” (which they get automatically from your role changer once they buy something).

    So then I put all restricted content onto the site as POSTS rather than PAGES. Only Customer Group members (i.e. those with customer role) can view POSTS. Everyone can view PAGES.

    A little convoluted and hacky, I know, but it works!

    Thread Starter Zambu

    (@thomasw98)

    Oooo, figured out a cheesy workaround:

    -Create the rule first based on GAIN, then click save rule.
    -Then open that rule and edit it to become a SWITCH rule, then click save rule.

    Viola!

    That worked for me. Thanks!

    Anyways, the function works perfectly for me, so I REALLY don’t need support. ??

Viewing 15 replies - 1 through 15 (of 36 total)