Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter jade.stewart

    (@jadestewartgmailcom)

    Will do I’ll get back to you

    Thread Starter jade.stewart

    (@jadestewartgmailcom)

    actually. this. doesn’t. show up on any version of safari

    Thread Starter jade.stewart

    (@jadestewartgmailcom)

    its not its not showing up on iPhones for some reason

    Thread Starter jade.stewart

    (@jadestewartgmailcom)

    unfortunately no it only appears to be on the single event and yes I’ve tried all the troubleshooting steps I need to sort this today its taking ages to find a solution and I’m running out of time on this project

    Thread Starter jade.stewart

    (@jadestewartgmailcom)

    please confirm how I can resolve. this

    jade.stewart

    (@jadestewartgmailcom)

    I tryed adding the code `function add_form_fields(){

    global $woocommerce;
             // Get current tab/section
            $current_tab        = ( empty( $_GET['tab'] ) ) ? '' : sanitize_text_field( urldecode( $_GET['tab'] ) );
            $current_section    = ( empty( $_REQUEST['section'] ) ) ? '' : sanitize_text_field( urldecode( $_REQUEST['section'] ) );
    		//if($current_tab == 'payment_gateways' && $current_section!=''){
    		if($current_tab == 'checkout' && $current_section!=''){
                $gateways = $woocommerce->payment_gateways->payment_gateways();
                foreach($gateways as $gateway){
    				if(strtolower(get_class($gateway))==$current_section){
    					$current_gateway = $gateway -> id;
                        $extra_charges_id = 'woocommerce_'.$current_gateway.'_extra_charges';
                        $extra_charges_type = $extra_charges_id.'_type';
                        if(isset($_REQUEST['save'])){
                            echo  $extra_charges_id."\n";
    						echo $extra_charges_type."\n";
    						update_option( $extra_charges_id, $_REQUEST[$extra_charges_id] );
                            update_option( $extra_charges_type, $_REQUEST[$extra_charges_type] );
                        }
                        $extra_charges = get_option( $extra_charges_id);
                        $extra_charges_type_value = get_option($extra_charges_type);
    
                    }
                }
    
                ?>
                <script>
                jQuery(document).ready(function($){
                    $data = '<h4>Add Extra Charges</h4><table class="form-table">';
                    $data += '<tr valign="top">';
                    $data += '<th scope="row" class="titledesc">Extra Charges</th>';
                    $data += '<td class="forminp">';
                    $data += '<fieldset>';
                    $data += '<input style="" name="<?php echo $extra_charges_id?>" id="<?php echo $extra_charges_id?>" type="text" value="<?php echo $extra_charges?>"/>';
                    $data += '<br /></fieldset></td></tr>';
                    $data += '<tr valign="top">';
                    $data += '<th scope="row" class="titledesc">Extra Charges Type</th>';
                    $data += '<td class="forminp">';
                    $data += '<fieldset>';
                    $data += '<select name="<?php echo $extra_charges_type?>"><option <?php if($extra_charges_type_value=="add") echo "selected=selected"?> value="add">Total Add</option>';
                    $data += '<option <?php if($extra_charges_type_value=="percentage") echo "selected=selected"?> value="percentage">Total % Add</option>';
                    $data += '<br /></fieldset></td></tr></table>';
                    $('.form-table:last').after($data);
    
                });
    </script>
    <?php
    }

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    but it crashed out the site

    Thread Starter jade.stewart

    (@jadestewartgmailcom)

    I thought I had said in my notes its woocommerce

    Thread Starter jade.stewart

    (@jadestewartgmailcom)

    now I get Payment confirmation

    Order reference : 388
    Total charge : —
    Beneficiary : —

    An error has occurred; please try again later. If you are the owner or the integrator of this website, please log into the Barclaycard back office to see the details of the error.

    Payment processed by Barclaycard

    Thread Starter jade.stewart

    (@jadestewartgmailcom)

    Yes it is a custom post type so this may be the issue when will you be realising the update

    Thread Starter jade.stewart

    (@jadestewartgmailcom)

    the code is inside a php tag see bellow

    <?php
    
    /*-----------------------------------------------------------------------------------*/
    /* Start WooThemes Functions - Please refrain from editing this section */
    /*-----------------------------------------------------------------------------------*/
    
    // Set path to WooFramework and theme specific functions
    $functions_path = get_template_directory() . '/functions/';
    $includes_path = get_template_directory() . '/includes/';
    
    // Don't load alt stylesheet from WooFramework
    if ( ! function_exists( 'woo_output_alt_stylesheet' ) ) {
    	function woo_output_alt_stylesheet () {}
    }
    
    // Define the theme-specific key to be sent to PressTrends.
    define( 'WOO_PRESSTRENDS_THEMEKEY', 'tnla49pj66y028vef95h2oqhkir0tf3jr' );
    
    // WooFramework
    require_once ( $functions_path . 'admin-init.php' );	// Framework Init
    
    if ( get_option( 'woo_woo_tumblog_switch' ) == 'true' ) {
    	//Enable Tumblog Functionality and theme is upgraded
    	update_option( 'woo_needs_tumblog_upgrade', 'false' );
    	update_option( 'tumblog_woo_tumblog_upgraded', 'true' );
    	update_option( 'tumblog_woo_tumblog_upgraded_posts_done', 'true' );
    	require_once ( $functions_path . 'admin-tumblog-quickpress.php' );  // Tumblog Dashboard Functionality
    }
    
    /*-----------------------------------------------------------------------------------*/
    /* Load the theme-specific files, with support for overriding via a child theme.
    /*-----------------------------------------------------------------------------------*/
    
    $includes = array(
    				'includes/theme-options.php', 				// Options panel settings and custom settings
    				'includes/theme-functions.php', 			// Custom theme functions
    				'includes/theme-actions.php', 				// Theme actions & user defined hooks
    				'includes/theme-comments.php', 				// Custom comments/pingback loop
    				'includes/theme-js.php', 					// Load JavaScript via wp_enqueue_script
    				'includes/theme-plugin-integrations.php',	// Plugin integrations
    				'includes/sidebar-init.php', 				// Initialize widgetized areas
    				'includes/theme-widgets.php',				// Theme widgets
    				'includes/theme-advanced.php',				// Advanced Theme Functions
    				'includes/theme-shortcodes.php',	 		// Custom theme shortcodes
    				'includes/woo-layout/woo-layout.php',		// Layout Manager
    				'includes/woo-meta/woo-meta.php',			// Meta Manager
    				'includes/woo-hooks/woo-hooks.php'			// Hook Manager
    				);
    
    // Allow child themes/plugins to add widgets to be loaded.
    $includes = apply_filters( 'woo_includes', $includes );
    
    foreach ( $includes as $i ) {
    	locate_template( $i, true );
    }
    
    // Load WooCommerce functions, if applicable.
    if ( is_woocommerce_activated() ) {
    	locate_template( 'includes/theme-woocommerce.php', true );
    }
    
    /*-----------------------------------------------------------------------------------*/
    /* You can add custom functions below */
    /*-----------------------------------------------------------------------------------*/
    function change_subscribe_button_text() {
        // return your preferred button text
        return "My Preferred Button Text";
    }
    add_filter('s2_subscribe_button', ‘Yes_Please’);
    
    /*-----------------------------------------------------------------------------------*/
    /* Don't add any code below here or the sky will fall down */
    /*-----------------------------------------------------------------------------------*/
    ?>

    Thread Starter jade.stewart

    (@jadestewartgmailcom)

    yes I know what a php tag is but I’m unsure where it supposed to be placed with in this example bellow i have placed the code with in the functions.php folder as per bellow please confirm where I’m going wrong

    function change_subscribe_button_text() {
    // return your preferred button text
    return “My Preferred Button Text”;
    }
    add_filter(‘s2_subscribe_button’, ‘change_subscribe_button_text’);

    Thread Starter jade.stewart

    (@jadestewartgmailcom)

    sorry i don’t understand what you mean which php tags would you like the text out side of ?

    Thread Starter jade.stewart

    (@jadestewartgmailcom)

    as well as the button text doesn’t change

    Thread Starter jade.stewart

    (@jadestewartgmailcom)

    i put in the following

    function change_subscribe_button_text() {
    // return your preferred button text
    return “My Preferred Button Text”;
    }
    add_filter(‘s2_subscribe_button’, ‘Yes_Please’);

    and now I’m getting

    function change_subscribe_button_text() { // return your preferred button text return “My Preferred Button Text”; } add_action(‘s2_subscribe_button’, ‘Yes_Please); this in my header

    Thread Starter jade.stewart

    (@jadestewartgmailcom)

    every time i add the following hook to my functions file the site white screens please advise where I’m going wrong I’m using the following

    function change_subscribe_button_text() {
        // return your preferred button text
        return “My Preferred Button Text”;
    }
    add_action(‘s2_subscribe_button’, ‘change_subscribe_button_text’);

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