Problem with coding
-
hi!
I’m trying to add prices to more than 500 products for 60 countries, manually (not by exchange rate). And i want this procces to be automatic. I parce prices from file to variables. So in line 51 (which is: $_price_method = get_post_meta( get_the_ID(), $_id_prefix . ‘_price_method’ , true ); ) i need to change to something like this: $_price_method = $MyVariable and in lines 85 and 90 i need to change values in
” …value=”<?php echo wc_format_localized_price( $_regular_price ); ?> ” and
” …value=”<?php echo wc_format_localized_price( $_sale_price ); ?> ” to my variables $myregularprice and $mysaleprice. Or mabe some call some custom methods or functions instead of these variables. How can i make this?
- The topic ‘Problem with coding’ is closed to new replies.