Get the App
SLTechnology News&Howtos  ›  Servers  › 

Dream weaving Dedecms5.7 calls the method of shopping cart order quantity in the whole station.

Shulou Source: shulou.com Published: 2022-06-02 03:35:16 10月03日 Update

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:

Tags: Shopping shopping cart quantity order method code content file knowledge article study not much function commodity place great work most of which is manual interface Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information vpn macOS Shulou Tech Info Redmi