Forum Replies Created

Viewing 15 replies - 16 through 30 (of 38 total)
  • Thread Starter bublick

    (@bublick)

    Ok,

    I did it. Not best way, may be, but anyway. There is need to add variation attribute. We can do this via hooks to woocommerce_product_after_variable_attributes and woocommerce_save_product_variation.

    Next, on single product is need to remove product title and added

    <h1 itemprop="name" class="product_title entry-title woocommerce-variation-name">
            {{{ data.variation.text_field }}}
         </h1>

    in variation.php template. Not best for SEO, but if we use default variative attribute it’s better.

    Next. There is need to make changes in title in quick-cart page.
    Next on review-order.php

    No need to make this via js, cause variation part loads not fastest, so template in variation.php is best and after this, on cart overview pages we can get this new titles from meta.

    If you have question and I can help you – ask me.

    • This reply was modified 8 years ago by bublick.
    • This reply was modified 8 years ago by bublick.
    Thread Starter bublick

    (@bublick)

    @bowenac,
    OK. I finally made it using your method. I was too lazy to check it =). Now I made it. Just needed to reinitialize the
    $current_user var.

    There is another hook for front-end.

    do_action('profile_personal_options', $userdata);
    do_action('show_user_profile', $userdata);

    As I understand, It copies profile form from ../wp-admin/profile.php
    but it doesn’t copy password’s difficulty check method.

    Thread Starter bublick

    (@bublick)

    joshuaiz, congrats. It seems to be best result.

    I still have the same problem like 2 weeks ago.

    Thread Starter bublick

    (@bublick)

    Thank you! It is close, but it still don’t works.

    First of all, I had upload an avatar using wp-admin profile page. And in this block, that I made using your code – I have no avatar. There is only default avatar pic.

    Next, when I click to the Update Picture link, appears a thicbox frame. Insteat of button to chose an avatar from my PC, there is only “You are not allowed to do that.”. But I’m admin. It is strange. Now is too late and I’ll try to modify it tommorow.

    Anyway thank you for a try. I guess I need just to modify it in some places and it would work.

    Thread Starter bublick

    (@bublick)

    But this is admin-side. If this do not contradicts to forum rules – I’ll give. But I guess it does.
    Anyway, who can help, please, just write and I’ll send login/pass via PM.

    Thread Starter bublick

    (@bublick)

    It’s ok, I know this feature =)

    But I don’t want to edit it each of user every time. And I also want another color scheme for guest, cause

    the admin bar on my site is visibile for all users including guests.

    So, I just need a way to edit default color scheme without core modification.

    Thread Starter bublick

    (@bublick)

    Ues.

    It may be very important. I tried this WP version with the same theme and plugins on an another virtual hosting that used php as CGI mod. And there it worked! It also worked on my local LAMP server. The server which I use now has an unusually config. It uses Apache for generating php code and NGINX for returning html pages. PHP is working like Apache mod. I’m not admin of this server but I can ask for install or uninstall some php mods if it is necessary.

    Thread Starter bublick

    (@bublick)

    I’m really disarrayed.

    May be, the possible solution is to clear cache every time before visiting pages post.php and post-new.php. Or don’t cache admin part at all. But I’m not sure if this isn’t wrong solution and I don’t know how to realize it.

    Thread Starter bublick

    (@bublick)

    Not entirely. That time I guessed that problem is in my theme. Now I’m sure that problem isn’t in my theme. And yes, I try to resolve this problem few weeks.

    Forum: Hacks
    In reply to: How to debug theme?
    Thread Starter bublick

    (@bublick)

    Oh, esmi, sorry. I didn’t mensioned second link. Cause it has bad ancor. Now I’m talking with my admins to edit php.ini

    Forum: Hacks
    In reply to: How to debug theme?
    Thread Starter bublick

    (@bublick)

    Thank you,
    I already tried this config

    // Enable WP_DEBUG mode
    define('WP_DEBUG', true);
    
    // Enable Debug logging to the /wp-content/debug.log file
    define('WP_DEBUG_LOG', true);
    
    // Disable display of errors and warnings
    define('WP_DEBUG_DISPLAY', true);
    @ini_set('display_errors',0);
    
    // Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
    define('SCRIPT_DEBUG', true);
    Thread Starter bublick

    (@bublick)

    In firefox 25.0.1 tried and in chrome 31.0.1650.57 m
    The same. Now try without plugins and with default theme. The same problems.
    At the beginig of wp-config.php I have:

    define('CONCATENATE_SCRIPTS', false);
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');

    Chrome write:
    Uncaught TypeError: Cannot call method ‘getCurrent’ of undefined popup.js:17

    event.returnValue is deprecated. Please use the standard event.preventDefault() instead. jquery.js?ver=1.10.2:4

    Uncaught ReferenceError: switchEditors is not defined

    And FireFox’s firebug:
    SyntaxError: missing ) in parenthetical
    ReferenceError: jQuery is not defined
    [Exception… “Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]” nsresult: “0x8000ffff (NS_ERROR_UNEXPECTED)” location: “JS frame :: chrome://browser/content/aboutDialog.js :: init :: line 14” data: no]

    When I used at the home local service was no problems. And my other sites hosted on another servers has no problems too. What can be the reason? PHP version 5.3.17
    Have problems only with pages that use TinyMCE or media-uploaders.
    ——————————————–
    page ../post-new.php?post_type=page
    loads with errors too (Chrome)
    event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
    Uncaught TypeError: Cannot call method ‘getCurrent’ of undefined popup.js:17
    ‘KeyboardEvent.keyLocation” is deprecated. Please use ‘KeyboardEvent.location’ instead.

    but it works great!

    Thread Starter bublick

    (@bublick)

    I’ve updated. But the problem remained.
    Seems I’ll downgrade.

    Thread Starter bublick

    (@bublick)

    Bump. Is anybody who can help?

    Thread Starter bublick

    (@bublick)

    I know how to use custom fields.
    I mean that I need to choise (not to write it again) one of pre-saved custom fields values while I am editing the post.

    In WP is built-in ability to choise custom fields name which early were wrote, so I am asking about the same feature for custom fields value

Viewing 15 replies - 16 through 30 (of 38 total)