Hi Gabriel,
Please tell me how to show the gold karat single product page (view)
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Learn more about troubleshooting WordPress.
when i click for rate update then i showing this msg
so please help me for this
]]>Hi Gabriel, such an amazing plugin! ?? I’m currently developing a website for my client. It is possible to allow this plugin to interact with variable product as well? Or do i need to hire a developer in order to suit it with my need.
Have a good day from Malaysia!
Cheers,
Wan
hello,
there is way to update the gold prices automatically based on to live rate?
]]>I’m selling gold bullion and coins which uses troy oz. Is there an easy way to switch to Troy oz.
]]>Hi, I saw from a previous post that a variation collaboration might be in the works.
“Premium Version (if possible)”
Is it going to push through?
Hi, is there any chance to get gold price live from internet?
]]>Hi and thank you for this useful plugin.
I wonder if you’d like to publish (@codecanyon for example) a paid/premium version with ‘variation products’ supported for us who we’d like to pay a license and use your plugin at our shops.
]]>Hi,I need the latest updated version of this plugin(woocommerce-gold-price) compatible with wordpress 5.7 .
]]>Hello, developer first of all thanks for deveoping this plugin. i found exactly i was searching. but my customer demand for Labour charges or making charges (Means one of Charges) can be Multiply the entered amount with Gold Weight. For ex. Entered Extra charges in product details as Rs. 500 so it can be multiple with gold weight means 500*1.20=600 + tax amount. also this can be show on woocommerce product page or while checkout
Hope you will do this.
thanks
Hi Team,
I have product with 14k,18k,22k and 24k. and total product count is approx 1500. why i go to save changes in woocommerce->gold price. only few product price saved with given price and most of product doesn’t change their price. can you please help me out on this? this is very urgent.
]]>I have installed Gold Price Plugin and have configured a few products( Gold Prices), But while i export such products i cannot find any gold column or such ( actually i want to update bulk Products), How can i achieve that.
PLEASE HELP
hello how can i add to download LOG Export as PDF or EXcel ?
]]>Hi, I’m trying to display the custom fields input such as “weight, Extra fees” onto the product page with Elementor.
Is this possible with your plugin?
]]>Hello
I have used this plugin in woo-commerce site as administrator. Its perfectly working fine in product , but same features are not seen in Multivendor Products pages
Please give some clue to view this plugin in vendor dashboard also
]]>hi good work
how can display gold price in Widget in top website
Thank you for this plugin, its amazing. But I need this feature also in variable products. How can I implement this?
]]>I want to update gold/silver product prices in shop/cart until customer confirm order. There should be a timer counting down the time until next price update.
Is there something I can do through editing code in theme or is there a plugin available for this?
]]>Hi,
I need to customise some of the field, is that possible to do?
Hello I want a small help. I want to fetch the details prices whatever i have input in the field and display it in the front end is it possible if yes how? it is really important.
]]>I want to change the currency of the for the pricing i want INR instead of USD can someone help me with this
]]>Hi Sir,
Where can I find the custom field section in product editing , I am using the WooCommerce 2.6.14. Can you assist me on how to enable or add product custom field section on wooCommerce?
]]>Hello, I am interested in your plugin, I wanted to ask if in addition the gold price eseste the opportunity to also have the silver.
I would be interested to know whether there is also a paid version with more options.
]]>How to make use this WooCommerce Gold Price Extension plugin for displaying product price.this only display what value i have to given in product editing page.Please help me to use this plugin
]]>Hello
-No problem with the simple products
-choice of product is not working attaching gold price
-How do I make a correction?
Thanks
https://www.ads-software.com/plugins/woocommerce-gold-price/
]]>Hello Mate,
I have installed this plugin ” Gold Extention ” . but in add product page, i am not getting any custom field option there. i am using wordpress v4.5.3 and woocommerce version v2.6.4 . Please Help me in this.
Thanks and Regards
Gaurav
https://www.ads-software.com/plugins/woocommerce-gold-price/
]]>I began using this plugin for my website recently. After adding a few hundred products, the plugin began displaying the Fatal Error message on its settings page and not allowing me to add any more products to the 14K category. So, I ended up barely subdividing the remaining few hundred products I needed to enter between the other remaining 18K, 22K, and 24K options of this plugin. Now, the plugin settings page and list of products will not even show in the dashboard when I try to access it and the page just times-out. This plugin is has not been updated for a very time and uses far too much memory for its functionality which crippled my site and waited countless man hours of product entry which I now have to do over as I will have to install a plugin that actually works. I had a Tech check it out and he concluded that this plugin is on a nested loop for each product and the system is looping at least 4 times, so one product takes 304 looping. He also concluded that the plugin is faulty and can only be fixed by its Authors. I’ve contacted the Author for this plugin numerous times and he does not seem to care to fix or help! All he suggests is for me to hire a developer to fix his own plugin which is unlikely.
https://www.ads-software.com/plugins/woocommerce-gold-price/
]]>Hello
Great Plug in.
Added a new custom field with name “labor” to sum it with selling price and options 9 karats
<?php
/**
* Plugin Name: WooCommerce Gold Price
* Plugin URI: https://omniwp.com.br/plugins/woocommerce-gold-price/
* Description: Adds a Gold Price for 9k/14k/18k/22k/24k gold products, making easy to update their prices
* Version: 2.4.4
* Author: Gabriel Reguly
* Author URI: https://omniwp.com.br
* Requires at least: 3.5
* Tested up to: 4.3
*
* Text Domain: woocommerce-gold-price
* Domain Path: /languages/
*
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
add_action( 'plugins_loaded', 'woocommerce_gold_price', 20);
function woocommerce_gold_price() {
if ( ! class_exists( 'Woocommerce' ) ) {
return false;
}
add_filter( 'plugin_action_links', 'woocommerce_gold_price_action_links', 10, 2 );
add_action( 'admin_init', 'woocommerce_gold_price_admin_init' );
add_action( 'admin_menu', 'woocommerce_gold_price_admin_menu', 10);
load_plugin_textdomain( 'woocommerce-gold-price', false, '/woocommerce-gold-price/languages' );
function woocommerce_gold_price_admin_init() {
global $weight_unit, $weight_unit_description;
// register_setting( $option_group, $option_name, $sanitize_callback );
register_setting( 'woocommerce_gold_price_options',
'woocommerce_gold_price_options',
'woocommerce_gold_price_validate_options' );
// add_settings_section( $id, $title, $callback, $page );
add_settings_section( 'woocommerce_gold_price_plugin_options_section',
__('Gold Price Values', 'woocommerce-gold-price'),
'woocommerce_gold_price_fields',
'woocommerce_gold_price' );
// add_settings_field( $id, $title, $callback, $page, $section, $args );
add_settings_field( 'woocommerce_gold_price_options',
__('Gold Price Values', 'woocommerce-gold-price'),
'woocommerce_gold_price_fields',
'woocommerce_gold_price_plugin_options_section',
'woocommerce_gold_price' );
$weight_unit = get_option('woocommerce_weight_unit');
$weight_unit_description = array(
'kg' => __( 'kg', 'woocommerce' ),
'g' => __( 'g', 'woocommerce' ),
'lbs' => __( 'lbs', 'woocommerce' ),
'oz' => __( 'oz', 'woocommerce' ) );
}
function woocommerce_gold_price_admin_menu() {
global $menu, $woocommerce;
if ( current_user_can( 'manage_woocommerce' ) ) {
do_action( 'woocommerce_admin_css' );
/*
// add_submenu_page( $parent_slug,
$page_title,
$menu_title,
$capability,
$menu_slug,
$function
*/
add_submenu_page('woocommerce',
__('Gold Price', 'woocommerce-gold-price'),
__('Gold Price', 'woocommerce-gold-price') ,
'manage_woocommerce',
'woocommerce_gold_price',
'woocommerce_gold_price_page');
}
}
function woocommerce_gold_price_page() {
global $weight_unit, $weight_unit_description;
if ( ! isset( $_REQUEST['settings-updated'] ) ) {
$_REQUEST['settings-updated'] = false;
}
if ( false !== $_REQUEST['settings-updated'] ) {
?>
<div id="message" class="updated notice">
<p><strong><?php _e( 'Your settings have been saved.', 'woocommerce' ) ?></strong></p>
</div>
<?php
}
?>
<div class="wrap woocommerce">
<div class="icon32 icon32-woocommerce-settings" id="icon-woocommerce"><br /></div>
<h1><?php _e('Gold Price', 'woocommerce-gold-price')?></h1>
<form method="post" action="options.php">
<?php
settings_fields( 'woocommerce_gold_price_options' );
do_settings_sections( 'woocommerce_gold_price' );
?>
<p class="submit">
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ) ?>" />
</p>
</form>
<h1><?php _e( 'Gold priced products', 'woocommerce-gold-price' )?></h1>
<?php
$options = get_option( 'woocommerce_gold_price_options' );
if ( ! $options ) {
$options = array( '24k' => 0, '22k' => 0, '18k' => 0, '14k' => 0 , '9k' => 0 ); //meta values
}
foreach( $options as $key => $value ) {
?>
<h2><?php echo $key ?></h2>
<?php
$the_query = new WP_Query( array(
'post_type' => 'product',
'posts_per_page' => -1,
'meta_key' => 'karat',
'meta_value' => substr( $key, 0, -1 ) ) ); // meta values 24k, 22k, 18k, 14k, 9k => 24, 22, 18, 14, 9
if ( 0 == $the_query->found_posts ) {
echo '<p>' . __( 'No products', 'woocommerce-gold-price' ) . '</p>';
} else {
echo '
<ol>';
// The Loop
while ( $the_query->have_posts() ) :
$the_query->the_post();
$the_product = get_product( $the_query->post->ID );
$edit_url = admin_url( 'post.php?post=' . $the_product->id . '&action=edit' );
$message = '';
echo '
<li><a href="' . $edit_url. '">' . get_the_title(). '</a>';
if ( ! $the_product->has_weight() ) {
$message = __( 'Product has zero weight, can\'t calculate price based on weight', 'woocommerce-gold-price' );
} else {
$the_product->regular_price = $the_product->weight * $value;
$labor = get_post_meta($the_query->post->ID, 'labor', true);
$the_product->regular_price = $the_product->regular_price + $labor;
if ( $the_product->is_on_sale() ) {
$message = __( 'Product was on sale, can\'t calculate sale price', 'woocommerce-gold-price' );
}
echo ': ' . $the_product->weight . $weight_unit_description[ $weight_unit ] . ' * ' . woocommerce_price( $options[ $key ] ) . ' + ' . $labor . ' € labor costs = ' . woocommerce_price( $the_product->regular_price );
if ( false !== $_REQUEST['settings-updated'] ) {
update_post_meta( $the_product->id, '_price', $the_product->regular_price );
update_post_meta( $the_product->id, '_regular_price', $the_product->regular_price );
update_post_meta( $the_product->id, '_sale_price', '' );
update_post_meta( $the_product->id, '_sale_price_dates_from', '' );
update_post_meta( $the_product->id, '_sale_price_dates_to', '' );
}
}
echo ' ' . $message . '</li>';
endwhile;
echo '
</ol>';
}
// Restore original Query & Post Data
wp_reset_query();
wp_reset_postdata();
}
?>
</div>
<?php
}
function woocommerce_gold_price_fields() {
global $weight_unit, $weight_unit_description;
$options = get_option( 'woocommerce_gold_price_options' );
$currency_pos = get_option('woocommerce_currency_pos');
$currency_symbol = get_woocommerce_currency_symbol();
?>
<table class="form-table widefat">
<thead>
<tr valign="top">
<th scope="col">?<?php _e( 'Karats', 'woocommerce-gold-price' )?></th>
<th scope="col"><?php _e( 'Price', 'woocommerce' ) ?></td>
<th scope="col"><?php _e( 'Weight Unit', 'woocommerce' ) ?></td>
</tr>
</thead>
<!--New Line with Option-->
<tr valign="top">
<th scope="row">?<label for="woocommerce_gold_price_options_24">24k</label></th>
<td>
<?php
$input = '<input id="woocommerce_gold_price_options_24" name="woocommerce_gold_price_options[24k]" size="10" type="text" value="' . $options['24k'] . '" />';
switch ($currency_pos) {
case 'left' :
echo $currency_symbol . $input;
break;
case 'right' :
echo $input . $currency_symbol;
break;
case 'left_space' :
echo $currency_symbol . '?' . $input;
break;
case 'right_space' :
echo $input . '?' . $currency_symbol;
break;
}
?>
</td>
<td><?php echo $weight_unit_description[ $weight_unit ] ?></td>
</tr>
<!--New meta value End-->
<!--New Line with meta value-->
<tr valign="top" class="alternate">
<th scope="row">?<label for="woocommerce_gold_price_options_22">22k</label></th>
<td>
<?php
$input = '<input id="woocommerce_gold_price_options_22" name="woocommerce_gold_price_options[22k]" size="10" type="text" value="' . $options['22k'] . '" />';
switch ($currency_pos) {
case 'left' :
echo $currency_symbol . $input;
break;
case 'right' :
echo $input . $currency_symbol;
break;
case 'left_space' :
echo $currency_symbol . '?' . $input;
break;
case 'right_space' :
echo $input . '?' . $currency_symbol;
break;
}
?>
</td>
<td><?php echo $weight_unit_description[ $weight_unit ] ?></td>
</tr>
<!--New meta value End-->
<!--New Line with meta value-->
<tr valign="top">
<th scope="row">?<label for="woocommerce_gold_price_options_18">18k</label></th>
<td>
<?php
$input = '<input id="woocommerce_gold_price_options_18" name="woocommerce_gold_price_options[18k]" size="10" type="text" value="' . $options['18k'] . '" />';
switch ($currency_pos) {
case 'left' :
echo $currency_symbol . $input;
break;
case 'right' :
echo $input . $currency_symbol;
break;
case 'left_space' :
echo $currency_symbol . '?' . $input;
break;
case 'right_space' :
echo $input . '?' . $currency_symbol;
break;
}
?>
</td>
<td><?php echo $weight_unit_description[ $weight_unit ] ?></td>
</tr>
<!--New meta value End-->
<!--New Line with meta value-->
<tr valign="top" class="alternate">
<th scope="row">?<label for="woocommerce_gold_price_options_14">14k</label></th>
<td>
<?php
$input = '<input id="woocommerce_gold_price_options_14" name="woocommerce_gold_price_options[14k]" size="10" type="text" value="' . $options['14k'] . '" />';
switch ($currency_pos) {
case 'left' :
echo $currency_symbol . $input;
break;
case 'right' :
echo $input . $currency_symbol;
break;
case 'left_space' :
echo $currency_symbol . '?' . $input;
break;
case 'right_space' :
echo $input . '?' . $currency_symbol;
break;
}
?>
</td>
<td><?php echo $weight_unit_description[ $weight_unit ] ?></td>
</tr>
<!--New meta value End-->
<!--New Line with meta value-->
<tr valign="top" >
<th scope="row">?<label for="woocommerce_gold_price_options_9">9k</label></th>
<td>
<?php
$input = '<input id="woocommerce_gold_price_options_9" name="woocommerce_gold_price_options[9k]" size="10" type="text" value="' . $options['9k'] . '" />';
switch ($currency_pos) {
case 'left' :
echo $currency_symbol . $input;
break;
case 'right' :
echo $input . $currency_symbol;
break;
case 'left_space' :
echo $currency_symbol . '?' . $input;
break;
case 'right_space' :
echo $input . '?' . $currency_symbol;
break;
}
?>
</td>
<td><?php echo $weight_unit_description[ $weight_unit ] ?></td>
</tr>
<!--New meta value End-->
</table>
<?php
}
function woocommerce_gold_price_validate_options( $input ) {
foreach ( $input as $key =>$value ) {
$input[$key] = wp_filter_nohtml_kses($value);
}
return $input;
}
// Display a Settings link on the main Plugins page
function woocommerce_gold_price_action_links( $links, $file ) {
if ( plugin_basename( __FILE__ ) == $file ) {
$woocommerce_gold_price_settings_link = '<a href="'.get_admin_url().'admin.php?page=woocommerce_gold_price">'.__('Settings').'</a>';
// make the 'Settings' link appear first
array_unshift( $links, $woocommerce_gold_price_settings_link );
}
return $links;
}
}
?>
https://www.ads-software.com/plugins/woocommerce-gold-price/
]]>Hi, I wanted to know how to setup auto update option. after entering the weight and carat in the product page and publish. it should automatically generate the regular price no. but when i click the save in gold price only it’s getting the price is generating. how to resolve it?
https://www.ads-software.com/plugins/woocommerce-gold-price/
]]>Hi Gabriel.
Firtst of all, great pluggi (it was something i really need). Just want to know if it is possible to use it with variable products? For example, put the weight in each of the variable products, so the price it shows will be calculated depending on the gold factor.
Thanks in advance
https://www.ads-software.com/plugins/woocommerce-gold-price/
]]>