[Nulled] » Nulled Warez Scripts » CMS Internet shop Scripts » SimplaCMS script » Automatic discount for all registered users
November 14 2022

Automatic discount for all registered users

Automatic discount for all registered users

Create a group for registered users, for example 10%
Look at her id in the browser address bar


Next, open the file view/RegisterView.php and we are looking for

elseif($user_id = $this->users->add_user(array('name'=>$name, 'email'=>$email, 'password'=>$password, 'enabled'=>$default_status, 'last_ip'=>$_SERVER['REMOTE_ADDR'])))


Adding 'group_id' => [group ID] to the array
After 'name'=>$name, add 'group_id' => 2,
For example, it looks like this

elseif($user_id = $this->users->add_user(array('name'=>$name, 'group_id' => 2, 'email'=>$email, 'password'=>$password, 'enabled'=>$default_status, 'last_ip'=>$_SERVER['REMOTE_ADDR'])))

And now, when registering, the user will automatically receive the discount you set.



Information

Visitors who are in the group Guests they can't download files.
Log in to the site under your login and password or if you are a new user go through the process registrations on the website.

Comments:

This publication has no comments yet. You can be the first!

Information the publication:

  • Author of the publication: blackcms
  • Date of publication: 14 November 2022 13:00
  • Publication category(s): SimplaCMS script / Modules SimplaCMS
  • Number of views of the publication: 124
  • Number of comments to the publication: 0

Related News

14 November 2022
OpenCart script / OpenCart modules
Discounts Pack 1.5.1.5 -

Discounts Pack is a discount package that combines several discount modules: volume, loyalty, category, discounts

Read more
15 October 2022
PHP Scripts / Scripts HYIP
Investing Capital Group

Investing Capital Group hype script Download the modern script of the Investing Capital Group hype. Automatic

Read more
14 November 2022
SimplaCMS script / Modules SimplaCMS
the bucket entry module

Saving the basket in the database

Read more
14 March 2022
Information security / Anonymity on the web
How to protect your

How to protect your social network page or email account from hacking? Many users create very simple passwords,

Read more
06 November 2022
PHP Scripts / Buks scripts
Pure script of the

Download for free a clean Seoserf bux script on the fruit farm engine from the forum PSWeb.ru . For users, the

Read more

Information

Users of visitor are not allowed to comment this publication.

Site Search

Site Menu


☑ Scripts Software

Calendar

«    May 2024    »
MonTueWedThuFriSatSun
 12345
6789101112
13141516171819
20212223242526
2728293031 

Advertisement

Survey on the website

Evaluate the work of the site
 

Statistics

  • +5 Total articles 5598
  • +21 Comments 3081
  • +37 Users : 3985