• Resolved Rishikant

    (@rishikant)


    Hi,

    We want to change currency inside drop down prices.

    I found this code on another plugin that shows price from the database to the frontend dropdown on the product page.

    What do you suggest?

    do you have any function which could change its price on frontend just at the time of showing price in frontend.

      <?php elseif ($option['type'] == 'drop_down'): ?>         
                <select name="pofw_option[<?php echo $id; ?>]" id="pofw_option_<?php echo $id; ?>" class="pofw-option">
                  <option value=""><?php echo esc_html__('-- please select --', 'product-options-for-woocommerce') ?></option>
                  <?php foreach($option['values'] as $vid => $value): ?>   
                    <option value="<?php echo $vid; ?>"><?php echo htmlspecialchars($value['title']) .'-- '. $this->formatPrice($value['price']); ?></option>                   
                  <?php endforeach; ?>     

    Thank for your help

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Currency is not changing in DropDown’ is closed to new replies.