Allenvik
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Is there a way to input a woocommerce short code in html table?Hi WBrubaker,
WE GOT IT !!!!
Finally after struggling with it for some time.
So, We re-coded the table with the whole 9 yards (divs, body, table, entries, etc) and used the following short code that we got online, and at this time the shortcode worked perfectly inside the HTML table.
Thank you for your help and Merry Christmas for all!
/* Short code to obtain a particular woocommerce product price and that can be used in a HTML table*/
/**
* Shortcode for product price.
* @param $atts
* @return string
*/
function iconic_woo_product_price_shortcode( $atts ) {
$atts = shortcode_atts( array(
‘id’ => null
), $atts, ‘iconic_product_price’ );
if ( empty( $atts[ ‘id’ ] ) ) {
return ”;
}
$product = wc_get_product( $atts[‘id’] );if ( ! $product ) {
return ”;
}
return $product->get_price_html();
}
add_shortcode( ‘iconic_product_price’, ‘iconic_woo_product_price_shortcode’ );Forum: Plugins
In reply to: [WooCommerce] Is there a way to input a woocommerce short code in html table?HI Wbrubaker,
Thank you very much for your input.
We couldn’t see a shortcode for Price on Woocommerce yet that produces the similar value we got from the other SC.
Regarding the HTML, it is a HTML table, and we want to place the price in a cell that is dynamic and changes when we change the currency, however the Scode comes as text, so we need to open another dimension like link in the cell so the price comes through perhaps…
We appreciate any ideas.
Regards
Forum: Fixing WordPress
In reply to: WordPress sites migrated to a plesk server, lack contentThis issue yet needs to be tackled, thank you for you support anyway.
Forum: Fixing WordPress
In reply to: Where does the ‘category custom fields’ coding reside?THis question was resolved, thank you
Forum: Plugins
In reply to: [WooCommerce] Woocommerce deposits calculating vat incorrectly.We have installed a new Woocommerce deposits from a different developer, and the problem was resolved. Thank you
Forum: Plugins
In reply to: [WooCommerce] Woocommerce deposits calculating vat incorrectly.Hi,
We think we were able to locate the area were the issue is being created, in fact the developer left a note regarding this exactly issue, however after trying couple of different solutions we were unable to resolve, can someone with a stronger PHP coding experience have a look at this and tell us how to remove the user tax without deducting it again from the initial price…
Here is the set of codes regarding this exactly issue:
/*
* If the customer is excempt from VAT, remove the taxes here.
* Either remove the base or the user taxes depending on woocommerce_adjust_non_base_location_prices setting.
*/if ( ! empty( WC()->customer ) && WC()->customer->get_is_vat_exempt() ) {
$remove_taxes = apply_filters( ‘woocommerce_adjust_non_base_location_prices’, true ) ? WC_Tax::calc_tax( $line_price, $base_tax_rates, true ) : WC_Tax::calc_tax( $line_price, $tax_rates, true );
$remove_tax = array_sum( $remove_taxes );
$return_price = $line_price – $remove_tax;
We appreciate any ideas, thx
Forum: Plugins
In reply to: [WooCommerce] Woocommerce deposits calculating vat incorrectly.Hi Andrew,
Thank you for your response.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce deposits calculating vat incorrectly.Thank you Andrew!
Forum: Fixing WordPress
In reply to: Woocommerce depositsSure ! Thank you
Forum: Fixing WordPress
In reply to: Woocommerce depositsHI Steven,
Thx for the reply, can this question be moved to Woocommerce plugin?Thx
Hi there,
I was having similar problems as we are in the final tests of our shop, until we realized that the country letters need to be included to validate the Vat, so if the vat number is 80808080 according with VIES the valid vat being a UK number is GB80808080, when entered properly Booster is validating the vat very quickly and accurately.Forum: Fixing WordPress
In reply to: WordPress sites migrated to a plesk server, lack contentHI Steve,
Thank you for the inside, it has a different order of process, perhaps we will try your suggestion to see if the outcome will change.
Thank you
Forum: Fixing WordPress
In reply to: Where does the ‘category custom fields’ coding reside?Right… I just got an article talking exactly about the custom option… this feature probably was coded and inherited from a theme…
“To display your custom field on your website, you will need to edit your WordPress theme files.”
Apparently wordpress has the function hidden by default “By default, custom fields option is hidden”
The article also mention that the coding to open the funtion is done on the files “single.php” and “content-single.php”, basically locating the files that we wanted to begin with.
https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/
Thank you for your help.
Forum: Fixing WordPress
In reply to: WordPress sites migrated to a plesk server, lack contentUPDATE:
We decided to delete everything and restart the whole process.
Any suggestions on how it should be the best way to migrate a working wordpress site to a plesk server? perhaps differently than what we have done.
Thank you
Forum: Fixing WordPress
In reply to: WordPress sites migrated to a plesk server, lack contentHI Steve,
Thank you for your response.
Supposedly yes, let me double check.