I have custom price attribute called
wholesale_price is only needed for one of the store view. So i choose specific store view, then update the
The problem is:
I can get the
wholesale_price variable through
$_product->getWholesalePrice() in product view page but not in product listing page.
In product listing page, the
$_product->getWholesalePrice() is empty.
Eventually, after i tried to save it from default store view. The
wholesale_price is available in the product listing page.
So everytime i need to update the price, i need to go by saving from default store, and it is annoying.
Could you please tell me what is the code difference between saving from default store view and the others store view?