1 reactie aan het bekijken (van in totaal 1)
  • Thread starter Polderlander

    (@polderlander)

    Niet makkelijk als je zelf weinig of niets met codetaal hebt, maar heb probleem toch voor groot deel met wat experiment zelf kunnen oplossen.

    Kort gezegd ligt oplossing in bestand product template. php van wp e-commerce. ->
    Dit bestand product-template.php zit in wpsc-includes directory. Naar beneden scrollen, waar volgende code bevindt. Daarna old price en price door oude prijs en prijs vervangen (zie donker gedrukt) en dan wordt prijs (i.p.v. price) op prodyct page weergegeven.

    function wpsc_the_product_price_display( $args = array() ) {
    if ( empty( $args[‘id’] ) )
    $id = get_the_ID();
    else
    $id = (int) $args[‘id’];

    $defaults = array(
    ‘id’ => $id,
    ‘old_price_text’ => __( ‘Old Price: %s’, ‘wpsc’ ),
    ‘price_text’ => __( ‘Price: %s’, ‘wpsc’ ),
    /* translators : %1$s is the saved amount text, %2$s is the saved percentage text, %% is the percentage sign */
    ‘you_save_text’ => __( ‘You save: %s’, ‘wpsc’ ),
    ‘old_price_class’ => ‘pricedisplay wpsc-product-old-price ‘ . $id,
    ‘old_price_before’ => ‘<p %s>’,
    ‘old_price_after’ => ‘</p>’,
    ‘old_price_amount_id’ => ‘old_product_price_’ . $id,
    ‘old_price_amount_class’ => ‘oldprice’,
    ‘old_price_amount_before’ => ‘<span class=”%1$s” id=”%2$s”>’,
    ‘old_price_amount_after’ => ‘</span>’,
    ‘price_amount_id’ => ‘product_price_’ . $id,
    ‘price_class’ => ‘pricedisplay wpsc-product-price ‘ . $id,
    ‘price_before’ => ‘<p %s>’,
    ‘price_after’ => ‘</p>’,
    ‘price_amount_class’ => ‘currentprice pricedisplay ‘ . $id,
    ‘price_amount_before’ => ‘<span class=”%1$s” id=”%2$s”>’,
    ‘price_amount_after’ => ‘</span>’,
    ‘you_save_class’ => ‘pricedisplay wpsc-product-you-save product_’ . $id,
    ‘you_save_before’ => ‘<p %s>’,
    ‘you_save_after’ => ‘</p>’,
    ‘you_save_amount_id’ => ‘yousave_’ . $id,
    ‘you_save_amount_class’ => ‘yousave’,
    ‘you_save_amount_before’ => ‘<span class=”%1$s” id=”%2$s”>’,
    ‘you_save_amount_after’ => ‘</span>’,
    ‘output_price’ => true,
    ‘output_old_price’ => true,
    ‘output_you_save’ => true,
    );

1 reactie aan het bekijken (van in totaal 1)
  • Het onderwerp ‘Vertaling 'price' op product page wp e-commerce’ is gesloten voor nieuwe reacties.