Post by philbydevil » Sat Jan 21, 2012 2:20 pm

I currently manage my newsletter external to my OC store, so wanted to remove the newsletter sign-up, as well as any other links associated with the newsletter. This vQmod does that.


Newsletter links removed:
  • Newsletter sign up (when customer is registering an account)
  • Newsletter sign up (when customer is registering an account during checkout)
  • My Account
  • Account Module
  • Footer
Instructions:
  • Open the xml file and change YOURTHEME to the name of the theme you are using (ie. default, etc)
  • Upload to you xml folder
Tested on v1.5.1.3 only

Attachments


I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am

Post by cyrupmail » Fri Jan 27, 2012 4:28 am

Thx for sharing devil, its help me a lot

but if you don't mind i have a "curiosity" question ;)

why we need to replace? :

Code: Select all

- <operation>
- <search position="replace">
- <![CDATA[ 
            $this->db->query("INSERT INTO " . DB_PREFIX . "customer SET store_id = '" . (int)$this->config->get('config_store_id') . "', firstname = '" . $this->db->escape($data['firstname']) . "', lastname = '" . $this->db->escape($data['lastname']) . "', email = '" . $this->db->escape($data['email']) . "', telephone = '" . $this->db->escape($data['telephone']) . "', fax = '" . $this->db->escape($data['fax']) . "', password = '" . $this->db->escape(md5($data['password'])) . "', newsletter = '" . (isset($data['newsletter']) ? (int)$data['newsletter'] : 0) . "', customer_group_id = '" . (int)$this->config->get('config_customer_group_id') . "', status = '1', date_added = NOW()");
            

  ]]> 
  </search>
- <add>
- <![CDATA[ 
            $this->db->query("INSERT INTO " . DB_PREFIX . "customer SET store_id = '" . (int)$this->config->get('config_store_id') . "', firstname = '" . $this->db->escape($data['firstname']) . "', lastname = '" . $this->db->escape($data['lastname']) . "', email = '" . $this->db->escape($data['email']) . "', telephone = '" . $this->db->escape($data['telephone']) . "', fax = '" . $this->db->escape($data['fax']) . "', password = '" . $this->db->escape(md5($data['password'])) . "', customer_group_id = '" . (int)$this->config->get('config_customer_group_id') . "', status = '1', date_added = NOW()");
            

  ]]> 
  </add>
  </operation>

and

Code: Select all

- <operation>
- <search position="replace">
- <![CDATA[ 
            <?php if ($shipping_required) { ?>
            

  ]]> 
  </search>
- <add>
- <![CDATA[ 
            --> <?php if ($shipping_required) { ?>
            

  ]]> 
  </add>
  </operation>
again, thx for sharing


Cheers

Newbie

Posts

Joined
Mon Jan 23, 2012 2:49 am

Post by philbydevil » Fri Jan 27, 2012 8:01 am

The first code you asked about is making it so the newsletter isn't required when the customer creates an account. If you don't use this code, you will get errors when a customer is creating an account.

The second part of the code is finishing off a commented out section. That's what the "-->" is. If you look at the search before this one, it's got the starting "<!--"

I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am

Post by cyrupmail » Fri Jan 27, 2012 8:09 pm

Cheers mate for sharing :)

Newbie

Posts

Joined
Mon Jan 23, 2012 2:49 am

Post by duffloop » Sun Dec 09, 2012 7:33 pm

Hi

I get this message

Error: Could not load model setting/setting!

when trying to subscribe?

oop wrong place (pls ignore)

Newbie

Posts

Joined
Mon Sep 19, 2011 10:05 pm
Who is online

Users browsing this forum: No registered users and 7 guests