Regular products no price in cart
-
I’ve had to put up store notice and restrict sales as my cart now comes up with no prices but only for regular products. Variable products work. Worked fine last week now prices in cart come up as 0.00. I thought this was resolved but I tried it with a regular product and it does not work so I am posting again.
I don’t know what caused this I did not make any changes. I’ve disabled most plugins.
This is a retail site so I did use a code in the wordpress functions to double the wholesale price but that has always worked fine.Here is the code I used. It has been working fine for months:
function return_custom_price($price, $product) {
global $post, $blog_id;
$price = get_post_meta($post->ID, ‘_regular_price’);
$post_id = $post->ID;
$price = ($price[0]*2.0);
return $price;
}
add_filter(‘woocommerce_get_price’, ‘return_custom_price’, 10, 2);I really need help to remedy this. Thanks in advance.
https://www.fishtalespei.com/shop
The page I need help with: [log in to see the link]
- The topic ‘Regular products no price in cart’ is closed to new replies.