Forum Replies Created

Viewing 15 replies - 16 through 30 (of 73 total)
  • Thread Starter W2014

    (@w2014)

    i copied the latest pages.php from github now…and still i had to modify it a bit, by deleting the entire block from if ($shopPageTranslation)...(see bellow), otherwise the problem is stil there…it adds -en to the shop-page-domain, or, worse, when i go into the shop from the menu, it adds shop-en(the slug) to the domain link…so it looks like shop-enshop.com…etc…so that now i have from 133:

    133. `public function translateShopUrl($url, $language)
    {
    $result = $url;

    if (!is_post_type_archive(‘product’)) {
    return $result;
    }

    $shopPageID = get_option(‘woocommerce_shop_page_id’);
    $shopPage = get_post($shopPageID);

    if ($shopPage) {
    $shopPageTranslatedID = pll_get_post($shopPageID, $language);
    $shopPageTranslation = get_post($shopPageTranslatedID);

    }

    return $result;
    }`

    so this block must be deleted in my case, so the links work as expected:

    if ($shopPageTranslation) {
    		        		$slug = $shopPage->post_name;
            				if ( $slug != $shopPageTranslation->post_name ) {
            					$result = substr_replace( $url, $shopPageTranslation->post_name, strrpos( $url, $slug ), strlen( $slug ) );
            				}
                }

    if you would like…i can give you in private the links and passwords to the shop, because the shop is not public…so you can see by yourself.

    Thread Starter W2014

    (@w2014)

    for your information, the problematic part from pages.php:

    public function translateShopUrl($url, $language)
        {
            $result = $url;
    
            if (!is_post_type_archive('product')) {
                return $result;
            }
    
            $shopPageID = get_option('woocommerce_shop_page_id');
            $shopPage = get_post($shopPageID);
    
            if ($shopPage) {
                $shopPageTranslatedID = pll_get_post($shopPageID, $language);
                $shopPageTranslation = get_post($shopPageTranslatedID);
    
                // -- start shop domain name issue --
    			//if ($shopPageTranslation) {
                    //$result = str_replace(
                            //$shopPage->post_name, $shopPageTranslation->post_name, $url
                   // );
                //}
                // -- end shop domain name issue --
            }
    
            return $result;
        }
    Thread Starter W2014

    (@w2014)

    If your problem is specific to the shop page only, it may be because your shop slug is called “shop” and your domain name also contains the word shop, see:
    https://github.com/hyyan/woo-poly-integration/issues/400
    corrected in checked in version of pages.php.

    that solved the problem…it was the domain name (shop)…now i changed the -> woo-poly-integration/src/Hyyan/WPI/Pages.php and it works as expected.
    but what about updates? is there a long-term solution or do i have to change this on every update?

    the issue is with other integration plugins also…

    Thanks a lot for the great support…and i hope, the plugin will be further developed…

    Thread Starter W2014

    (@w2014)

    Thanks a lot for the answers, i use the standard: The language is set from the code in the URL. The only issue i have so far it is with the language switcher, that adds -en to the url like this:

    shop-en.com/?post_type=product&lang=en
    instead:
    shop.com/?post_type=product&lang=en and the fact is, when i disable your plugin, it works normal, as soon as i activate it, the link changes.

    Thread Starter W2014

    (@w2014)

    ok…i checked everything, everything is standard, it is a new install… i will still check all the options, but i see now that the plugin is not supporting the woocommerce 3.63, that i have…so this can be an issue…will there be a vrsion in the next period that will support the “new” woocommerce?

    2. you have it in the plugin features and before your plugin i could not see the categories in other languages, that is otherwise a polylang for woocommerce feature, as long as i know:

    [√] Product Translation

    [√] Categories

    • This reply was modified 7 years, 1 month ago by W2014.
    • This reply was modified 7 years, 1 month ago by W2014.
    Thread Starter W2014

    (@w2014)

    i know that this has to do with Hyyan WooCommerce Polylang Integration, because when i deactivate the plugin, everything works normal/as expected. The interesting thing is, when i deactivate the HWPI, its functionality, like categories languages, remains. That is crazy.

    The same problem here…temporary workaround: just give an !important; to the pixel size…

    Thread Starter W2014

    (@w2014)

    Hallo, you can see the classes topic, is the same issue but in detail=> https://wordpress.org/support/topic/classes-overrides/

    Thread Starter W2014

    (@w2014)

    Hello Matt, thanks for the reply, i would like to suggest to you that this is a bad practice to put html inside classes, you should probably have the content inside of a separate file “appearance.php”, which you then call in your function, that would be better for changing appearance…for example, if i want to add “Hallo” to User, i cannot do that with overrides, so that is not flexible, although that would be so simple to change into a more flexible framework…

    For example, i can make that change in classes/general.php =>

    . 'Hallo '. $user->get_firstname(),,

    but it will be probably overwritten by the next update, i mean that part:

    /** NAVIGATION DATA - BUILD **/
        public function init_navbar($navbar) {
    
            $user = PeepSoUser::get_instance(get_current_user_id());
    
            ...
    
                // Profile - avatar and name
                'profile-home' => array(
                    'class' => '',
                    'href' => $user->get_profileurl(),
                    'label' =>'<div class="ps-avatar ps-avatar--toolbar ps-avatar--xs"><img src="' . $user->get_avatar() . '" alt="' . $user->get_fullname(). ' avatar"></div> ' . 'Hallo '. $user->get_firstname(),
                    'title' => PeepSoUser::get_instance()->get_fullname(),
    
                    'primary'           => FALSE,
                    'secondary'         => TRUE,
                    'mobile-primary'    => FALSE,
                    'mobile-secondary'  => FALSE,
                    'widget'            => FALSE,
                ),

    Have a nice day

    Thread Starter W2014

    (@w2014)

    Hallo Fabio, thanks a lot for the answer, but that does not solve the problem, if you see a 100% wide slider on an 4K Monitor, you will see, there is the out animation, than that white-flash, the the next slide…that looks terrible if you see 3-4 darker images…everything is set to fade…and 300ms…but the slides do not fade into each other, instead they fade to white and then to the next slide (slide1->fade->white or background color->slide2)…i would be glad to hear a solution for that (slide1->fade->slide2)…or probably a next version feature…

    Thread Starter W2014

    (@w2014)

    Hello, thanks a lot for the reply, which is the specific folder, where i can find the css/Theme of peepso? For profile, do i find the theme hier: …\wp-content\plugins\peepso-core\templates\profile…or is there another folder?

    In the documentation, you have Customization only for the standard theme, but not for another theme…in the docu, you have ->Assets Overrides – Customizing PeepSo Images, but not the entire theme…

    Thread Starter W2014

    (@w2014)

    I can use an Animated .png, the problem is the size…so i wanted to use a x265movie, but that is not possible, i did’t know that there is just the youtube option…

    Thread Starter W2014

    (@w2014)

    Hallo Fabio, it is a small 3d animation but there are 30 png images, that simulate a 3D rotation…the problem is that there is no layer management so it would be almost impossible to pick the images bellow the first image. All images have the same width, so probably this would be the best future feature for the slider…layer management…or is there a method to go through images…

    Thread Starter W2014

    (@w2014)

    Thank you, i just found out also, after i posted…not an obvious position but good to know…

    Thread Starter W2014

    (@w2014)

    Hallo Fabio,

    but the blurfadein works nice…so, it works also with keyframes…
    the problem is with the blurfadeout…

    but probably you think of adding this some time in the effect-panel…

    thanks for answering

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