Dream weaving Dedecms5.7 calls the method of shopping cart order quantity in the whole station.
Editor to share with you the method of weaving dream Dedecms5.7 calling shopping cart orders throughout the station, I believe most people do not know much about it, so share this article for your reference. I hope you will learn a lot after reading this article. Let's learn about it together.
Dream weaving Dedecms5.7 station how to call the shopping cart order quantity?
When selling the plug-in module of Weaving Dream Dedecms5.7 GBK/UTF-8 Tenpay interface, netizens asked me about the quantity of shopping cart orders called by Weaving Dream Dedecms5.7. I checked the manual and couldn't find the relevant knowledge.
Recommended study: dream weaving cms
Later, when I think about it, it is actually quite simple to call cookie data. Later, I took a look at Dedecms's shopping cart class shopcar.class.php. There is a ready-made function cartCount available. In order not to affect the template call, I wrote a simple file and called it with javascript.
The method is implemented as follows:
Create a my_car_count.php file and put it in the / plus/ directory
Second, write the following code:
The code is as follows: