Totally Zenned
- Join Date:
- Jul 2012
- Posts:
- 16,908
- Plugin Contributions:
- 2
Dynamic Price Updater
mvstudio:
We did. The error wasn't on the mod that was uninstalled at all although I thought it was. In the middle of sleep deprivation things can go wrong in epic unexpected ways, lol!
We installed the mod that we needed TwitchWholesale with attributes and is working as it should, but DPU only shows retail price not wholesale. It shows wholesale price briefly, then switches to retail. How can I make it work?
DPU is designed to generally retrieve the price of the product as reported by the shopping_cart. I don't know what process(es) that plugin uses to determine and report the price(s), but if it is not called as a part of the shopping_cart class, then that additional calculation will need to be fed into/through DPU.
The shopping cart is built in includes/classes/dynamic_price_updater.php, function insertProduct. As part of building the shopping_cart, there are some other variables that are built to support identifying where in product building the customer is at and to support removing additional data from the shopping cart.
Then the price is retrieved from the shopping cart in prepareOutput of the same class file.
The brief display is where the other plugin's price is displayed and then DPU's javascript pick's up and overwrite's on screen text. So whatever is done in that plugin to set the shopping_cart class data will need to be called to update the pricing information of the shopping_cart to support DPU and then may need to be undone after that so that it doesn't happen twice.