Forum Replies Created

Viewing 15 replies - 16 through 30 (of 53 total)
  • Thread Starter Laser Ulm

    (@laser1ulm)

    Hi!

    I just realized that this topic could be misunderstood…
    I don’t want to translate the text of the reviews, just that the reviews show up in all product pages (and the widget with the recent reviews).

    For example you have two 5 star reviews in German and one 1 star review in English.
    On the German product site you see “2 Bewertungen, Durchschnitt 5 Sterne” (“2 reviews, average 5 stars (and the text)”) and on the English site you see “1 review, average 1 star”.
    But correct it would be if you see “3 reviews, average 3.7 stars (and the text, no matter which language)” and in German “3 Bewertungen, Durchschnitt 3,7 Sterne”.

    Still hoping for help 🙂
    Jochen

    • This reply was modified 4 years, 3 months ago by Laser Ulm.
    Thread Starter Laser Ulm

    (@laser1ulm)

    Hi @chrystl!

    Thank you for your reply.
    I know these, but I have a real small start up -> no money for the homepage^^
    I already made it that WC and Polylang work together, just a few small issues to be done.
    And on this point I wondered if the community already has a solution. If yes – great, if no – ok. Not so important.

    To be clear – I really like Polylang and your work!
    I wish I could afford to buy that compatibility plugin or a developer to pay for it…

    rgds
    Laser

    Hi!

    Perhaps this helps:
    https://polylang.pro/doc/developpers-how-to/

    Rgds
    Laser

    Hi!

    Did you translate the categories?
    I only see the categories that are in the chosen language.
    And I find this very useful, so I can name the English and the German category the same – but in English I only can choose the English category.

    Rgds
    Laser

    Thread Starter Laser Ulm

    (@laser1ulm)

    Ok, done for now.
    First working on a second language…

    Thanks and kind regards
    Jochen

    Thread Starter Laser Ulm

    (@laser1ulm)

    Hi @seank123!

    Thank you – although a little disappointing^^

    Your first solution is like I did it. Not nice but ok.
    The second solution looks fine if it’s really just for a few variations. And products! The next step would be black handle – 5 yarn colors, red handle 3 yarn colors… No way 😀

    How do I make a feature request???
    I guess I’m not the only one who would like his store look more… professional… at this point.
    Like a WP Menu with different submenus and sub-submenus. You only see the possibilities when choosing adult menu point.

    thx’n’rgds
    Laser

    Thread Starter Laser Ulm

    (@laser1ulm)

    Hi @oaoyadeyi!

    Thank you for the answer.
    But I guess I wasn’t able to describe my problem…

    I have one product.
    One variation is wood handle – no further attribute needed.
    One variation is handle with wood and leather. There are 2 variations – sewed with black yarn and sewed with grey yarn.

    Or as a diagram:

    One product A

    A1
    A2 – A2.1
    …..- A2.2

    Is this a clearer description?

    thx’n’rgds
    Laser

    • This reply was modified 4 years, 4 months ago by Laser Ulm.
    • This reply was modified 4 years, 4 months ago by Laser Ulm.
    Thread Starter Laser Ulm

    (@laser1ulm)

    Hi @christian1983!

    Thank you.
    I don’t know why I thougt, this would be hard coded.
    And never got the idea to translate – tbh until now I also had no idea how to do that. And didn’t made it with poedit…

    But finally I made it with loco! Crazy^^
    (Without installing another plugin in the working system. I translated in the test system and copied the files^^)

    Many thanks and best regards
    Jochen

    Thread Starter Laser Ulm

    (@laser1ulm)

    Ok, I made it – with a real dirty hack…
    (So if anybody knows a better way 😉 )

    I just copied the whole part with ordering (without search) from wc-template-functions.php to
    the functions.php of the child theme and changed the array date to date-desc.
    I just wonder why now it’s ok in the shop site too…

    /**
    	 * Output the product sorting options.
    	 */
    	function woocommerce_catalog_ordering() {
    		if ( ! wc_get_loop_prop( 'is_paginated' ) || ! woocommerce_products_will_display() ) {
    			return;
    		}
    		$show_default_orderby    = 'menu_order' === apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby', 'menu_order' ) );
    		$catalog_orderby_options = apply_filters(
    			'woocommerce_catalog_orderby', 
    			array(
    				'popularity' => __( 'Sort by popularity', 'woocommerce' ),
    				'rating'     => __( 'Sort by average rating', 'woocommerce' ),
    				'date-desc'       => __( 'Sort by latest', 'woocommerce' ),
    				'price'      => __( 'Sort by price: low to high', 'woocommerce' ),
    				'price-desc' => __( 'Sort by price: high to low', 'woocommerce' ),
    			) 
    		);
    		// phpcs:disable WordPress.Security.NonceVerification.Recommended
    		$orderby = isset( $_GET['orderby'] ) ? wc_clean( wp_unslash( $_GET['orderby'] ) ) : $default_orderby;
    		// phpcs:enable WordPress.Security.NonceVerification.Recommended
    
    		if ( wc_get_loop_prop( 'is_search' ) ) {
    			$catalog_orderby_options = array_merge( array( 'relevance' => __( 'Relevance', 'woocommerce' ) ), $catalog_orderby_options );
    
    			unset( $catalog_orderby_options['menu_order'] );
    		}
    
    		if ( ! $show_default_orderby ) {
    			unset( $catalog_orderby_options['menu_order'] );
    		}
    
    		if ( ! wc_review_ratings_enabled() ) {
    			unset( $catalog_orderby_options['rating'] );
    		}
    
    		if ( ! array_key_exists( $orderby, $catalog_orderby_options ) ) {
    			$orderby = current( array_keys( $catalog_orderby_options ) );
    		}
    
    		wc_get_template(
    			'loop/orderby.php',
    			array(
    				'catalog_orderby_options' => $catalog_orderby_options,
    				'orderby'                 => $orderby,
    				'show_default_orderby'    => $show_default_orderby,
    			)
    		);
    	}
    

    Rgds
    Laser

    Thread Starter Laser Ulm

    (@laser1ulm)

    Hi @rainfallnixfig!

    Thank you – also for the shock with “is being sold”^^
    But it was my fault (as usual…), I didn’t take Conditional shipping and payments from the marketplace but from innozilla…
    https://de.wordpress.org/plugins/innozilla-conditional-shipping-and-payments-woocommerce/
    Same name…

    With Conditional Shipping for WooCommerce plugin I guess I have to add every product to a specific zone as adding a category to a zone is not in the free version.

    thx’n’rgds
    Jochen

    Thread Starter Laser Ulm

    (@laser1ulm)

    Hi @maykato!

    Thank you for your kind answer.
    I checked your plugin and it works with a lot of work, because category is in the pro version^^ You have to add every variation of every product…
    But when searching the web for the right file to change the notice for the customer (translation or sth like that), I found https://docs.woocommerce.com/document/woocommerce-conditional-shipping-and-payments/.
    It only has one little mistake – you have to click on “buy” to get the info that shipping ain’t possible. It would be nicer to see this while choosing the country.

    thx’n’rgds
    Jochen

    Ok, bin raus.
    Dafür nehm ich die Seite von DHL…

    Ich habe es so verstanden, daß in “Mein Konto” – Bestellungen auch das Tracking zu sehen sein soll. Also wenn man sich einloggt, kann man auch die Sendung verfolgen.

    Das Konto ist aber eine Sache von Woocommerce, nicht von Germanized. (hint zum Suchen^^)

    Gruß

    Hoi!

    Und den Code habe ich jetzt mal testweise in die my-orders.php gepackt.
    Funktioniert.

    Gruß

    Hi!

    Interessante Idee.
    In der Email hatte ich es ja schon – und ja, es geht.
    Die orders-php und/oder my-orders.php in das Child-Theme und bearbeiten.

    $dhl_tracking_number = acme_get_dhl_tracking_number($order);

    gibt die Tracking-Nummer für die Bestellung.
    Tabellenspalte shipment-tracking anlegen und

    `<?php if ($dhl_tracking_number ) : ?>
    <table class=”shipment-tracking”>
    <tr>
    <h2><?php _e( ‘Track Shipment ‘, ‘woocommerce’ ) ?></h2>
    <p>
    DHL Tracking Number:
    <a href=”https://www.dhl.de/de/privatkunden.html?piececode=&lt;?php echo $dhl_tracking_number?>” target=”_blank” style=”color: #e2000a; font-weight: strong; text-decoration: none;”>
    <?php echo $dhl_tracking_number?>
    </a>
    </p>
    </tr>
    </table>
    <?php endif;`

    Da muß ich aber auch noch etwas rumspielen…

    Gruß
    Laser

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